AWS SDK for C++  1.9.104
AWS SDK for C++
UpdateFleetCapacityRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace GameLift
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "UpdateFleetCapacity"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
44  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
45 
50  inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
51 
56  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
57 
62  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
63 
68  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
69 
74  inline UpdateFleetCapacityRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
75 
80  inline UpdateFleetCapacityRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
81 
86  inline UpdateFleetCapacityRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
87 
88 
93  inline int GetDesiredInstances() const{ return m_desiredInstances; }
94 
99  inline bool DesiredInstancesHasBeenSet() const { return m_desiredInstancesHasBeenSet; }
100 
105  inline void SetDesiredInstances(int value) { m_desiredInstancesHasBeenSet = true; m_desiredInstances = value; }
106 
111  inline UpdateFleetCapacityRequest& WithDesiredInstances(int value) { SetDesiredInstances(value); return *this;}
112 
113 
118  inline int GetMinSize() const{ return m_minSize; }
119 
124  inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
125 
130  inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
131 
136  inline UpdateFleetCapacityRequest& WithMinSize(int value) { SetMinSize(value); return *this;}
137 
138 
143  inline int GetMaxSize() const{ return m_maxSize; }
144 
149  inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
150 
155  inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; }
156 
161  inline UpdateFleetCapacityRequest& WithMaxSize(int value) { SetMaxSize(value); return *this;}
162 
163 
168  inline const Aws::String& GetLocation() const{ return m_location; }
169 
174  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
175 
180  inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
181 
186  inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
187 
192  inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
193 
198  inline UpdateFleetCapacityRequest& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
199 
204  inline UpdateFleetCapacityRequest& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
205 
210  inline UpdateFleetCapacityRequest& WithLocation(const char* value) { SetLocation(value); return *this;}
211 
212  private:
213 
214  Aws::String m_fleetId;
215  bool m_fleetIdHasBeenSet;
216 
217  int m_desiredInstances;
218  bool m_desiredInstancesHasBeenSet;
219 
220  int m_minSize;
221  bool m_minSizeHasBeenSet;
222 
223  int m_maxSize;
224  bool m_maxSizeHasBeenSet;
225 
226  Aws::String m_location;
227  bool m_locationHasBeenSet;
228  };
229 
230 } // namespace Model
231 } // namespace GameLift
232 } // namespace Aws
Aws::GameLift::Model::UpdateFleetCapacityRequest::GetMaxSize
int GetMaxSize() const
Definition: UpdateFleetCapacityRequest.h:143
Aws::GameLift::Model::UpdateFleetCapacityRequest::WithDesiredInstances
UpdateFleetCapacityRequest & WithDesiredInstances(int value)
Definition: UpdateFleetCapacityRequest.h:111
Aws::GameLift::Model::UpdateFleetCapacityRequest::FleetIdHasBeenSet
bool FleetIdHasBeenSet() const
Definition: UpdateFleetCapacityRequest.h:50
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::UpdateFleetCapacityRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GameLift::Model::UpdateFleetCapacityRequest::GetDesiredInstances
int GetDesiredInstances() const
Definition: UpdateFleetCapacityRequest.h:93
Aws::GameLift::Model::UpdateFleetCapacityRequest::GetFleetId
const Aws::String & GetFleetId() const
Definition: UpdateFleetCapacityRequest.h:44
Aws::GameLift::Model::UpdateFleetCapacityRequest::WithFleetId
UpdateFleetCapacityRequest & WithFleetId(const Aws::String &value)
Definition: UpdateFleetCapacityRequest.h:74
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::UpdateFleetCapacityRequest::SetFleetId
void SetFleetId(const char *value)
Definition: UpdateFleetCapacityRequest.h:68
Aws::GameLift::Model::UpdateFleetCapacityRequest::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: UpdateFleetCapacityRequest.h:174
Aws::GameLift::Model::UpdateFleetCapacityRequest::SetFleetId
void SetFleetId(Aws::String &&value)
Definition: UpdateFleetCapacityRequest.h:62
Aws::GameLift::Model::UpdateFleetCapacityRequest::WithMaxSize
UpdateFleetCapacityRequest & WithMaxSize(int value)
Definition: UpdateFleetCapacityRequest.h:161
Aws::GameLift::Model::UpdateFleetCapacityRequest::WithFleetId
UpdateFleetCapacityRequest & WithFleetId(Aws::String &&value)
Definition: UpdateFleetCapacityRequest.h:80
Aws::GameLift::Model::UpdateFleetCapacityRequest::SetLocation
void SetLocation(const char *value)
Definition: UpdateFleetCapacityRequest.h:192
Aws::GameLift::Model::UpdateFleetCapacityRequest::UpdateFleetCapacityRequest
UpdateFleetCapacityRequest()
Aws::GameLift::Model::UpdateFleetCapacityRequest::WithMinSize
UpdateFleetCapacityRequest & WithMinSize(int value)
Definition: UpdateFleetCapacityRequest.h:136
Aws::GameLift::Model::UpdateFleetCapacityRequest::SetMaxSize
void SetMaxSize(int value)
Definition: UpdateFleetCapacityRequest.h:155
GameLift_EXPORTS.h
GameLiftRequest.h
Aws::GameLift::Model::UpdateFleetCapacityRequest::SetLocation
void SetLocation(Aws::String &&value)
Definition: UpdateFleetCapacityRequest.h:186
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
Aws::GameLift::Model::UpdateFleetCapacityRequest::DesiredInstancesHasBeenSet
bool DesiredInstancesHasBeenSet() const
Definition: UpdateFleetCapacityRequest.h:99
AWSString.h
Aws::GameLift::Model::UpdateFleetCapacityRequest::SetLocation
void SetLocation(const Aws::String &value)
Definition: UpdateFleetCapacityRequest.h:180
Aws::GameLift::Model::UpdateFleetCapacityRequest::WithLocation
UpdateFleetCapacityRequest & WithLocation(Aws::String &&value)
Definition: UpdateFleetCapacityRequest.h:204
Aws::GameLift::Model::UpdateFleetCapacityRequest::WithLocation
UpdateFleetCapacityRequest & WithLocation(const char *value)
Definition: UpdateFleetCapacityRequest.h:210
Aws::GameLift::Model::UpdateFleetCapacityRequest::WithFleetId
UpdateFleetCapacityRequest & WithFleetId(const char *value)
Definition: UpdateFleetCapacityRequest.h:86
Aws::GameLift::Model::UpdateFleetCapacityRequest::GetLocation
const Aws::String & GetLocation() const
Definition: UpdateFleetCapacityRequest.h:168
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::UpdateFleetCapacityRequest::MaxSizeHasBeenSet
bool MaxSizeHasBeenSet() const
Definition: UpdateFleetCapacityRequest.h:149
Aws::GameLift::Model::UpdateFleetCapacityRequest::SetMinSize
void SetMinSize(int value)
Definition: UpdateFleetCapacityRequest.h:130
Aws::GameLift::Model::UpdateFleetCapacityRequest::MinSizeHasBeenSet
bool MinSizeHasBeenSet() const
Definition: UpdateFleetCapacityRequest.h:124
Aws::GameLift::Model::UpdateFleetCapacityRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::UpdateFleetCapacityRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateFleetCapacityRequest.h:33
Aws::GameLift::Model::UpdateFleetCapacityRequest
Definition: UpdateFleetCapacityRequest.h:25
Aws::GameLift::Model::UpdateFleetCapacityRequest::SetDesiredInstances
void SetDesiredInstances(int value)
Definition: UpdateFleetCapacityRequest.h:105
Aws::GameLift::Model::UpdateFleetCapacityRequest::WithLocation
UpdateFleetCapacityRequest & WithLocation(const Aws::String &value)
Definition: UpdateFleetCapacityRequest.h:198
Aws::GameLift::Model::UpdateFleetCapacityRequest::SetFleetId
void SetFleetId(const Aws::String &value)
Definition: UpdateFleetCapacityRequest.h:56
Aws::GameLift::Model::UpdateFleetCapacityRequest::GetMinSize
int GetMinSize() const
Definition: UpdateFleetCapacityRequest.h:118