AWS SDK for C++  1.8.56
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 
41  {
42  public:
43  FleetCapacity();
45  FleetCapacity& operator=(Aws::Utils::Json::JsonView jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
48 
52  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
53 
57  inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
58 
62  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
63 
67  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
68 
72  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
73 
77  inline FleetCapacity& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
78 
82  inline FleetCapacity& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
83 
87  inline FleetCapacity& WithFleetId(const char* value) { SetFleetId(value); return *this;}
88 
89 
98  inline const EC2InstanceType& GetInstanceType() const{ return m_instanceType; }
99 
108  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
109 
118  inline void SetInstanceType(const EC2InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
119 
128  inline void SetInstanceType(EC2InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
129 
138  inline FleetCapacity& WithInstanceType(const EC2InstanceType& value) { SetInstanceType(value); return *this;}
139 
148  inline FleetCapacity& WithInstanceType(EC2InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
149 
150 
154  inline const EC2InstanceCounts& GetInstanceCounts() const{ return m_instanceCounts; }
155 
159  inline bool InstanceCountsHasBeenSet() const { return m_instanceCountsHasBeenSet; }
160 
164  inline void SetInstanceCounts(const EC2InstanceCounts& value) { m_instanceCountsHasBeenSet = true; m_instanceCounts = value; }
165 
169  inline void SetInstanceCounts(EC2InstanceCounts&& value) { m_instanceCountsHasBeenSet = true; m_instanceCounts = std::move(value); }
170 
174  inline FleetCapacity& WithInstanceCounts(const EC2InstanceCounts& value) { SetInstanceCounts(value); return *this;}
175 
179  inline FleetCapacity& WithInstanceCounts(EC2InstanceCounts&& value) { SetInstanceCounts(std::move(value)); return *this;}
180 
181  private:
182 
183  Aws::String m_fleetId;
184  bool m_fleetIdHasBeenSet;
185 
186  EC2InstanceType m_instanceType;
187  bool m_instanceTypeHasBeenSet;
188 
189  EC2InstanceCounts m_instanceCounts;
190  bool m_instanceCountsHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace GameLift
195 } // namespace Aws
FleetCapacity & WithFleetId(const char *value)
Definition: FleetCapacity.h:87
#define AWS_GAMELIFT_API
void SetInstanceCounts(const EC2InstanceCounts &value)
void SetFleetId(Aws::String &&value)
Definition: FleetCapacity.h:67
FleetCapacity & WithInstanceCounts(const EC2InstanceCounts &value)
void SetFleetId(const Aws::String &value)
Definition: FleetCapacity.h:62
const Aws::String & GetFleetId() const
Definition: FleetCapacity.h:52
FleetCapacity & WithInstanceType(const EC2InstanceType &value)
const EC2InstanceCounts & GetInstanceCounts() const
FleetCapacity & WithFleetId(const Aws::String &value)
Definition: FleetCapacity.h:77
FleetCapacity & WithInstanceType(EC2InstanceType &&value)
void SetInstanceType(const EC2InstanceType &value)
void SetInstanceType(EC2InstanceType &&value)
FleetCapacity & WithFleetId(Aws::String &&value)
Definition: FleetCapacity.h:82
void SetFleetId(const char *value)
Definition: FleetCapacity.h:72
FleetCapacity & WithInstanceCounts(EC2InstanceCounts &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetInstanceCounts(EC2InstanceCounts &&value)
const EC2InstanceType & GetInstanceType() const
Definition: FleetCapacity.h:98