AWS SDK for C++  1.9.108
AWS SDK for C++
UpdateGameServerRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace GameLift
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "UpdateGameServer"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
43  inline const Aws::String& GetGameServerGroupName() const{ return m_gameServerGroupName; }
44 
49  inline bool GameServerGroupNameHasBeenSet() const { return m_gameServerGroupNameHasBeenSet; }
50 
55  inline void SetGameServerGroupName(const Aws::String& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = value; }
56 
61  inline void SetGameServerGroupName(Aws::String&& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = std::move(value); }
62 
67  inline void SetGameServerGroupName(const char* value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName.assign(value); }
68 
73  inline UpdateGameServerRequest& WithGameServerGroupName(const Aws::String& value) { SetGameServerGroupName(value); return *this;}
74 
79  inline UpdateGameServerRequest& WithGameServerGroupName(Aws::String&& value) { SetGameServerGroupName(std::move(value)); return *this;}
80 
85  inline UpdateGameServerRequest& WithGameServerGroupName(const char* value) { SetGameServerGroupName(value); return *this;}
86 
87 
91  inline const Aws::String& GetGameServerId() const{ return m_gameServerId; }
92 
96  inline bool GameServerIdHasBeenSet() const { return m_gameServerIdHasBeenSet; }
97 
101  inline void SetGameServerId(const Aws::String& value) { m_gameServerIdHasBeenSet = true; m_gameServerId = value; }
102 
106  inline void SetGameServerId(Aws::String&& value) { m_gameServerIdHasBeenSet = true; m_gameServerId = std::move(value); }
107 
111  inline void SetGameServerId(const char* value) { m_gameServerIdHasBeenSet = true; m_gameServerId.assign(value); }
112 
116  inline UpdateGameServerRequest& WithGameServerId(const Aws::String& value) { SetGameServerId(value); return *this;}
117 
121  inline UpdateGameServerRequest& WithGameServerId(Aws::String&& value) { SetGameServerId(std::move(value)); return *this;}
122 
126  inline UpdateGameServerRequest& WithGameServerId(const char* value) { SetGameServerId(value); return *this;}
127 
128 
134  inline const Aws::String& GetGameServerData() const{ return m_gameServerData; }
135 
141  inline bool GameServerDataHasBeenSet() const { return m_gameServerDataHasBeenSet; }
142 
148  inline void SetGameServerData(const Aws::String& value) { m_gameServerDataHasBeenSet = true; m_gameServerData = value; }
149 
155  inline void SetGameServerData(Aws::String&& value) { m_gameServerDataHasBeenSet = true; m_gameServerData = std::move(value); }
156 
162  inline void SetGameServerData(const char* value) { m_gameServerDataHasBeenSet = true; m_gameServerData.assign(value); }
163 
169  inline UpdateGameServerRequest& WithGameServerData(const Aws::String& value) { SetGameServerData(value); return *this;}
170 
176  inline UpdateGameServerRequest& WithGameServerData(Aws::String&& value) { SetGameServerData(std::move(value)); return *this;}
177 
183  inline UpdateGameServerRequest& WithGameServerData(const char* value) { SetGameServerData(value); return *this;}
184 
185 
190  inline const GameServerUtilizationStatus& GetUtilizationStatus() const{ return m_utilizationStatus; }
191 
196  inline bool UtilizationStatusHasBeenSet() const { return m_utilizationStatusHasBeenSet; }
197 
202  inline void SetUtilizationStatus(const GameServerUtilizationStatus& value) { m_utilizationStatusHasBeenSet = true; m_utilizationStatus = value; }
203 
208  inline void SetUtilizationStatus(GameServerUtilizationStatus&& value) { m_utilizationStatusHasBeenSet = true; m_utilizationStatus = std::move(value); }
209 
214  inline UpdateGameServerRequest& WithUtilizationStatus(const GameServerUtilizationStatus& value) { SetUtilizationStatus(value); return *this;}
215 
220  inline UpdateGameServerRequest& WithUtilizationStatus(GameServerUtilizationStatus&& value) { SetUtilizationStatus(std::move(value)); return *this;}
221 
222 
227  inline const GameServerHealthCheck& GetHealthCheck() const{ return m_healthCheck; }
228 
233  inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
234 
239  inline void SetHealthCheck(const GameServerHealthCheck& value) { m_healthCheckHasBeenSet = true; m_healthCheck = value; }
240 
245  inline void SetHealthCheck(GameServerHealthCheck&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::move(value); }
246 
251  inline UpdateGameServerRequest& WithHealthCheck(const GameServerHealthCheck& value) { SetHealthCheck(value); return *this;}
252 
257  inline UpdateGameServerRequest& WithHealthCheck(GameServerHealthCheck&& value) { SetHealthCheck(std::move(value)); return *this;}
258 
259  private:
260 
261  Aws::String m_gameServerGroupName;
262  bool m_gameServerGroupNameHasBeenSet;
263 
264  Aws::String m_gameServerId;
265  bool m_gameServerIdHasBeenSet;
266 
267  Aws::String m_gameServerData;
268  bool m_gameServerDataHasBeenSet;
269 
270  GameServerUtilizationStatus m_utilizationStatus;
271  bool m_utilizationStatusHasBeenSet;
272 
273  GameServerHealthCheck m_healthCheck;
274  bool m_healthCheckHasBeenSet;
275  };
276 
277 } // namespace Model
278 } // namespace GameLift
279 } // namespace Aws
Aws::GameLift::Model::UpdateGameServerRequest::UpdateGameServerRequest
UpdateGameServerRequest()
Aws::GameLift::Model::UpdateGameServerRequest::WithHealthCheck
UpdateGameServerRequest & WithHealthCheck(const GameServerHealthCheck &value)
Definition: UpdateGameServerRequest.h:251
Aws::GameLift::Model::UpdateGameServerRequest::GameServerIdHasBeenSet
bool GameServerIdHasBeenSet() const
Definition: UpdateGameServerRequest.h:96
Aws::GameLift::Model::UpdateGameServerRequest::SetGameServerGroupName
void SetGameServerGroupName(const char *value)
Definition: UpdateGameServerRequest.h:67
Aws::GameLift::Model::UpdateGameServerRequest::WithGameServerData
UpdateGameServerRequest & WithGameServerData(const char *value)
Definition: UpdateGameServerRequest.h:183
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::UpdateGameServerRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::GameLift::Model::UpdateGameServerRequest::WithGameServerId
UpdateGameServerRequest & WithGameServerId(const Aws::String &value)
Definition: UpdateGameServerRequest.h:116
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::UpdateGameServerRequest::WithGameServerGroupName
UpdateGameServerRequest & WithGameServerGroupName(const Aws::String &value)
Definition: UpdateGameServerRequest.h:73
Aws::GameLift::Model::UpdateGameServerRequest::GetHealthCheck
const GameServerHealthCheck & GetHealthCheck() const
Definition: UpdateGameServerRequest.h:227
Aws::GameLift::Model::UpdateGameServerRequest::SetUtilizationStatus
void SetUtilizationStatus(GameServerUtilizationStatus &&value)
Definition: UpdateGameServerRequest.h:208
Aws::GameLift::Model::GameServerUtilizationStatus
GameServerUtilizationStatus
Definition: GameServerUtilizationStatus.h:17
Aws::GameLift::Model::UpdateGameServerRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateGameServerRequest.h:32
Aws::GameLift::Model::UpdateGameServerRequest::GameServerDataHasBeenSet
bool GameServerDataHasBeenSet() const
Definition: UpdateGameServerRequest.h:141
Aws::GameLift::Model::UpdateGameServerRequest::SetGameServerId
void SetGameServerId(Aws::String &&value)
Definition: UpdateGameServerRequest.h:106
Aws::GameLift::Model::UpdateGameServerRequest::GetGameServerData
const Aws::String & GetGameServerData() const
Definition: UpdateGameServerRequest.h:134
GameLift_EXPORTS.h
GameLiftRequest.h
Aws::GameLift::Model::UpdateGameServerRequest::SetGameServerGroupName
void SetGameServerGroupName(Aws::String &&value)
Definition: UpdateGameServerRequest.h:61
Aws::GameLift::Model::UpdateGameServerRequest::WithGameServerId
UpdateGameServerRequest & WithGameServerId(Aws::String &&value)
Definition: UpdateGameServerRequest.h:121
Aws::GameLift::Model::UpdateGameServerRequest::SetUtilizationStatus
void SetUtilizationStatus(const GameServerUtilizationStatus &value)
Definition: UpdateGameServerRequest.h:202
Aws::GameLift::Model::UpdateGameServerRequest::UtilizationStatusHasBeenSet
bool UtilizationStatusHasBeenSet() const
Definition: UpdateGameServerRequest.h:196
Aws::GameLift::Model::UpdateGameServerRequest::SetGameServerGroupName
void SetGameServerGroupName(const Aws::String &value)
Definition: UpdateGameServerRequest.h:55
Aws::GameLift::Model::UpdateGameServerRequest::SetGameServerId
void SetGameServerId(const Aws::String &value)
Definition: UpdateGameServerRequest.h:101
Aws::GameLift::Model::UpdateGameServerRequest::GetGameServerGroupName
const Aws::String & GetGameServerGroupName() const
Definition: UpdateGameServerRequest.h:43
Aws::GameLift::Model::UpdateGameServerRequest::WithUtilizationStatus
UpdateGameServerRequest & WithUtilizationStatus(GameServerUtilizationStatus &&value)
Definition: UpdateGameServerRequest.h:220
Aws::GameLift::Model::UpdateGameServerRequest::SetHealthCheck
void SetHealthCheck(GameServerHealthCheck &&value)
Definition: UpdateGameServerRequest.h:245
GameServerUtilizationStatus.h
Aws::GameLift::Model::UpdateGameServerRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
Aws::GameLift::Model::UpdateGameServerRequest::WithGameServerId
UpdateGameServerRequest & WithGameServerId(const char *value)
Definition: UpdateGameServerRequest.h:126
AWSString.h
Aws::GameLift::Model::UpdateGameServerRequest::SetGameServerId
void SetGameServerId(const char *value)
Definition: UpdateGameServerRequest.h:111
Aws::GameLift::Model::UpdateGameServerRequest::WithHealthCheck
UpdateGameServerRequest & WithHealthCheck(GameServerHealthCheck &&value)
Definition: UpdateGameServerRequest.h:257
Aws::GameLift::Model::UpdateGameServerRequest::GetUtilizationStatus
const GameServerUtilizationStatus & GetUtilizationStatus() const
Definition: UpdateGameServerRequest.h:190
Aws::GameLift::Model::UpdateGameServerRequest::HealthCheckHasBeenSet
bool HealthCheckHasBeenSet() const
Definition: UpdateGameServerRequest.h:233
Aws::GameLift::Model::UpdateGameServerRequest::SetHealthCheck
void SetHealthCheck(const GameServerHealthCheck &value)
Definition: UpdateGameServerRequest.h:239
Aws::GameLift::Model::UpdateGameServerRequest::WithUtilizationStatus
UpdateGameServerRequest & WithUtilizationStatus(const GameServerUtilizationStatus &value)
Definition: UpdateGameServerRequest.h:214
Aws::GameLift::Model::UpdateGameServerRequest::WithGameServerGroupName
UpdateGameServerRequest & WithGameServerGroupName(const char *value)
Definition: UpdateGameServerRequest.h:85
Aws::GameLift::Model::UpdateGameServerRequest::WithGameServerData
UpdateGameServerRequest & WithGameServerData(Aws::String &&value)
Definition: UpdateGameServerRequest.h:176
Aws
Definition: AccessManagementClient.h:15
GameServerHealthCheck.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::UpdateGameServerRequest
Definition: UpdateGameServerRequest.h:24
Aws::GameLift::Model::UpdateGameServerRequest::GameServerGroupNameHasBeenSet
bool GameServerGroupNameHasBeenSet() const
Definition: UpdateGameServerRequest.h:49
Aws::GameLift::Model::UpdateGameServerRequest::SetGameServerData
void SetGameServerData(const Aws::String &value)
Definition: UpdateGameServerRequest.h:148
Aws::GameLift::Model::UpdateGameServerRequest::WithGameServerGroupName
UpdateGameServerRequest & WithGameServerGroupName(Aws::String &&value)
Definition: UpdateGameServerRequest.h:79
Aws::GameLift::Model::GameServerHealthCheck
GameServerHealthCheck
Definition: GameServerHealthCheck.h:17
Aws::GameLift::Model::UpdateGameServerRequest::SetGameServerData
void SetGameServerData(const char *value)
Definition: UpdateGameServerRequest.h:162
Aws::GameLift::Model::UpdateGameServerRequest::GetGameServerId
const Aws::String & GetGameServerId() const
Definition: UpdateGameServerRequest.h:91
Aws::GameLift::Model::UpdateGameServerRequest::SetGameServerData
void SetGameServerData(Aws::String &&value)
Definition: UpdateGameServerRequest.h:155
Aws::GameLift::Model::UpdateGameServerRequest::WithGameServerData
UpdateGameServerRequest & WithGameServerData(const Aws::String &value)
Definition: UpdateGameServerRequest.h:169