AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GameServerGroup.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/gamelift/model/BalancingStrategy.h>
11#include <aws/gamelift/model/GameServerProtectionPolicy.h>
12#include <aws/gamelift/model/GameServerGroupStatus.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/gamelift/model/InstanceDefinition.h>
15#include <aws/gamelift/model/GameServerGroupAction.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace GameLift
29{
30namespace Model
31{
32
47 {
48 public:
49 AWS_GAMELIFT_API GameServerGroup();
50 AWS_GAMELIFT_API GameServerGroup(Aws::Utils::Json::JsonView jsonValue);
52 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
60 inline const Aws::String& GetGameServerGroupName() const{ return m_gameServerGroupName; }
61 inline bool GameServerGroupNameHasBeenSet() const { return m_gameServerGroupNameHasBeenSet; }
62 inline void SetGameServerGroupName(const Aws::String& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = value; }
63 inline void SetGameServerGroupName(Aws::String&& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = std::move(value); }
64 inline void SetGameServerGroupName(const char* value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName.assign(value); }
65 inline GameServerGroup& WithGameServerGroupName(const Aws::String& value) { SetGameServerGroupName(value); return *this;}
66 inline GameServerGroup& WithGameServerGroupName(Aws::String&& value) { SetGameServerGroupName(std::move(value)); return *this;}
67 inline GameServerGroup& WithGameServerGroupName(const char* value) { SetGameServerGroupName(value); return *this;}
69
71
74 inline const Aws::String& GetGameServerGroupArn() const{ return m_gameServerGroupArn; }
75 inline bool GameServerGroupArnHasBeenSet() const { return m_gameServerGroupArnHasBeenSet; }
76 inline void SetGameServerGroupArn(const Aws::String& value) { m_gameServerGroupArnHasBeenSet = true; m_gameServerGroupArn = value; }
77 inline void SetGameServerGroupArn(Aws::String&& value) { m_gameServerGroupArnHasBeenSet = true; m_gameServerGroupArn = std::move(value); }
78 inline void SetGameServerGroupArn(const char* value) { m_gameServerGroupArnHasBeenSet = true; m_gameServerGroupArn.assign(value); }
79 inline GameServerGroup& WithGameServerGroupArn(const Aws::String& value) { SetGameServerGroupArn(value); return *this;}
80 inline GameServerGroup& WithGameServerGroupArn(Aws::String&& value) { SetGameServerGroupArn(std::move(value)); return *this;}
81 inline GameServerGroup& WithGameServerGroupArn(const char* value) { SetGameServerGroupArn(value); return *this;}
83
85
91 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
92 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
93 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
94 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
95 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
96 inline GameServerGroup& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
97 inline GameServerGroup& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
98 inline GameServerGroup& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
100
102
107 inline const Aws::Vector<InstanceDefinition>& GetInstanceDefinitions() const{ return m_instanceDefinitions; }
108 inline bool InstanceDefinitionsHasBeenSet() const { return m_instanceDefinitionsHasBeenSet; }
109 inline void SetInstanceDefinitions(const Aws::Vector<InstanceDefinition>& value) { m_instanceDefinitionsHasBeenSet = true; m_instanceDefinitions = value; }
110 inline void SetInstanceDefinitions(Aws::Vector<InstanceDefinition>&& value) { m_instanceDefinitionsHasBeenSet = true; m_instanceDefinitions = std::move(value); }
113 inline GameServerGroup& AddInstanceDefinitions(const InstanceDefinition& value) { m_instanceDefinitionsHasBeenSet = true; m_instanceDefinitions.push_back(value); return *this; }
114 inline GameServerGroup& AddInstanceDefinitions(InstanceDefinition&& value) { m_instanceDefinitionsHasBeenSet = true; m_instanceDefinitions.push_back(std::move(value)); return *this; }
116
118
136 inline const BalancingStrategy& GetBalancingStrategy() const{ return m_balancingStrategy; }
137 inline bool BalancingStrategyHasBeenSet() const { return m_balancingStrategyHasBeenSet; }
138 inline void SetBalancingStrategy(const BalancingStrategy& value) { m_balancingStrategyHasBeenSet = true; m_balancingStrategy = value; }
139 inline void SetBalancingStrategy(BalancingStrategy&& value) { m_balancingStrategyHasBeenSet = true; m_balancingStrategy = std::move(value); }
141 inline GameServerGroup& WithBalancingStrategy(BalancingStrategy&& value) { SetBalancingStrategy(std::move(value)); return *this;}
143
145
154 inline const GameServerProtectionPolicy& GetGameServerProtectionPolicy() const{ return m_gameServerProtectionPolicy; }
155 inline bool GameServerProtectionPolicyHasBeenSet() const { return m_gameServerProtectionPolicyHasBeenSet; }
156 inline void SetGameServerProtectionPolicy(const GameServerProtectionPolicy& value) { m_gameServerProtectionPolicyHasBeenSet = true; m_gameServerProtectionPolicy = value; }
157 inline void SetGameServerProtectionPolicy(GameServerProtectionPolicy&& value) { m_gameServerProtectionPolicyHasBeenSet = true; m_gameServerProtectionPolicy = std::move(value); }
161
163
167 inline const Aws::String& GetAutoScalingGroupArn() const{ return m_autoScalingGroupArn; }
168 inline bool AutoScalingGroupArnHasBeenSet() const { return m_autoScalingGroupArnHasBeenSet; }
169 inline void SetAutoScalingGroupArn(const Aws::String& value) { m_autoScalingGroupArnHasBeenSet = true; m_autoScalingGroupArn = value; }
170 inline void SetAutoScalingGroupArn(Aws::String&& value) { m_autoScalingGroupArnHasBeenSet = true; m_autoScalingGroupArn = std::move(value); }
171 inline void SetAutoScalingGroupArn(const char* value) { m_autoScalingGroupArnHasBeenSet = true; m_autoScalingGroupArn.assign(value); }
172 inline GameServerGroup& WithAutoScalingGroupArn(const Aws::String& value) { SetAutoScalingGroupArn(value); return *this;}
173 inline GameServerGroup& WithAutoScalingGroupArn(Aws::String&& value) { SetAutoScalingGroupArn(std::move(value)); return *this;}
174 inline GameServerGroup& WithAutoScalingGroupArn(const char* value) { SetAutoScalingGroupArn(value); return *this;}
176
178
196 inline const GameServerGroupStatus& GetStatus() const{ return m_status; }
197 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
198 inline void SetStatus(const GameServerGroupStatus& value) { m_statusHasBeenSet = true; m_status = value; }
199 inline void SetStatus(GameServerGroupStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
200 inline GameServerGroup& WithStatus(const GameServerGroupStatus& value) { SetStatus(value); return *this;}
201 inline GameServerGroup& WithStatus(GameServerGroupStatus&& value) { SetStatus(std::move(value)); return *this;}
203
205
210 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
211 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
212 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
213 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
214 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
215 inline GameServerGroup& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
216 inline GameServerGroup& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
217 inline GameServerGroup& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
219
221
225 inline const Aws::Vector<GameServerGroupAction>& GetSuspendedActions() const{ return m_suspendedActions; }
226 inline bool SuspendedActionsHasBeenSet() const { return m_suspendedActionsHasBeenSet; }
227 inline void SetSuspendedActions(const Aws::Vector<GameServerGroupAction>& value) { m_suspendedActionsHasBeenSet = true; m_suspendedActions = value; }
228 inline void SetSuspendedActions(Aws::Vector<GameServerGroupAction>&& value) { m_suspendedActionsHasBeenSet = true; m_suspendedActions = std::move(value); }
231 inline GameServerGroup& AddSuspendedActions(const GameServerGroupAction& value) { m_suspendedActionsHasBeenSet = true; m_suspendedActions.push_back(value); return *this; }
232 inline GameServerGroup& AddSuspendedActions(GameServerGroupAction&& value) { m_suspendedActionsHasBeenSet = true; m_suspendedActions.push_back(std::move(value)); return *this; }
234
236
241 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
242 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
243 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
244 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
245 inline GameServerGroup& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
246 inline GameServerGroup& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
248
250
253 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
254 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
255 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
256 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
257 inline GameServerGroup& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
258 inline GameServerGroup& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
260 private:
261
262 Aws::String m_gameServerGroupName;
263 bool m_gameServerGroupNameHasBeenSet = false;
264
265 Aws::String m_gameServerGroupArn;
266 bool m_gameServerGroupArnHasBeenSet = false;
267
268 Aws::String m_roleArn;
269 bool m_roleArnHasBeenSet = false;
270
271 Aws::Vector<InstanceDefinition> m_instanceDefinitions;
272 bool m_instanceDefinitionsHasBeenSet = false;
273
274 BalancingStrategy m_balancingStrategy;
275 bool m_balancingStrategyHasBeenSet = false;
276
277 GameServerProtectionPolicy m_gameServerProtectionPolicy;
278 bool m_gameServerProtectionPolicyHasBeenSet = false;
279
280 Aws::String m_autoScalingGroupArn;
281 bool m_autoScalingGroupArnHasBeenSet = false;
282
283 GameServerGroupStatus m_status;
284 bool m_statusHasBeenSet = false;
285
286 Aws::String m_statusReason;
287 bool m_statusReasonHasBeenSet = false;
288
289 Aws::Vector<GameServerGroupAction> m_suspendedActions;
290 bool m_suspendedActionsHasBeenSet = false;
291
292 Aws::Utils::DateTime m_creationTime;
293 bool m_creationTimeHasBeenSet = false;
294
295 Aws::Utils::DateTime m_lastUpdatedTime;
296 bool m_lastUpdatedTimeHasBeenSet = false;
297 };
298
299} // namespace Model
300} // namespace GameLift
301} // namespace Aws
void SetGameServerGroupArn(Aws::String &&value)
GameServerGroup & WithGameServerProtectionPolicy(const GameServerProtectionPolicy &value)
GameServerGroup & WithStatusReason(const char *value)
GameServerGroup & WithStatus(GameServerGroupStatus &&value)
void SetCreationTime(Aws::Utils::DateTime &&value)
GameServerGroup & WithSuspendedActions(const Aws::Vector< GameServerGroupAction > &value)
AWS_GAMELIFT_API GameServerGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
GameServerGroup & WithGameServerGroupName(Aws::String &&value)
void SetGameServerGroupName(const char *value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
GameServerGroup & WithRoleArn(const Aws::String &value)
GameServerGroup & WithGameServerGroupName(const char *value)
void SetInstanceDefinitions(const Aws::Vector< InstanceDefinition > &value)
GameServerGroup & WithBalancingStrategy(BalancingStrategy &&value)
GameServerGroup & WithAutoScalingGroupArn(const char *value)
void SetSuspendedActions(Aws::Vector< GameServerGroupAction > &&value)
void SetStatus(GameServerGroupStatus &&value)
GameServerGroup & AddInstanceDefinitions(InstanceDefinition &&value)
const GameServerGroupStatus & GetStatus() const
const Aws::String & GetStatusReason() const
void SetGameServerGroupName(Aws::String &&value)
void SetStatusReason(Aws::String &&value)
void SetRoleArn(Aws::String &&value)
void SetAutoScalingGroupArn(const Aws::String &value)
const Aws::String & GetAutoScalingGroupArn() const
const Aws::String & GetGameServerGroupArn() const
GameServerGroup & WithStatus(const GameServerGroupStatus &value)
void SetStatus(const GameServerGroupStatus &value)
void SetSuspendedActions(const Aws::Vector< GameServerGroupAction > &value)
void SetRoleArn(const Aws::String &value)
GameServerGroup & WithGameServerProtectionPolicy(GameServerProtectionPolicy &&value)
GameServerGroup & WithCreationTime(const Aws::Utils::DateTime &value)
GameServerGroup & WithCreationTime(Aws::Utils::DateTime &&value)
const Aws::Vector< InstanceDefinition > & GetInstanceDefinitions() const
void SetBalancingStrategy(BalancingStrategy &&value)
GameServerGroup & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
const Aws::Vector< GameServerGroupAction > & GetSuspendedActions() const
GameServerGroup & AddSuspendedActions(GameServerGroupAction &&value)
const Aws::Utils::DateTime & GetCreationTime() const
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
const BalancingStrategy & GetBalancingStrategy() const
void SetGameServerGroupArn(const char *value)
GameServerGroup & WithStatusReason(Aws::String &&value)
const Aws::String & GetRoleArn() const
GameServerGroup & WithAutoScalingGroupArn(const Aws::String &value)
GameServerGroup & WithBalancingStrategy(const BalancingStrategy &value)
void SetGameServerProtectionPolicy(const GameServerProtectionPolicy &value)
GameServerGroup & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
GameServerGroup & AddSuspendedActions(const GameServerGroupAction &value)
void SetAutoScalingGroupArn(const char *value)
void SetStatusReason(const Aws::String &value)
void SetGameServerProtectionPolicy(GameServerProtectionPolicy &&value)
AWS_GAMELIFT_API GameServerGroup(Aws::Utils::Json::JsonView jsonValue)
GameServerGroup & WithInstanceDefinitions(const Aws::Vector< InstanceDefinition > &value)
void SetBalancingStrategy(const BalancingStrategy &value)
GameServerGroup & WithRoleArn(const char *value)
void SetStatusReason(const char *value)
const GameServerProtectionPolicy & GetGameServerProtectionPolicy() const
void SetGameServerGroupArn(const Aws::String &value)
GameServerGroup & WithRoleArn(Aws::String &&value)
GameServerGroup & WithGameServerGroupArn(const char *value)
const Aws::String & GetGameServerGroupName() const
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
void SetInstanceDefinitions(Aws::Vector< InstanceDefinition > &&value)
GameServerGroup & WithStatusReason(const Aws::String &value)
void SetGameServerGroupName(const Aws::String &value)
GameServerGroup & WithAutoScalingGroupArn(Aws::String &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
GameServerGroup & AddInstanceDefinitions(const InstanceDefinition &value)
GameServerGroup & WithGameServerGroupArn(Aws::String &&value)
GameServerGroup & WithGameServerGroupArn(const Aws::String &value)
GameServerGroup & WithGameServerGroupName(const Aws::String &value)
void SetAutoScalingGroupArn(Aws::String &&value)
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
GameServerGroup & WithInstanceDefinitions(Aws::Vector< InstanceDefinition > &&value)
GameServerGroup & WithSuspendedActions(Aws::Vector< GameServerGroupAction > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue