AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename GameServerGroupNameT = Aws::String>
56 void SetGameServerGroupName(GameServerGroupNameT&& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = std::forward<GameServerGroupNameT>(value); }
57 template<typename GameServerGroupNameT = Aws::String>
58 GameServer& WithGameServerGroupName(GameServerGroupNameT&& value) { SetGameServerGroupName(std::forward<GameServerGroupNameT>(value)); return *this;}
60
62
66 inline const Aws::String& GetGameServerGroupArn() const { return m_gameServerGroupArn; }
67 inline bool GameServerGroupArnHasBeenSet() const { return m_gameServerGroupArnHasBeenSet; }
68 template<typename GameServerGroupArnT = Aws::String>
69 void SetGameServerGroupArn(GameServerGroupArnT&& value) { m_gameServerGroupArnHasBeenSet = true; m_gameServerGroupArn = std::forward<GameServerGroupArnT>(value); }
70 template<typename GameServerGroupArnT = Aws::String>
71 GameServer& WithGameServerGroupArn(GameServerGroupArnT&& value) { SetGameServerGroupArn(std::forward<GameServerGroupArnT>(value)); return *this;}
73
75
80 inline const Aws::String& GetGameServerId() const { return m_gameServerId; }
81 inline bool GameServerIdHasBeenSet() const { return m_gameServerIdHasBeenSet; }
82 template<typename GameServerIdT = Aws::String>
83 void SetGameServerId(GameServerIdT&& value) { m_gameServerIdHasBeenSet = true; m_gameServerId = std::forward<GameServerIdT>(value); }
84 template<typename GameServerIdT = Aws::String>
85 GameServer& WithGameServerId(GameServerIdT&& value) { SetGameServerId(std::forward<GameServerIdT>(value)); return *this;}
87
89
94 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
95 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
96 template<typename InstanceIdT = Aws::String>
97 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
98 template<typename InstanceIdT = Aws::String>
99 GameServer& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
101
103
107 inline const Aws::String& GetConnectionInfo() const { return m_connectionInfo; }
108 inline bool ConnectionInfoHasBeenSet() const { return m_connectionInfoHasBeenSet; }
109 template<typename ConnectionInfoT = Aws::String>
110 void SetConnectionInfo(ConnectionInfoT&& value) { m_connectionInfoHasBeenSet = true; m_connectionInfo = std::forward<ConnectionInfoT>(value); }
111 template<typename ConnectionInfoT = Aws::String>
112 GameServer& WithConnectionInfo(ConnectionInfoT&& value) { SetConnectionInfo(std::forward<ConnectionInfoT>(value)); return *this;}
114
116
121 inline const Aws::String& GetGameServerData() const { return m_gameServerData; }
122 inline bool GameServerDataHasBeenSet() const { return m_gameServerDataHasBeenSet; }
123 template<typename GameServerDataT = Aws::String>
124 void SetGameServerData(GameServerDataT&& value) { m_gameServerDataHasBeenSet = true; m_gameServerData = std::forward<GameServerDataT>(value); }
125 template<typename GameServerDataT = Aws::String>
126 GameServer& WithGameServerData(GameServerDataT&& value) { SetGameServerData(std::forward<GameServerDataT>(value)); return *this;}
128
130
138 inline GameServerClaimStatus GetClaimStatus() const { return m_claimStatus; }
139 inline bool ClaimStatusHasBeenSet() const { return m_claimStatusHasBeenSet; }
140 inline void SetClaimStatus(GameServerClaimStatus value) { m_claimStatusHasBeenSet = true; m_claimStatus = value; }
141 inline GameServer& WithClaimStatus(GameServerClaimStatus value) { SetClaimStatus(value); return *this;}
143
145
153 inline GameServerUtilizationStatus GetUtilizationStatus() const { return m_utilizationStatus; }
154 inline bool UtilizationStatusHasBeenSet() const { return m_utilizationStatusHasBeenSet; }
155 inline void SetUtilizationStatus(GameServerUtilizationStatus value) { m_utilizationStatusHasBeenSet = true; m_utilizationStatus = value; }
158
160
165 inline const Aws::Utils::DateTime& GetRegistrationTime() const { return m_registrationTime; }
166 inline bool RegistrationTimeHasBeenSet() const { return m_registrationTimeHasBeenSet; }
167 template<typename RegistrationTimeT = Aws::Utils::DateTime>
168 void SetRegistrationTime(RegistrationTimeT&& value) { m_registrationTimeHasBeenSet = true; m_registrationTime = std::forward<RegistrationTimeT>(value); }
169 template<typename RegistrationTimeT = Aws::Utils::DateTime>
170 GameServer& WithRegistrationTime(RegistrationTimeT&& value) { SetRegistrationTime(std::forward<RegistrationTimeT>(value)); return *this;}
172
174
180 inline const Aws::Utils::DateTime& GetLastClaimTime() const { return m_lastClaimTime; }
181 inline bool LastClaimTimeHasBeenSet() const { return m_lastClaimTimeHasBeenSet; }
182 template<typename LastClaimTimeT = Aws::Utils::DateTime>
183 void SetLastClaimTime(LastClaimTimeT&& value) { m_lastClaimTimeHasBeenSet = true; m_lastClaimTime = std::forward<LastClaimTimeT>(value); }
184 template<typename LastClaimTimeT = Aws::Utils::DateTime>
185 GameServer& WithLastClaimTime(LastClaimTimeT&& value) { SetLastClaimTime(std::forward<LastClaimTimeT>(value)); return *this;}
187
189
196 inline const Aws::Utils::DateTime& GetLastHealthCheckTime() const { return m_lastHealthCheckTime; }
197 inline bool LastHealthCheckTimeHasBeenSet() const { return m_lastHealthCheckTimeHasBeenSet; }
198 template<typename LastHealthCheckTimeT = Aws::Utils::DateTime>
199 void SetLastHealthCheckTime(LastHealthCheckTimeT&& value) { m_lastHealthCheckTimeHasBeenSet = true; m_lastHealthCheckTime = std::forward<LastHealthCheckTimeT>(value); }
200 template<typename LastHealthCheckTimeT = Aws::Utils::DateTime>
201 GameServer& WithLastHealthCheckTime(LastHealthCheckTimeT&& value) { SetLastHealthCheckTime(std::forward<LastHealthCheckTimeT>(value)); return *this;}
203 private:
204
205 Aws::String m_gameServerGroupName;
206 bool m_gameServerGroupNameHasBeenSet = false;
207
208 Aws::String m_gameServerGroupArn;
209 bool m_gameServerGroupArnHasBeenSet = false;
210
211 Aws::String m_gameServerId;
212 bool m_gameServerIdHasBeenSet = false;
213
214 Aws::String m_instanceId;
215 bool m_instanceIdHasBeenSet = false;
216
217 Aws::String m_connectionInfo;
218 bool m_connectionInfoHasBeenSet = false;
219
220 Aws::String m_gameServerData;
221 bool m_gameServerDataHasBeenSet = false;
222
224 bool m_claimStatusHasBeenSet = false;
225
227 bool m_utilizationStatusHasBeenSet = false;
228
229 Aws::Utils::DateTime m_registrationTime{};
230 bool m_registrationTimeHasBeenSet = false;
231
232 Aws::Utils::DateTime m_lastClaimTime{};
233 bool m_lastClaimTimeHasBeenSet = false;
234
235 Aws::Utils::DateTime m_lastHealthCheckTime{};
236 bool m_lastHealthCheckTimeHasBeenSet = false;
237 };
238
239} // namespace Model
240} // namespace GameLift
241} // namespace Aws
bool LastHealthCheckTimeHasBeenSet() const
Definition GameServer.h:197
void SetLastClaimTime(LastClaimTimeT &&value)
Definition GameServer.h:183
const Aws::String & GetConnectionInfo() const
Definition GameServer.h:107
void SetRegistrationTime(RegistrationTimeT &&value)
Definition GameServer.h:168
GameServer & WithClaimStatus(GameServerClaimStatus value)
Definition GameServer.h:141
void SetGameServerData(GameServerDataT &&value)
Definition GameServer.h:124
const Aws::String & GetGameServerGroupName() const
Definition GameServer.h:53
AWS_GAMELIFT_API GameServer & operator=(Aws::Utils::Json::JsonView jsonValue)
GameServer & WithLastClaimTime(LastClaimTimeT &&value)
Definition GameServer.h:185
void SetInstanceId(InstanceIdT &&value)
Definition GameServer.h:97
void SetLastHealthCheckTime(LastHealthCheckTimeT &&value)
Definition GameServer.h:199
void SetConnectionInfo(ConnectionInfoT &&value)
Definition GameServer.h:110
AWS_GAMELIFT_API GameServer()=default
const Aws::String & GetGameServerGroupArn() const
Definition GameServer.h:66
GameServer & WithInstanceId(InstanceIdT &&value)
Definition GameServer.h:99
GameServer & WithUtilizationStatus(GameServerUtilizationStatus value)
Definition GameServer.h:156
void SetGameServerGroupName(GameServerGroupNameT &&value)
Definition GameServer.h:56
void SetClaimStatus(GameServerClaimStatus value)
Definition GameServer.h:140
const Aws::String & GetInstanceId() const
Definition GameServer.h:94
const Aws::Utils::DateTime & GetLastHealthCheckTime() const
Definition GameServer.h:196
const Aws::String & GetGameServerData() const
Definition GameServer.h:121
void SetGameServerGroupArn(GameServerGroupArnT &&value)
Definition GameServer.h:69
GameServerUtilizationStatus GetUtilizationStatus() const
Definition GameServer.h:153
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
GameServer & WithGameServerGroupArn(GameServerGroupArnT &&value)
Definition GameServer.h:71
const Aws::Utils::DateTime & GetRegistrationTime() const
Definition GameServer.h:165
GameServerClaimStatus GetClaimStatus() const
Definition GameServer.h:138
GameServer & WithGameServerId(GameServerIdT &&value)
Definition GameServer.h:85
bool GameServerGroupArnHasBeenSet() const
Definition GameServer.h:67
GameServer & WithGameServerGroupName(GameServerGroupNameT &&value)
Definition GameServer.h:58
GameServer & WithConnectionInfo(ConnectionInfoT &&value)
Definition GameServer.h:112
void SetGameServerId(GameServerIdT &&value)
Definition GameServer.h:83
void SetUtilizationStatus(GameServerUtilizationStatus value)
Definition GameServer.h:155
GameServer & WithGameServerData(GameServerDataT &&value)
Definition GameServer.h:126
GameServer & WithRegistrationTime(RegistrationTimeT &&value)
Definition GameServer.h:170
bool GameServerGroupNameHasBeenSet() const
Definition GameServer.h:54
const Aws::String & GetGameServerId() const
Definition GameServer.h:80
const Aws::Utils::DateTime & GetLastClaimTime() const
Definition GameServer.h:180
GameServer & WithLastHealthCheckTime(LastHealthCheckTimeT &&value)
Definition GameServer.h:201
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