AWS SDK for C++  1.9.46
AWS SDK for C++
FleetCapacity.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace GameLift
24 {
25 namespace Model
26 {
27 
38  {
39  public:
44 
45 
49  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
50 
54  inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
55 
59  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
60 
64  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
65 
69  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
70 
74  inline FleetCapacity& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
75 
79  inline FleetCapacity& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
80 
84  inline FleetCapacity& WithFleetId(const char* value) { SetFleetId(value); return *this;}
85 
86 
94  inline const Aws::String& GetFleetArn() const{ return m_fleetArn; }
95 
103  inline bool FleetArnHasBeenSet() const { return m_fleetArnHasBeenSet; }
104 
112  inline void SetFleetArn(const Aws::String& value) { m_fleetArnHasBeenSet = true; m_fleetArn = value; }
113 
121  inline void SetFleetArn(Aws::String&& value) { m_fleetArnHasBeenSet = true; m_fleetArn = std::move(value); }
122 
130  inline void SetFleetArn(const char* value) { m_fleetArnHasBeenSet = true; m_fleetArn.assign(value); }
131 
139  inline FleetCapacity& WithFleetArn(const Aws::String& value) { SetFleetArn(value); return *this;}
140 
148  inline FleetCapacity& WithFleetArn(Aws::String&& value) { SetFleetArn(std::move(value)); return *this;}
149 
157  inline FleetCapacity& WithFleetArn(const char* value) { SetFleetArn(value); return *this;}
158 
159 
167  inline const EC2InstanceType& GetInstanceType() const{ return m_instanceType; }
168 
176  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
177 
185  inline void SetInstanceType(const EC2InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
186 
194  inline void SetInstanceType(EC2InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
195 
203  inline FleetCapacity& WithInstanceType(const EC2InstanceType& value) { SetInstanceType(value); return *this;}
204 
212  inline FleetCapacity& WithInstanceType(EC2InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
213 
214 
218  inline const EC2InstanceCounts& GetInstanceCounts() const{ return m_instanceCounts; }
219 
223  inline bool InstanceCountsHasBeenSet() const { return m_instanceCountsHasBeenSet; }
224 
228  inline void SetInstanceCounts(const EC2InstanceCounts& value) { m_instanceCountsHasBeenSet = true; m_instanceCounts = value; }
229 
233  inline void SetInstanceCounts(EC2InstanceCounts&& value) { m_instanceCountsHasBeenSet = true; m_instanceCounts = std::move(value); }
234 
238  inline FleetCapacity& WithInstanceCounts(const EC2InstanceCounts& value) { SetInstanceCounts(value); return *this;}
239 
243  inline FleetCapacity& WithInstanceCounts(EC2InstanceCounts&& value) { SetInstanceCounts(std::move(value)); return *this;}
244 
245 
250  inline const Aws::String& GetLocation() const{ return m_location; }
251 
256  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
257 
262  inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
263 
268  inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
269 
274  inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
275 
280  inline FleetCapacity& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
281 
286  inline FleetCapacity& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
287 
292  inline FleetCapacity& WithLocation(const char* value) { SetLocation(value); return *this;}
293 
294  private:
295 
296  Aws::String m_fleetId;
297  bool m_fleetIdHasBeenSet;
298 
299  Aws::String m_fleetArn;
300  bool m_fleetArnHasBeenSet;
301 
302  EC2InstanceType m_instanceType;
303  bool m_instanceTypeHasBeenSet;
304 
305  EC2InstanceCounts m_instanceCounts;
306  bool m_instanceCountsHasBeenSet;
307 
308  Aws::String m_location;
309  bool m_locationHasBeenSet;
310  };
311 
312 } // namespace Model
313 } // namespace GameLift
314 } // namespace Aws
Aws::GameLift::Model::FleetCapacity::GetInstanceCounts
const EC2InstanceCounts & GetInstanceCounts() const
Definition: FleetCapacity.h:218
Aws::GameLift::Model::FleetCapacity::WithInstanceType
FleetCapacity & WithInstanceType(const EC2InstanceType &value)
Definition: FleetCapacity.h:203
Aws::GameLift::Model::FleetCapacity::SetInstanceCounts
void SetInstanceCounts(EC2InstanceCounts &&value)
Definition: FleetCapacity.h:233
Aws::GameLift::Model::EC2InstanceType
EC2InstanceType
Definition: EC2InstanceType.h:17
Aws::GameLift::Model::FleetCapacity::WithInstanceCounts
FleetCapacity & WithInstanceCounts(EC2InstanceCounts &&value)
Definition: FleetCapacity.h:243
Aws::GameLift::Model::FleetCapacity::SetFleetArn
void SetFleetArn(const Aws::String &value)
Definition: FleetCapacity.h:112
Aws::GameLift::Model::FleetCapacity::SetLocation
void SetLocation(const char *value)
Definition: FleetCapacity.h:274
Aws::GameLift::Model::FleetCapacity::WithFleetArn
FleetCapacity & WithFleetArn(const Aws::String &value)
Definition: FleetCapacity.h:139
Aws::GameLift::Model::FleetCapacity
Definition: FleetCapacity.h:38
Aws::GameLift::Model::FleetCapacity::SetLocation
void SetLocation(const Aws::String &value)
Definition: FleetCapacity.h:262
Aws::GameLift::Model::FleetCapacity::FleetIdHasBeenSet
bool FleetIdHasBeenSet() const
Definition: FleetCapacity.h:54
Aws::GameLift::Model::FleetCapacity::WithLocation
FleetCapacity & WithLocation(const char *value)
Definition: FleetCapacity.h:292
Aws::GameLift::Model::FleetCapacity::SetFleetArn
void SetFleetArn(const char *value)
Definition: FleetCapacity.h:130
Aws::GameLift::Model::EC2InstanceCounts
Definition: EC2InstanceCounts.h:33
Aws::GameLift::Model::FleetCapacity::SetInstanceType
void SetInstanceType(EC2InstanceType &&value)
Definition: FleetCapacity.h:194
Aws::GameLift::Model::FleetCapacity::WithInstanceType
FleetCapacity & WithInstanceType(EC2InstanceType &&value)
Definition: FleetCapacity.h:212
Aws::GameLift::Model::FleetCapacity::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: FleetCapacity.h:256
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::FleetCapacity::operator=
FleetCapacity & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::FleetCapacity::SetFleetId
void SetFleetId(const char *value)
Definition: FleetCapacity.h:69
Aws::GameLift::Model::FleetCapacity::WithFleetId
FleetCapacity & WithFleetId(const char *value)
Definition: FleetCapacity.h:84
Aws::GameLift::Model::FleetCapacity::WithFleetId
FleetCapacity & WithFleetId(Aws::String &&value)
Definition: FleetCapacity.h:79
Aws::GameLift::Model::FleetCapacity::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::FleetCapacity::SetInstanceType
void SetInstanceType(const EC2InstanceType &value)
Definition: FleetCapacity.h:185
Aws::GameLift::Model::FleetCapacity::GetInstanceType
const EC2InstanceType & GetInstanceType() const
Definition: FleetCapacity.h:167
Aws::GameLift::Model::FleetCapacity::WithLocation
FleetCapacity & WithLocation(Aws::String &&value)
Definition: FleetCapacity.h:286
Aws::GameLift::Model::FleetCapacity::FleetCapacity
FleetCapacity(Aws::Utils::Json::JsonView jsonValue)
GameLift_EXPORTS.h
Aws::GameLift::Model::FleetCapacity::InstanceCountsHasBeenSet
bool InstanceCountsHasBeenSet() const
Definition: FleetCapacity.h:223
EC2InstanceType.h
Aws::GameLift::Model::FleetCapacity::WithFleetArn
FleetCapacity & WithFleetArn(Aws::String &&value)
Definition: FleetCapacity.h:148
Aws::GameLift::Model::FleetCapacity::SetFleetArn
void SetFleetArn(Aws::String &&value)
Definition: FleetCapacity.h:121
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
EC2InstanceCounts.h
AWSString.h
Aws::GameLift::Model::FleetCapacity::SetFleetId
void SetFleetId(Aws::String &&value)
Definition: FleetCapacity.h:64
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GameLift::Model::FleetCapacity::SetInstanceCounts
void SetInstanceCounts(const EC2InstanceCounts &value)
Definition: FleetCapacity.h:228
Aws::GameLift::Model::FleetCapacity::SetFleetId
void SetFleetId(const Aws::String &value)
Definition: FleetCapacity.h:59
Aws::GameLift::Model::FleetCapacity::InstanceTypeHasBeenSet
bool InstanceTypeHasBeenSet() const
Definition: FleetCapacity.h:176
Aws::GameLift::Model::FleetCapacity::WithInstanceCounts
FleetCapacity & WithInstanceCounts(const EC2InstanceCounts &value)
Definition: FleetCapacity.h:238
Aws::GameLift::Model::FleetCapacity::GetFleetArn
const Aws::String & GetFleetArn() const
Definition: FleetCapacity.h:94
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::FleetCapacity::SetLocation
void SetLocation(Aws::String &&value)
Definition: FleetCapacity.h:268
Aws::GameLift::Model::FleetCapacity::GetLocation
const Aws::String & GetLocation() const
Definition: FleetCapacity.h:250
Aws::GameLift::Model::FleetCapacity::WithLocation
FleetCapacity & WithLocation(const Aws::String &value)
Definition: FleetCapacity.h:280
Aws::GameLift::Model::FleetCapacity::FleetArnHasBeenSet
bool FleetArnHasBeenSet() const
Definition: FleetCapacity.h:103
Aws::GameLift::Model::FleetCapacity::GetFleetId
const Aws::String & GetFleetId() const
Definition: FleetCapacity.h:49
Aws::GameLift::Model::FleetCapacity::WithFleetId
FleetCapacity & WithFleetId(const Aws::String &value)
Definition: FleetCapacity.h:74
Aws::GameLift::Model::FleetCapacity::WithFleetArn
FleetCapacity & WithFleetArn(const char *value)
Definition: FleetCapacity.h:157
Aws::GameLift::Model::FleetCapacity::FleetCapacity
FleetCapacity()