AWS SDK for C++  1.9.108
AWS SDK for C++
InstanceDefinition.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 
49  inline const GameServerGroupInstanceType& GetInstanceType() const{ return m_instanceType; }
50 
54  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
55 
59  inline void SetInstanceType(const GameServerGroupInstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
60 
64  inline void SetInstanceType(GameServerGroupInstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
65 
69  inline InstanceDefinition& WithInstanceType(const GameServerGroupInstanceType& value) { SetInstanceType(value); return *this;}
70 
74  inline InstanceDefinition& WithInstanceType(GameServerGroupInstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
75 
76 
87  inline const Aws::String& GetWeightedCapacity() const{ return m_weightedCapacity; }
88 
99  inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; }
100 
111  inline void SetWeightedCapacity(const Aws::String& value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = value; }
112 
123  inline void SetWeightedCapacity(Aws::String&& value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = std::move(value); }
124 
135  inline void SetWeightedCapacity(const char* value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity.assign(value); }
136 
147  inline InstanceDefinition& WithWeightedCapacity(const Aws::String& value) { SetWeightedCapacity(value); return *this;}
148 
159  inline InstanceDefinition& WithWeightedCapacity(Aws::String&& value) { SetWeightedCapacity(std::move(value)); return *this;}
160 
171  inline InstanceDefinition& WithWeightedCapacity(const char* value) { SetWeightedCapacity(value); return *this;}
172 
173  private:
174 
175  GameServerGroupInstanceType m_instanceType;
176  bool m_instanceTypeHasBeenSet;
177 
178  Aws::String m_weightedCapacity;
179  bool m_weightedCapacityHasBeenSet;
180  };
181 
182 } // namespace Model
183 } // namespace GameLift
184 } // namespace Aws
Aws::GameLift::Model::InstanceDefinition::SetWeightedCapacity
void SetWeightedCapacity(const char *value)
Definition: InstanceDefinition.h:135
Aws::GameLift::Model::InstanceDefinition::WithWeightedCapacity
InstanceDefinition & WithWeightedCapacity(const Aws::String &value)
Definition: InstanceDefinition.h:147
Aws::GameLift::Model::InstanceDefinition::WithWeightedCapacity
InstanceDefinition & WithWeightedCapacity(const char *value)
Definition: InstanceDefinition.h:171
Aws::GameLift::Model::InstanceDefinition::SetInstanceType
void SetInstanceType(GameServerGroupInstanceType &&value)
Definition: InstanceDefinition.h:64
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::InstanceDefinition::WithWeightedCapacity
InstanceDefinition & WithWeightedCapacity(Aws::String &&value)
Definition: InstanceDefinition.h:159
Aws::GameLift::Model::InstanceDefinition::WithInstanceType
InstanceDefinition & WithInstanceType(const GameServerGroupInstanceType &value)
Definition: InstanceDefinition.h:69
Aws::GameLift::Model::InstanceDefinition::operator=
InstanceDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::InstanceDefinition
Definition: InstanceDefinition.h:38
Aws::GameLift::Model::InstanceDefinition::SetInstanceType
void SetInstanceType(const GameServerGroupInstanceType &value)
Definition: InstanceDefinition.h:59
Aws::GameLift::Model::InstanceDefinition::GetInstanceType
const GameServerGroupInstanceType & GetInstanceType() const
Definition: InstanceDefinition.h:49
Aws::GameLift::Model::InstanceDefinition::GetWeightedCapacity
const Aws::String & GetWeightedCapacity() const
Definition: InstanceDefinition.h:87
Aws::GameLift::Model::GameServerGroupInstanceType
GameServerGroupInstanceType
Definition: GameServerGroupInstanceType.h:17
GameLift_EXPORTS.h
Aws::GameLift::Model::InstanceDefinition::InstanceDefinition
InstanceDefinition()
Aws::GameLift::Model::InstanceDefinition::InstanceDefinition
InstanceDefinition(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::InstanceDefinition::WithInstanceType
InstanceDefinition & WithInstanceType(GameServerGroupInstanceType &&value)
Definition: InstanceDefinition.h:74
GameServerGroupInstanceType.h
Aws::GameLift::Model::InstanceDefinition::InstanceTypeHasBeenSet
bool InstanceTypeHasBeenSet() const
Definition: InstanceDefinition.h:54
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GameLift::Model::InstanceDefinition::WeightedCapacityHasBeenSet
bool WeightedCapacityHasBeenSet() const
Definition: InstanceDefinition.h:99
Aws::GameLift::Model::InstanceDefinition::SetWeightedCapacity
void SetWeightedCapacity(Aws::String &&value)
Definition: InstanceDefinition.h:123
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::InstanceDefinition::SetWeightedCapacity
void SetWeightedCapacity(const Aws::String &value)
Definition: InstanceDefinition.h:111
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::InstanceDefinition::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const