AWS SDK for C++  1.9.104
AWS SDK for C++
GameServerInstance.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 
45  {
46  public:
51 
52 
58  inline const Aws::String& GetGameServerGroupName() const{ return m_gameServerGroupName; }
59 
65  inline bool GameServerGroupNameHasBeenSet() const { return m_gameServerGroupNameHasBeenSet; }
66 
72  inline void SetGameServerGroupName(const Aws::String& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = value; }
73 
79  inline void SetGameServerGroupName(Aws::String&& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = std::move(value); }
80 
86  inline void SetGameServerGroupName(const char* value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName.assign(value); }
87 
93  inline GameServerInstance& WithGameServerGroupName(const Aws::String& value) { SetGameServerGroupName(value); return *this;}
94 
100  inline GameServerInstance& WithGameServerGroupName(Aws::String&& value) { SetGameServerGroupName(std::move(value)); return *this;}
101 
107  inline GameServerInstance& WithGameServerGroupName(const char* value) { SetGameServerGroupName(value); return *this;}
108 
109 
114  inline const Aws::String& GetGameServerGroupArn() const{ return m_gameServerGroupArn; }
115 
120  inline bool GameServerGroupArnHasBeenSet() const { return m_gameServerGroupArnHasBeenSet; }
121 
126  inline void SetGameServerGroupArn(const Aws::String& value) { m_gameServerGroupArnHasBeenSet = true; m_gameServerGroupArn = value; }
127 
132  inline void SetGameServerGroupArn(Aws::String&& value) { m_gameServerGroupArnHasBeenSet = true; m_gameServerGroupArn = std::move(value); }
133 
138  inline void SetGameServerGroupArn(const char* value) { m_gameServerGroupArnHasBeenSet = true; m_gameServerGroupArn.assign(value); }
139 
144  inline GameServerInstance& WithGameServerGroupArn(const Aws::String& value) { SetGameServerGroupArn(value); return *this;}
145 
150  inline GameServerInstance& WithGameServerGroupArn(Aws::String&& value) { SetGameServerGroupArn(std::move(value)); return *this;}
151 
156  inline GameServerInstance& WithGameServerGroupArn(const char* value) { SetGameServerGroupArn(value); return *this;}
157 
158 
164  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
165 
171  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
172 
178  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
179 
185  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
186 
192  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
193 
199  inline GameServerInstance& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
200 
206  inline GameServerInstance& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
207 
213  inline GameServerInstance& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
214 
215 
228  inline const GameServerInstanceStatus& GetInstanceStatus() const{ return m_instanceStatus; }
229 
242  inline bool InstanceStatusHasBeenSet() const { return m_instanceStatusHasBeenSet; }
243 
256  inline void SetInstanceStatus(const GameServerInstanceStatus& value) { m_instanceStatusHasBeenSet = true; m_instanceStatus = value; }
257 
270  inline void SetInstanceStatus(GameServerInstanceStatus&& value) { m_instanceStatusHasBeenSet = true; m_instanceStatus = std::move(value); }
271 
284  inline GameServerInstance& WithInstanceStatus(const GameServerInstanceStatus& value) { SetInstanceStatus(value); return *this;}
285 
298  inline GameServerInstance& WithInstanceStatus(GameServerInstanceStatus&& value) { SetInstanceStatus(std::move(value)); return *this;}
299 
300  private:
301 
302  Aws::String m_gameServerGroupName;
303  bool m_gameServerGroupNameHasBeenSet;
304 
305  Aws::String m_gameServerGroupArn;
306  bool m_gameServerGroupArnHasBeenSet;
307 
308  Aws::String m_instanceId;
309  bool m_instanceIdHasBeenSet;
310 
311  GameServerInstanceStatus m_instanceStatus;
312  bool m_instanceStatusHasBeenSet;
313  };
314 
315 } // namespace Model
316 } // namespace GameLift
317 } // namespace Aws
Aws::GameLift::Model::GameServerInstanceStatus
GameServerInstanceStatus
Definition: GameServerInstanceStatus.h:17
Aws::GameLift::Model::GameServerInstance::WithGameServerGroupName
GameServerInstance & WithGameServerGroupName(const char *value)
Definition: GameServerInstance.h:107
Aws::GameLift::Model::GameServerInstance::SetGameServerGroupArn
void SetGameServerGroupArn(const char *value)
Definition: GameServerInstance.h:138
Aws::GameLift::Model::GameServerInstance::WithInstanceId
GameServerInstance & WithInstanceId(Aws::String &&value)
Definition: GameServerInstance.h:206
Aws::GameLift::Model::GameServerInstance::operator=
GameServerInstance & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::GameServerInstance::SetInstanceId
void SetInstanceId(const char *value)
Definition: GameServerInstance.h:192
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::GameServerInstance::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: GameServerInstance.h:178
Aws::GameLift::Model::GameServerInstance::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::GameServerInstance::WithInstanceStatus
GameServerInstance & WithInstanceStatus(const GameServerInstanceStatus &value)
Definition: GameServerInstance.h:284
GameServerInstanceStatus.h
Aws::GameLift::Model::GameServerInstance::GetInstanceStatus
const GameServerInstanceStatus & GetInstanceStatus() const
Definition: GameServerInstance.h:228
Aws::GameLift::Model::GameServerInstance::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: GameServerInstance.h:164
Aws::GameLift::Model::GameServerInstance::WithInstanceId
GameServerInstance & WithInstanceId(const char *value)
Definition: GameServerInstance.h:213
Aws::GameLift::Model::GameServerInstance::SetInstanceStatus
void SetInstanceStatus(GameServerInstanceStatus &&value)
Definition: GameServerInstance.h:270
Aws::GameLift::Model::GameServerInstance::GameServerGroupNameHasBeenSet
bool GameServerGroupNameHasBeenSet() const
Definition: GameServerInstance.h:65
Aws::GameLift::Model::GameServerInstance::WithGameServerGroupName
GameServerInstance & WithGameServerGroupName(Aws::String &&value)
Definition: GameServerInstance.h:100
Aws::GameLift::Model::GameServerInstance::WithInstanceStatus
GameServerInstance & WithInstanceStatus(GameServerInstanceStatus &&value)
Definition: GameServerInstance.h:298
Aws::GameLift::Model::GameServerInstance::SetGameServerGroupArn
void SetGameServerGroupArn(Aws::String &&value)
Definition: GameServerInstance.h:132
GameLift_EXPORTS.h
Aws::GameLift::Model::GameServerInstance::SetGameServerGroupName
void SetGameServerGroupName(Aws::String &&value)
Definition: GameServerInstance.h:79
Aws::GameLift::Model::GameServerInstance::WithInstanceId
GameServerInstance & WithInstanceId(const Aws::String &value)
Definition: GameServerInstance.h:199
Aws::GameLift::Model::GameServerInstance::GameServerInstance
GameServerInstance()
Aws::GameLift::Model::GameServerInstance::WithGameServerGroupName
GameServerInstance & WithGameServerGroupName(const Aws::String &value)
Definition: GameServerInstance.h:93
Aws::GameLift::Model::GameServerInstance::SetGameServerGroupName
void SetGameServerGroupName(const Aws::String &value)
Definition: GameServerInstance.h:72
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GameLift::Model::GameServerInstance::SetInstanceStatus
void SetInstanceStatus(const GameServerInstanceStatus &value)
Definition: GameServerInstance.h:256
Aws::GameLift::Model::GameServerInstance
Definition: GameServerInstance.h:45
Aws::GameLift::Model::GameServerInstance::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: GameServerInstance.h:185
Aws::GameLift::Model::GameServerInstance::GetGameServerGroupArn
const Aws::String & GetGameServerGroupArn() const
Definition: GameServerInstance.h:114
Aws::GameLift::Model::GameServerInstance::InstanceStatusHasBeenSet
bool InstanceStatusHasBeenSet() const
Definition: GameServerInstance.h:242
Aws::GameLift::Model::GameServerInstance::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: GameServerInstance.h:171
Aws::GameLift::Model::GameServerInstance::WithGameServerGroupArn
GameServerInstance & WithGameServerGroupArn(const char *value)
Definition: GameServerInstance.h:156
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::GameServerInstance::WithGameServerGroupArn
GameServerInstance & WithGameServerGroupArn(Aws::String &&value)
Definition: GameServerInstance.h:150
Aws::GameLift::Model::GameServerInstance::GameServerInstance
GameServerInstance(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::GameServerInstance::GetGameServerGroupName
const Aws::String & GetGameServerGroupName() const
Definition: GameServerInstance.h:58
Aws::GameLift::Model::GameServerInstance::SetGameServerGroupArn
void SetGameServerGroupArn(const Aws::String &value)
Definition: GameServerInstance.h:126
Aws::GameLift::Model::GameServerInstance::GameServerGroupArnHasBeenSet
bool GameServerGroupArnHasBeenSet() const
Definition: GameServerInstance.h:120
Aws::GameLift::Model::GameServerInstance::SetGameServerGroupName
void SetGameServerGroupName(const char *value)
Definition: GameServerInstance.h:86
Aws::GameLift::Model::GameServerInstance::WithGameServerGroupArn
GameServerInstance & WithGameServerGroupArn(const Aws::String &value)
Definition: GameServerInstance.h:144