AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GameServer.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gamelift/model/GameServerClaimStatus.h>
10#include <aws/gamelift/model/GameServerUtilizationStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GameLift
25{
26namespace Model
27{
28
40 {
41 public:
42 AWS_GAMELIFT_API GameServer();
43 AWS_GAMELIFT_API GameServer(Aws::Utils::Json::JsonView jsonValue);
44 AWS_GAMELIFT_API GameServer& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline const Aws::String& GetGameServerGroupName() const{ return m_gameServerGroupName; }
54 inline bool GameServerGroupNameHasBeenSet() const { return m_gameServerGroupNameHasBeenSet; }
55 inline void SetGameServerGroupName(const Aws::String& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = value; }
56 inline void SetGameServerGroupName(Aws::String&& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = std::move(value); }
57 inline void SetGameServerGroupName(const char* value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName.assign(value); }
58 inline GameServer& WithGameServerGroupName(const Aws::String& value) { SetGameServerGroupName(value); return *this;}
59 inline GameServer& WithGameServerGroupName(Aws::String&& value) { SetGameServerGroupName(std::move(value)); return *this;}
60 inline GameServer& WithGameServerGroupName(const char* value) { SetGameServerGroupName(value); return *this;}
62
64
68 inline const Aws::String& GetGameServerGroupArn() const{ return m_gameServerGroupArn; }
69 inline bool GameServerGroupArnHasBeenSet() const { return m_gameServerGroupArnHasBeenSet; }
70 inline void SetGameServerGroupArn(const Aws::String& value) { m_gameServerGroupArnHasBeenSet = true; m_gameServerGroupArn = value; }
71 inline void SetGameServerGroupArn(Aws::String&& value) { m_gameServerGroupArnHasBeenSet = true; m_gameServerGroupArn = std::move(value); }
72 inline void SetGameServerGroupArn(const char* value) { m_gameServerGroupArnHasBeenSet = true; m_gameServerGroupArn.assign(value); }
73 inline GameServer& WithGameServerGroupArn(const Aws::String& value) { SetGameServerGroupArn(value); return *this;}
74 inline GameServer& WithGameServerGroupArn(Aws::String&& value) { SetGameServerGroupArn(std::move(value)); return *this;}
75 inline GameServer& WithGameServerGroupArn(const char* value) { SetGameServerGroupArn(value); return *this;}
77
79
84 inline const Aws::String& GetGameServerId() const{ return m_gameServerId; }
85 inline bool GameServerIdHasBeenSet() const { return m_gameServerIdHasBeenSet; }
86 inline void SetGameServerId(const Aws::String& value) { m_gameServerIdHasBeenSet = true; m_gameServerId = value; }
87 inline void SetGameServerId(Aws::String&& value) { m_gameServerIdHasBeenSet = true; m_gameServerId = std::move(value); }
88 inline void SetGameServerId(const char* value) { m_gameServerIdHasBeenSet = true; m_gameServerId.assign(value); }
89 inline GameServer& WithGameServerId(const Aws::String& value) { SetGameServerId(value); return *this;}
90 inline GameServer& WithGameServerId(Aws::String&& value) { SetGameServerId(std::move(value)); return *this;}
91 inline GameServer& WithGameServerId(const char* value) { SetGameServerId(value); return *this;}
93
95
100 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
101 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
102 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
103 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
104 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
105 inline GameServer& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
106 inline GameServer& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
107 inline GameServer& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
109
111
115 inline const Aws::String& GetConnectionInfo() const{ return m_connectionInfo; }
116 inline bool ConnectionInfoHasBeenSet() const { return m_connectionInfoHasBeenSet; }
117 inline void SetConnectionInfo(const Aws::String& value) { m_connectionInfoHasBeenSet = true; m_connectionInfo = value; }
118 inline void SetConnectionInfo(Aws::String&& value) { m_connectionInfoHasBeenSet = true; m_connectionInfo = std::move(value); }
119 inline void SetConnectionInfo(const char* value) { m_connectionInfoHasBeenSet = true; m_connectionInfo.assign(value); }
120 inline GameServer& WithConnectionInfo(const Aws::String& value) { SetConnectionInfo(value); return *this;}
121 inline GameServer& WithConnectionInfo(Aws::String&& value) { SetConnectionInfo(std::move(value)); return *this;}
122 inline GameServer& WithConnectionInfo(const char* value) { SetConnectionInfo(value); return *this;}
124
126
131 inline const Aws::String& GetGameServerData() const{ return m_gameServerData; }
132 inline bool GameServerDataHasBeenSet() const { return m_gameServerDataHasBeenSet; }
133 inline void SetGameServerData(const Aws::String& value) { m_gameServerDataHasBeenSet = true; m_gameServerData = value; }
134 inline void SetGameServerData(Aws::String&& value) { m_gameServerDataHasBeenSet = true; m_gameServerData = std::move(value); }
135 inline void SetGameServerData(const char* value) { m_gameServerDataHasBeenSet = true; m_gameServerData.assign(value); }
136 inline GameServer& WithGameServerData(const Aws::String& value) { SetGameServerData(value); return *this;}
137 inline GameServer& WithGameServerData(Aws::String&& value) { SetGameServerData(std::move(value)); return *this;}
138 inline GameServer& WithGameServerData(const char* value) { SetGameServerData(value); return *this;}
140
142
150 inline const GameServerClaimStatus& GetClaimStatus() const{ return m_claimStatus; }
151 inline bool ClaimStatusHasBeenSet() const { return m_claimStatusHasBeenSet; }
152 inline void SetClaimStatus(const GameServerClaimStatus& value) { m_claimStatusHasBeenSet = true; m_claimStatus = value; }
153 inline void SetClaimStatus(GameServerClaimStatus&& value) { m_claimStatusHasBeenSet = true; m_claimStatus = std::move(value); }
154 inline GameServer& WithClaimStatus(const GameServerClaimStatus& value) { SetClaimStatus(value); return *this;}
155 inline GameServer& WithClaimStatus(GameServerClaimStatus&& value) { SetClaimStatus(std::move(value)); return *this;}
157
159
167 inline const GameServerUtilizationStatus& GetUtilizationStatus() const{ return m_utilizationStatus; }
168 inline bool UtilizationStatusHasBeenSet() const { return m_utilizationStatusHasBeenSet; }
169 inline void SetUtilizationStatus(const GameServerUtilizationStatus& value) { m_utilizationStatusHasBeenSet = true; m_utilizationStatus = value; }
170 inline void SetUtilizationStatus(GameServerUtilizationStatus&& value) { m_utilizationStatusHasBeenSet = true; m_utilizationStatus = std::move(value); }
172 inline GameServer& WithUtilizationStatus(GameServerUtilizationStatus&& value) { SetUtilizationStatus(std::move(value)); return *this;}
174
176
181 inline const Aws::Utils::DateTime& GetRegistrationTime() const{ return m_registrationTime; }
182 inline bool RegistrationTimeHasBeenSet() const { return m_registrationTimeHasBeenSet; }
183 inline void SetRegistrationTime(const Aws::Utils::DateTime& value) { m_registrationTimeHasBeenSet = true; m_registrationTime = value; }
184 inline void SetRegistrationTime(Aws::Utils::DateTime&& value) { m_registrationTimeHasBeenSet = true; m_registrationTime = std::move(value); }
185 inline GameServer& WithRegistrationTime(const Aws::Utils::DateTime& value) { SetRegistrationTime(value); return *this;}
186 inline GameServer& WithRegistrationTime(Aws::Utils::DateTime&& value) { SetRegistrationTime(std::move(value)); return *this;}
188
190
196 inline const Aws::Utils::DateTime& GetLastClaimTime() const{ return m_lastClaimTime; }
197 inline bool LastClaimTimeHasBeenSet() const { return m_lastClaimTimeHasBeenSet; }
198 inline void SetLastClaimTime(const Aws::Utils::DateTime& value) { m_lastClaimTimeHasBeenSet = true; m_lastClaimTime = value; }
199 inline void SetLastClaimTime(Aws::Utils::DateTime&& value) { m_lastClaimTimeHasBeenSet = true; m_lastClaimTime = std::move(value); }
200 inline GameServer& WithLastClaimTime(const Aws::Utils::DateTime& value) { SetLastClaimTime(value); return *this;}
201 inline GameServer& WithLastClaimTime(Aws::Utils::DateTime&& value) { SetLastClaimTime(std::move(value)); return *this;}
203
205
212 inline const Aws::Utils::DateTime& GetLastHealthCheckTime() const{ return m_lastHealthCheckTime; }
213 inline bool LastHealthCheckTimeHasBeenSet() const { return m_lastHealthCheckTimeHasBeenSet; }
214 inline void SetLastHealthCheckTime(const Aws::Utils::DateTime& value) { m_lastHealthCheckTimeHasBeenSet = true; m_lastHealthCheckTime = value; }
215 inline void SetLastHealthCheckTime(Aws::Utils::DateTime&& value) { m_lastHealthCheckTimeHasBeenSet = true; m_lastHealthCheckTime = std::move(value); }
217 inline GameServer& WithLastHealthCheckTime(Aws::Utils::DateTime&& value) { SetLastHealthCheckTime(std::move(value)); return *this;}
219 private:
220
221 Aws::String m_gameServerGroupName;
222 bool m_gameServerGroupNameHasBeenSet = false;
223
224 Aws::String m_gameServerGroupArn;
225 bool m_gameServerGroupArnHasBeenSet = false;
226
227 Aws::String m_gameServerId;
228 bool m_gameServerIdHasBeenSet = false;
229
230 Aws::String m_instanceId;
231 bool m_instanceIdHasBeenSet = false;
232
233 Aws::String m_connectionInfo;
234 bool m_connectionInfoHasBeenSet = false;
235
236 Aws::String m_gameServerData;
237 bool m_gameServerDataHasBeenSet = false;
238
239 GameServerClaimStatus m_claimStatus;
240 bool m_claimStatusHasBeenSet = false;
241
242 GameServerUtilizationStatus m_utilizationStatus;
243 bool m_utilizationStatusHasBeenSet = false;
244
245 Aws::Utils::DateTime m_registrationTime;
246 bool m_registrationTimeHasBeenSet = false;
247
248 Aws::Utils::DateTime m_lastClaimTime;
249 bool m_lastClaimTimeHasBeenSet = false;
250
251 Aws::Utils::DateTime m_lastHealthCheckTime;
252 bool m_lastHealthCheckTimeHasBeenSet = false;
253 };
254
255} // namespace Model
256} // namespace GameLift
257} // namespace Aws
bool LastHealthCheckTimeHasBeenSet() const
Definition GameServer.h:213
const GameServerClaimStatus & GetClaimStatus() const
Definition GameServer.h:150
const Aws::String & GetConnectionInfo() const
Definition GameServer.h:115
GameServer & WithClaimStatus(const GameServerClaimStatus &value)
Definition GameServer.h:154
void SetConnectionInfo(const Aws::String &value)
Definition GameServer.h:117
void SetGameServerId(Aws::String &&value)
Definition GameServer.h:87
GameServer & WithGameServerData(Aws::String &&value)
Definition GameServer.h:137
const Aws::String & GetGameServerGroupName() const
Definition GameServer.h:53
void SetLastHealthCheckTime(const Aws::Utils::DateTime &value)
Definition GameServer.h:214
AWS_GAMELIFT_API GameServer & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetConnectionInfo(const char *value)
Definition GameServer.h:119
void SetLastHealthCheckTime(Aws::Utils::DateTime &&value)
Definition GameServer.h:215
GameServer & WithInstanceId(const Aws::String &value)
Definition GameServer.h:105
void SetRegistrationTime(Aws::Utils::DateTime &&value)
Definition GameServer.h:184
const Aws::String & GetGameServerGroupArn() const
Definition GameServer.h:68
GameServer & WithGameServerGroupArn(const Aws::String &value)
Definition GameServer.h:73
void SetInstanceId(const char *value)
Definition GameServer.h:104
GameServer & WithGameServerId(Aws::String &&value)
Definition GameServer.h:90
void SetGameServerGroupName(Aws::String &&value)
Definition GameServer.h:56
const Aws::String & GetInstanceId() const
Definition GameServer.h:100
void SetGameServerData(const char *value)
Definition GameServer.h:135
GameServer & WithRegistrationTime(const Aws::Utils::DateTime &value)
Definition GameServer.h:185
const Aws::Utils::DateTime & GetLastHealthCheckTime() const
Definition GameServer.h:212
GameServer & WithConnectionInfo(Aws::String &&value)
Definition GameServer.h:121
const Aws::String & GetGameServerData() const
Definition GameServer.h:131
void SetGameServerGroupName(const char *value)
Definition GameServer.h:57
GameServer & WithInstanceId(const char *value)
Definition GameServer.h:107
void SetClaimStatus(GameServerClaimStatus &&value)
Definition GameServer.h:153
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
const GameServerUtilizationStatus & GetUtilizationStatus() const
Definition GameServer.h:167
void SetUtilizationStatus(const GameServerUtilizationStatus &value)
Definition GameServer.h:169
GameServer & WithGameServerGroupName(Aws::String &&value)
Definition GameServer.h:59
GameServer & WithConnectionInfo(const char *value)
Definition GameServer.h:122
GameServer & WithGameServerGroupArn(Aws::String &&value)
Definition GameServer.h:74
void SetGameServerData(const Aws::String &value)
Definition GameServer.h:133
GameServer & WithLastHealthCheckTime(const Aws::Utils::DateTime &value)
Definition GameServer.h:216
void SetLastClaimTime(Aws::Utils::DateTime &&value)
Definition GameServer.h:199
void SetGameServerGroupName(const Aws::String &value)
Definition GameServer.h:55
GameServer & WithGameServerData(const Aws::String &value)
Definition GameServer.h:136
void SetConnectionInfo(Aws::String &&value)
Definition GameServer.h:118
void SetGameServerGroupArn(const Aws::String &value)
Definition GameServer.h:70
void SetInstanceId(Aws::String &&value)
Definition GameServer.h:103
GameServer & WithClaimStatus(GameServerClaimStatus &&value)
Definition GameServer.h:155
GameServer & WithGameServerId(const char *value)
Definition GameServer.h:91
GameServer & WithLastHealthCheckTime(Aws::Utils::DateTime &&value)
Definition GameServer.h:217
const Aws::Utils::DateTime & GetRegistrationTime() const
Definition GameServer.h:181
GameServer & WithGameServerId(const Aws::String &value)
Definition GameServer.h:89
void SetClaimStatus(const GameServerClaimStatus &value)
Definition GameServer.h:152
GameServer & WithLastClaimTime(Aws::Utils::DateTime &&value)
Definition GameServer.h:201
GameServer & WithConnectionInfo(const Aws::String &value)
Definition GameServer.h:120
bool GameServerGroupArnHasBeenSet() const
Definition GameServer.h:69
GameServer & WithLastClaimTime(const Aws::Utils::DateTime &value)
Definition GameServer.h:200
void SetLastClaimTime(const Aws::Utils::DateTime &value)
Definition GameServer.h:198
void SetUtilizationStatus(GameServerUtilizationStatus &&value)
Definition GameServer.h:170
GameServer & WithRegistrationTime(Aws::Utils::DateTime &&value)
Definition GameServer.h:186
void SetRegistrationTime(const Aws::Utils::DateTime &value)
Definition GameServer.h:183
GameServer & WithUtilizationStatus(const GameServerUtilizationStatus &value)
Definition GameServer.h:171
void SetGameServerGroupArn(Aws::String &&value)
Definition GameServer.h:71
void SetGameServerData(Aws::String &&value)
Definition GameServer.h:134
GameServer & WithInstanceId(Aws::String &&value)
Definition GameServer.h:106
void SetGameServerGroupArn(const char *value)
Definition GameServer.h:72
GameServer & WithGameServerGroupName(const char *value)
Definition GameServer.h:60
GameServer & WithUtilizationStatus(GameServerUtilizationStatus &&value)
Definition GameServer.h:172
void SetGameServerId(const Aws::String &value)
Definition GameServer.h:86
bool GameServerGroupNameHasBeenSet() const
Definition GameServer.h:54
const Aws::String & GetGameServerId() const
Definition GameServer.h:84
const Aws::Utils::DateTime & GetLastClaimTime() const
Definition GameServer.h:196
GameServer & WithGameServerGroupName(const Aws::String &value)
Definition GameServer.h:58
void SetGameServerId(const char *value)
Definition GameServer.h:88
AWS_GAMELIFT_API GameServer(Aws::Utils::Json::JsonView jsonValue)
GameServer & WithGameServerData(const char *value)
Definition GameServer.h:138
GameServer & WithGameServerGroupArn(const char *value)
Definition GameServer.h:75
void SetInstanceId(const Aws::String &value)
Definition GameServer.h:102
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue