AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GameServer.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gamelift/GameLift_EXPORTS.h>
10#include <aws/gamelift/model/GameServerClaimStatus.h>
11#include <aws/gamelift/model/GameServerUtilizationStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GameLift {
23namespace Model {
24
35 public:
36 AWS_GAMELIFT_API GameServer() = default;
37 AWS_GAMELIFT_API GameServer(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GAMELIFT_API GameServer& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const Aws::String& GetGameServerGroupName() const { return m_gameServerGroupName; }
47 inline bool GameServerGroupNameHasBeenSet() const { return m_gameServerGroupNameHasBeenSet; }
48 template <typename GameServerGroupNameT = Aws::String>
49 void SetGameServerGroupName(GameServerGroupNameT&& value) {
50 m_gameServerGroupNameHasBeenSet = true;
51 m_gameServerGroupName = std::forward<GameServerGroupNameT>(value);
52 }
53 template <typename GameServerGroupNameT = Aws::String>
54 GameServer& WithGameServerGroupName(GameServerGroupNameT&& value) {
55 SetGameServerGroupName(std::forward<GameServerGroupNameT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetGameServerGroupArn() const { return m_gameServerGroupArn; }
66 inline bool GameServerGroupArnHasBeenSet() const { return m_gameServerGroupArnHasBeenSet; }
67 template <typename GameServerGroupArnT = Aws::String>
68 void SetGameServerGroupArn(GameServerGroupArnT&& value) {
69 m_gameServerGroupArnHasBeenSet = true;
70 m_gameServerGroupArn = std::forward<GameServerGroupArnT>(value);
71 }
72 template <typename GameServerGroupArnT = Aws::String>
73 GameServer& WithGameServerGroupArn(GameServerGroupArnT&& value) {
74 SetGameServerGroupArn(std::forward<GameServerGroupArnT>(value));
75 return *this;
76 }
78
80
85 inline const Aws::String& GetGameServerId() const { return m_gameServerId; }
86 inline bool GameServerIdHasBeenSet() const { return m_gameServerIdHasBeenSet; }
87 template <typename GameServerIdT = Aws::String>
88 void SetGameServerId(GameServerIdT&& value) {
89 m_gameServerIdHasBeenSet = true;
90 m_gameServerId = std::forward<GameServerIdT>(value);
91 }
92 template <typename GameServerIdT = Aws::String>
93 GameServer& WithGameServerId(GameServerIdT&& value) {
94 SetGameServerId(std::forward<GameServerIdT>(value));
95 return *this;
96 }
98
100
105 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
106 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
107 template <typename InstanceIdT = Aws::String>
108 void SetInstanceId(InstanceIdT&& value) {
109 m_instanceIdHasBeenSet = true;
110 m_instanceId = std::forward<InstanceIdT>(value);
111 }
112 template <typename InstanceIdT = Aws::String>
113 GameServer& WithInstanceId(InstanceIdT&& value) {
114 SetInstanceId(std::forward<InstanceIdT>(value));
115 return *this;
116 }
118
120
124 inline const Aws::String& GetConnectionInfo() const { return m_connectionInfo; }
125 inline bool ConnectionInfoHasBeenSet() const { return m_connectionInfoHasBeenSet; }
126 template <typename ConnectionInfoT = Aws::String>
127 void SetConnectionInfo(ConnectionInfoT&& value) {
128 m_connectionInfoHasBeenSet = true;
129 m_connectionInfo = std::forward<ConnectionInfoT>(value);
130 }
131 template <typename ConnectionInfoT = Aws::String>
132 GameServer& WithConnectionInfo(ConnectionInfoT&& value) {
133 SetConnectionInfo(std::forward<ConnectionInfoT>(value));
134 return *this;
135 }
137
139
144 inline const Aws::String& GetGameServerData() const { return m_gameServerData; }
145 inline bool GameServerDataHasBeenSet() const { return m_gameServerDataHasBeenSet; }
146 template <typename GameServerDataT = Aws::String>
147 void SetGameServerData(GameServerDataT&& value) {
148 m_gameServerDataHasBeenSet = true;
149 m_gameServerData = std::forward<GameServerDataT>(value);
150 }
151 template <typename GameServerDataT = Aws::String>
152 GameServer& WithGameServerData(GameServerDataT&& value) {
153 SetGameServerData(std::forward<GameServerDataT>(value));
154 return *this;
155 }
157
159
167 inline GameServerClaimStatus GetClaimStatus() const { return m_claimStatus; }
168 inline bool ClaimStatusHasBeenSet() const { return m_claimStatusHasBeenSet; }
170 m_claimStatusHasBeenSet = true;
171 m_claimStatus = value;
172 }
174 SetClaimStatus(value);
175 return *this;
176 }
178
180
188 inline GameServerUtilizationStatus GetUtilizationStatus() const { return m_utilizationStatus; }
189 inline bool UtilizationStatusHasBeenSet() const { return m_utilizationStatusHasBeenSet; }
191 m_utilizationStatusHasBeenSet = true;
192 m_utilizationStatus = value;
193 }
196 return *this;
197 }
199
201
206 inline const Aws::Utils::DateTime& GetRegistrationTime() const { return m_registrationTime; }
207 inline bool RegistrationTimeHasBeenSet() const { return m_registrationTimeHasBeenSet; }
208 template <typename RegistrationTimeT = Aws::Utils::DateTime>
209 void SetRegistrationTime(RegistrationTimeT&& value) {
210 m_registrationTimeHasBeenSet = true;
211 m_registrationTime = std::forward<RegistrationTimeT>(value);
212 }
213 template <typename RegistrationTimeT = Aws::Utils::DateTime>
214 GameServer& WithRegistrationTime(RegistrationTimeT&& value) {
215 SetRegistrationTime(std::forward<RegistrationTimeT>(value));
216 return *this;
217 }
219
221
227 inline const Aws::Utils::DateTime& GetLastClaimTime() const { return m_lastClaimTime; }
228 inline bool LastClaimTimeHasBeenSet() const { return m_lastClaimTimeHasBeenSet; }
229 template <typename LastClaimTimeT = Aws::Utils::DateTime>
230 void SetLastClaimTime(LastClaimTimeT&& value) {
231 m_lastClaimTimeHasBeenSet = true;
232 m_lastClaimTime = std::forward<LastClaimTimeT>(value);
233 }
234 template <typename LastClaimTimeT = Aws::Utils::DateTime>
235 GameServer& WithLastClaimTime(LastClaimTimeT&& value) {
236 SetLastClaimTime(std::forward<LastClaimTimeT>(value));
237 return *this;
238 }
240
242
249 inline const Aws::Utils::DateTime& GetLastHealthCheckTime() const { return m_lastHealthCheckTime; }
250 inline bool LastHealthCheckTimeHasBeenSet() const { return m_lastHealthCheckTimeHasBeenSet; }
251 template <typename LastHealthCheckTimeT = Aws::Utils::DateTime>
252 void SetLastHealthCheckTime(LastHealthCheckTimeT&& value) {
253 m_lastHealthCheckTimeHasBeenSet = true;
254 m_lastHealthCheckTime = std::forward<LastHealthCheckTimeT>(value);
255 }
256 template <typename LastHealthCheckTimeT = Aws::Utils::DateTime>
257 GameServer& WithLastHealthCheckTime(LastHealthCheckTimeT&& value) {
258 SetLastHealthCheckTime(std::forward<LastHealthCheckTimeT>(value));
259 return *this;
260 }
262 private:
263 Aws::String m_gameServerGroupName;
264
265 Aws::String m_gameServerGroupArn;
266
267 Aws::String m_gameServerId;
268
269 Aws::String m_instanceId;
270
271 Aws::String m_connectionInfo;
272
273 Aws::String m_gameServerData;
274
276
278
279 Aws::Utils::DateTime m_registrationTime{};
280
281 Aws::Utils::DateTime m_lastClaimTime{};
282
283 Aws::Utils::DateTime m_lastHealthCheckTime{};
284 bool m_gameServerGroupNameHasBeenSet = false;
285 bool m_gameServerGroupArnHasBeenSet = false;
286 bool m_gameServerIdHasBeenSet = false;
287 bool m_instanceIdHasBeenSet = false;
288 bool m_connectionInfoHasBeenSet = false;
289 bool m_gameServerDataHasBeenSet = false;
290 bool m_claimStatusHasBeenSet = false;
291 bool m_utilizationStatusHasBeenSet = false;
292 bool m_registrationTimeHasBeenSet = false;
293 bool m_lastClaimTimeHasBeenSet = false;
294 bool m_lastHealthCheckTimeHasBeenSet = false;
295};
296
297} // namespace Model
298} // namespace GameLift
299} // namespace Aws
bool LastHealthCheckTimeHasBeenSet() const
Definition GameServer.h:250
void SetLastClaimTime(LastClaimTimeT &&value)
Definition GameServer.h:230
const Aws::String & GetConnectionInfo() const
Definition GameServer.h:124
void SetRegistrationTime(RegistrationTimeT &&value)
Definition GameServer.h:209
GameServer & WithClaimStatus(GameServerClaimStatus value)
Definition GameServer.h:173
void SetGameServerData(GameServerDataT &&value)
Definition GameServer.h:147
const Aws::String & GetGameServerGroupName() const
Definition GameServer.h:46
AWS_GAMELIFT_API GameServer & operator=(Aws::Utils::Json::JsonView jsonValue)
GameServer & WithLastClaimTime(LastClaimTimeT &&value)
Definition GameServer.h:235
void SetInstanceId(InstanceIdT &&value)
Definition GameServer.h:108
void SetLastHealthCheckTime(LastHealthCheckTimeT &&value)
Definition GameServer.h:252
void SetConnectionInfo(ConnectionInfoT &&value)
Definition GameServer.h:127
AWS_GAMELIFT_API GameServer()=default
const Aws::String & GetGameServerGroupArn() const
Definition GameServer.h:65
GameServer & WithInstanceId(InstanceIdT &&value)
Definition GameServer.h:113
GameServer & WithUtilizationStatus(GameServerUtilizationStatus value)
Definition GameServer.h:194
void SetGameServerGroupName(GameServerGroupNameT &&value)
Definition GameServer.h:49
void SetClaimStatus(GameServerClaimStatus value)
Definition GameServer.h:169
const Aws::String & GetInstanceId() const
Definition GameServer.h:105
const Aws::Utils::DateTime & GetLastHealthCheckTime() const
Definition GameServer.h:249
const Aws::String & GetGameServerData() const
Definition GameServer.h:144
void SetGameServerGroupArn(GameServerGroupArnT &&value)
Definition GameServer.h:68
GameServerUtilizationStatus GetUtilizationStatus() const
Definition GameServer.h:188
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
GameServer & WithGameServerGroupArn(GameServerGroupArnT &&value)
Definition GameServer.h:73
const Aws::Utils::DateTime & GetRegistrationTime() const
Definition GameServer.h:206
GameServerClaimStatus GetClaimStatus() const
Definition GameServer.h:167
GameServer & WithGameServerId(GameServerIdT &&value)
Definition GameServer.h:93
bool GameServerGroupArnHasBeenSet() const
Definition GameServer.h:66
GameServer & WithGameServerGroupName(GameServerGroupNameT &&value)
Definition GameServer.h:54
GameServer & WithConnectionInfo(ConnectionInfoT &&value)
Definition GameServer.h:132
void SetGameServerId(GameServerIdT &&value)
Definition GameServer.h:88
void SetUtilizationStatus(GameServerUtilizationStatus value)
Definition GameServer.h:190
GameServer & WithGameServerData(GameServerDataT &&value)
Definition GameServer.h:152
GameServer & WithRegistrationTime(RegistrationTimeT &&value)
Definition GameServer.h:214
bool GameServerGroupNameHasBeenSet() const
Definition GameServer.h:47
const Aws::String & GetGameServerId() const
Definition GameServer.h:85
const Aws::Utils::DateTime & GetLastClaimTime() const
Definition GameServer.h:227
GameServer & WithLastHealthCheckTime(LastHealthCheckTimeT &&value)
Definition GameServer.h:257
AWS_GAMELIFT_API GameServer(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue