AWS SDK for C++  1.9.158
AWS SDK for C++
EC2InstanceLimit.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace GameLift
23 {
24 namespace Model
25 {
26 
38  {
39  public:
44 
45 
51  inline const EC2InstanceType& GetEC2InstanceType() const{ return m_eC2InstanceType; }
52 
58  inline bool EC2InstanceTypeHasBeenSet() const { return m_eC2InstanceTypeHasBeenSet; }
59 
65  inline void SetEC2InstanceType(const EC2InstanceType& value) { m_eC2InstanceTypeHasBeenSet = true; m_eC2InstanceType = value; }
66 
72  inline void SetEC2InstanceType(EC2InstanceType&& value) { m_eC2InstanceTypeHasBeenSet = true; m_eC2InstanceType = std::move(value); }
73 
79  inline EC2InstanceLimit& WithEC2InstanceType(const EC2InstanceType& value) { SetEC2InstanceType(value); return *this;}
80 
86  inline EC2InstanceLimit& WithEC2InstanceType(EC2InstanceType&& value) { SetEC2InstanceType(std::move(value)); return *this;}
87 
88 
93  inline int GetCurrentInstances() const{ return m_currentInstances; }
94 
99  inline bool CurrentInstancesHasBeenSet() const { return m_currentInstancesHasBeenSet; }
100 
105  inline void SetCurrentInstances(int value) { m_currentInstancesHasBeenSet = true; m_currentInstances = value; }
106 
111  inline EC2InstanceLimit& WithCurrentInstances(int value) { SetCurrentInstances(value); return *this;}
112 
113 
118  inline int GetInstanceLimit() const{ return m_instanceLimit; }
119 
124  inline bool InstanceLimitHasBeenSet() const { return m_instanceLimitHasBeenSet; }
125 
130  inline void SetInstanceLimit(int value) { m_instanceLimitHasBeenSet = true; m_instanceLimit = value; }
131 
136  inline EC2InstanceLimit& WithInstanceLimit(int value) { SetInstanceLimit(value); return *this;}
137 
138 
142  inline const Aws::String& GetLocation() const{ return m_location; }
143 
147  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
148 
152  inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
153 
157  inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
158 
162  inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
163 
167  inline EC2InstanceLimit& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
168 
172  inline EC2InstanceLimit& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
173 
177  inline EC2InstanceLimit& WithLocation(const char* value) { SetLocation(value); return *this;}
178 
179  private:
180 
181  EC2InstanceType m_eC2InstanceType;
182  bool m_eC2InstanceTypeHasBeenSet;
183 
184  int m_currentInstances;
185  bool m_currentInstancesHasBeenSet;
186 
187  int m_instanceLimit;
188  bool m_instanceLimitHasBeenSet;
189 
190  Aws::String m_location;
191  bool m_locationHasBeenSet;
192  };
193 
194 } // namespace Model
195 } // namespace GameLift
196 } // namespace Aws
Aws::GameLift::Model::EC2InstanceLimit::SetLocation
void SetLocation(const Aws::String &value)
Definition: EC2InstanceLimit.h:152
Aws::GameLift::Model::EC2InstanceLimit::SetEC2InstanceType
void SetEC2InstanceType(const EC2InstanceType &value)
Definition: EC2InstanceLimit.h:65
Aws::GameLift::Model::EC2InstanceLimit::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: EC2InstanceLimit.h:147
Aws::GameLift::Model::EC2InstanceType
EC2InstanceType
Definition: EC2InstanceType.h:17
Aws::GameLift::Model::EC2InstanceLimit::WithLocation
EC2InstanceLimit & WithLocation(Aws::String &&value)
Definition: EC2InstanceLimit.h:172
Aws::GameLift::Model::EC2InstanceLimit::GetEC2InstanceType
const EC2InstanceType & GetEC2InstanceType() const
Definition: EC2InstanceLimit.h:51
Aws::GameLift::Model::EC2InstanceLimit::operator=
EC2InstanceLimit & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::EC2InstanceLimit::SetInstanceLimit
void SetInstanceLimit(int value)
Definition: EC2InstanceLimit.h:130
Aws::GameLift::Model::EC2InstanceLimit::InstanceLimitHasBeenSet
bool InstanceLimitHasBeenSet() const
Definition: EC2InstanceLimit.h:124
Aws::GameLift::Model::EC2InstanceLimit::WithEC2InstanceType
EC2InstanceLimit & WithEC2InstanceType(EC2InstanceType &&value)
Definition: EC2InstanceLimit.h:86
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::EC2InstanceLimit::GetLocation
const Aws::String & GetLocation() const
Definition: EC2InstanceLimit.h:142
Aws::GameLift::Model::EC2InstanceLimit::GetInstanceLimit
int GetInstanceLimit() const
Definition: EC2InstanceLimit.h:118
Aws::GameLift::Model::EC2InstanceLimit::WithLocation
EC2InstanceLimit & WithLocation(const char *value)
Definition: EC2InstanceLimit.h:177
Aws::GameLift::Model::EC2InstanceLimit::WithLocation
EC2InstanceLimit & WithLocation(const Aws::String &value)
Definition: EC2InstanceLimit.h:167
Aws::GameLift::Model::EC2InstanceLimit::SetLocation
void SetLocation(const char *value)
Definition: EC2InstanceLimit.h:162
Aws::GameLift::Model::EC2InstanceLimit::EC2InstanceTypeHasBeenSet
bool EC2InstanceTypeHasBeenSet() const
Definition: EC2InstanceLimit.h:58
Aws::GameLift::Model::EC2InstanceLimit::GetCurrentInstances
int GetCurrentInstances() const
Definition: EC2InstanceLimit.h:93
Aws::GameLift::Model::EC2InstanceLimit
Definition: EC2InstanceLimit.h:38
Aws::GameLift::Model::EC2InstanceLimit::SetEC2InstanceType
void SetEC2InstanceType(EC2InstanceType &&value)
Definition: EC2InstanceLimit.h:72
Aws::GameLift::Model::EC2InstanceLimit::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
GameLift_EXPORTS.h
EC2InstanceType.h
Aws::GameLift::Model::EC2InstanceLimit::CurrentInstancesHasBeenSet
bool CurrentInstancesHasBeenSet() const
Definition: EC2InstanceLimit.h:99
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::GameLift::Model::EC2InstanceLimit::WithCurrentInstances
EC2InstanceLimit & WithCurrentInstances(int value)
Definition: EC2InstanceLimit.h:111
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GameLift::Model::EC2InstanceLimit::SetLocation
void SetLocation(Aws::String &&value)
Definition: EC2InstanceLimit.h:157
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::GameLift::Model::EC2InstanceLimit::WithEC2InstanceType
EC2InstanceLimit & WithEC2InstanceType(const EC2InstanceType &value)
Definition: EC2InstanceLimit.h:79
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::EC2InstanceLimit::SetCurrentInstances
void SetCurrentInstances(int value)
Definition: EC2InstanceLimit.h:105
Aws::GameLift::Model::EC2InstanceLimit::WithInstanceLimit
EC2InstanceLimit & WithInstanceLimit(int value)
Definition: EC2InstanceLimit.h:136
Aws::GameLift::Model::EC2InstanceLimit::EC2InstanceLimit
EC2InstanceLimit()
Aws::GameLift::Model::EC2InstanceLimit::EC2InstanceLimit
EC2InstanceLimit(Aws::Utils::Json::JsonView jsonValue)