AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateFleetCapacityRequest.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace GameLift
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_GAMELIFT_API UpdateFleetCapacityRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateFleetCapacity"; }
31
32 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
33
35
36
38
42 inline const Aws::String& GetFleetId() const { return m_fleetId; }
43 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
44 template<typename FleetIdT = Aws::String>
45 void SetFleetId(FleetIdT&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::forward<FleetIdT>(value); }
46 template<typename FleetIdT = Aws::String>
47 UpdateFleetCapacityRequest& WithFleetId(FleetIdT&& value) { SetFleetId(std::forward<FleetIdT>(value)); return *this;}
49
51
57 inline int GetDesiredInstances() const { return m_desiredInstances; }
58 inline bool DesiredInstancesHasBeenSet() const { return m_desiredInstancesHasBeenSet; }
59 inline void SetDesiredInstances(int value) { m_desiredInstancesHasBeenSet = true; m_desiredInstances = value; }
60 inline UpdateFleetCapacityRequest& WithDesiredInstances(int value) { SetDesiredInstances(value); return *this;}
62
64
68 inline int GetMinSize() const { return m_minSize; }
69 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
70 inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
71 inline UpdateFleetCapacityRequest& WithMinSize(int value) { SetMinSize(value); return *this;}
73
75
79 inline int GetMaxSize() const { return m_maxSize; }
80 inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
81 inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; }
82 inline UpdateFleetCapacityRequest& WithMaxSize(int value) { SetMaxSize(value); return *this;}
84
86
90 inline const Aws::String& GetLocation() const { return m_location; }
91 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
92 template<typename LocationT = Aws::String>
93 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
94 template<typename LocationT = Aws::String>
95 UpdateFleetCapacityRequest& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
97 private:
98
99 Aws::String m_fleetId;
100 bool m_fleetIdHasBeenSet = false;
101
102 int m_desiredInstances{0};
103 bool m_desiredInstancesHasBeenSet = false;
104
105 int m_minSize{0};
106 bool m_minSizeHasBeenSet = false;
107
108 int m_maxSize{0};
109 bool m_maxSizeHasBeenSet = false;
110
111 Aws::String m_location;
112 bool m_locationHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace GameLift
117} // namespace Aws
UpdateFleetCapacityRequest & WithMinSize(int value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GAMELIFT_API UpdateFleetCapacityRequest()=default
virtual const char * GetServiceRequestName() const override
UpdateFleetCapacityRequest & WithFleetId(FleetIdT &&value)
UpdateFleetCapacityRequest & WithLocation(LocationT &&value)
UpdateFleetCapacityRequest & WithDesiredInstances(int value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
UpdateFleetCapacityRequest & WithMaxSize(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String