AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename GameServerGroupNameT = Aws::String>
63 void SetGameServerGroupName(GameServerGroupNameT&& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = std::forward<GameServerGroupNameT>(value); }
64 template<typename GameServerGroupNameT = Aws::String>
65 GameServerGroup& WithGameServerGroupName(GameServerGroupNameT&& value) { SetGameServerGroupName(std::forward<GameServerGroupNameT>(value)); return *this;}
67
69
72 inline const Aws::String& GetGameServerGroupArn() const { return m_gameServerGroupArn; }
73 inline bool GameServerGroupArnHasBeenSet() const { return m_gameServerGroupArnHasBeenSet; }
74 template<typename GameServerGroupArnT = Aws::String>
75 void SetGameServerGroupArn(GameServerGroupArnT&& value) { m_gameServerGroupArnHasBeenSet = true; m_gameServerGroupArn = std::forward<GameServerGroupArnT>(value); }
76 template<typename GameServerGroupArnT = Aws::String>
77 GameServerGroup& WithGameServerGroupArn(GameServerGroupArnT&& value) { SetGameServerGroupArn(std::forward<GameServerGroupArnT>(value)); return *this;}
79
81
87 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
88 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
89 template<typename RoleArnT = Aws::String>
90 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
91 template<typename RoleArnT = Aws::String>
92 GameServerGroup& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
94
96
101 inline const Aws::Vector<InstanceDefinition>& GetInstanceDefinitions() const { return m_instanceDefinitions; }
102 inline bool InstanceDefinitionsHasBeenSet() const { return m_instanceDefinitionsHasBeenSet; }
103 template<typename InstanceDefinitionsT = Aws::Vector<InstanceDefinition>>
104 void SetInstanceDefinitions(InstanceDefinitionsT&& value) { m_instanceDefinitionsHasBeenSet = true; m_instanceDefinitions = std::forward<InstanceDefinitionsT>(value); }
105 template<typename InstanceDefinitionsT = Aws::Vector<InstanceDefinition>>
106 GameServerGroup& WithInstanceDefinitions(InstanceDefinitionsT&& value) { SetInstanceDefinitions(std::forward<InstanceDefinitionsT>(value)); return *this;}
107 template<typename InstanceDefinitionsT = InstanceDefinition>
108 GameServerGroup& AddInstanceDefinitions(InstanceDefinitionsT&& value) { m_instanceDefinitionsHasBeenSet = true; m_instanceDefinitions.emplace_back(std::forward<InstanceDefinitionsT>(value)); return *this; }
110
112
130 inline BalancingStrategy GetBalancingStrategy() const { return m_balancingStrategy; }
131 inline bool BalancingStrategyHasBeenSet() const { return m_balancingStrategyHasBeenSet; }
132 inline void SetBalancingStrategy(BalancingStrategy value) { m_balancingStrategyHasBeenSet = true; m_balancingStrategy = value; }
135
137
146 inline GameServerProtectionPolicy GetGameServerProtectionPolicy() const { return m_gameServerProtectionPolicy; }
147 inline bool GameServerProtectionPolicyHasBeenSet() const { return m_gameServerProtectionPolicyHasBeenSet; }
148 inline void SetGameServerProtectionPolicy(GameServerProtectionPolicy value) { m_gameServerProtectionPolicyHasBeenSet = true; m_gameServerProtectionPolicy = value; }
151
153
157 inline const Aws::String& GetAutoScalingGroupArn() const { return m_autoScalingGroupArn; }
158 inline bool AutoScalingGroupArnHasBeenSet() const { return m_autoScalingGroupArnHasBeenSet; }
159 template<typename AutoScalingGroupArnT = Aws::String>
160 void SetAutoScalingGroupArn(AutoScalingGroupArnT&& value) { m_autoScalingGroupArnHasBeenSet = true; m_autoScalingGroupArn = std::forward<AutoScalingGroupArnT>(value); }
161 template<typename AutoScalingGroupArnT = Aws::String>
162 GameServerGroup& WithAutoScalingGroupArn(AutoScalingGroupArnT&& value) { SetAutoScalingGroupArn(std::forward<AutoScalingGroupArnT>(value)); return *this;}
164
166
184 inline GameServerGroupStatus GetStatus() const { return m_status; }
185 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
186 inline void SetStatus(GameServerGroupStatus value) { m_statusHasBeenSet = true; m_status = value; }
187 inline GameServerGroup& WithStatus(GameServerGroupStatus value) { SetStatus(value); return *this;}
189
191
196 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
197 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
198 template<typename StatusReasonT = Aws::String>
199 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
200 template<typename StatusReasonT = Aws::String>
201 GameServerGroup& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
203
205
209 inline const Aws::Vector<GameServerGroupAction>& GetSuspendedActions() const { return m_suspendedActions; }
210 inline bool SuspendedActionsHasBeenSet() const { return m_suspendedActionsHasBeenSet; }
211 template<typename SuspendedActionsT = Aws::Vector<GameServerGroupAction>>
212 void SetSuspendedActions(SuspendedActionsT&& value) { m_suspendedActionsHasBeenSet = true; m_suspendedActions = std::forward<SuspendedActionsT>(value); }
213 template<typename SuspendedActionsT = Aws::Vector<GameServerGroupAction>>
214 GameServerGroup& WithSuspendedActions(SuspendedActionsT&& value) { SetSuspendedActions(std::forward<SuspendedActionsT>(value)); return *this;}
215 inline GameServerGroup& AddSuspendedActions(GameServerGroupAction value) { m_suspendedActionsHasBeenSet = true; m_suspendedActions.push_back(value); return *this; }
217
219
224 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
225 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
226 template<typename CreationTimeT = Aws::Utils::DateTime>
227 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
228 template<typename CreationTimeT = Aws::Utils::DateTime>
229 GameServerGroup& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
231
233
236 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
237 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
238 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
239 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
240 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
241 GameServerGroup& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
243 private:
244
245 Aws::String m_gameServerGroupName;
246 bool m_gameServerGroupNameHasBeenSet = false;
247
248 Aws::String m_gameServerGroupArn;
249 bool m_gameServerGroupArnHasBeenSet = false;
250
251 Aws::String m_roleArn;
252 bool m_roleArnHasBeenSet = false;
253
254 Aws::Vector<InstanceDefinition> m_instanceDefinitions;
255 bool m_instanceDefinitionsHasBeenSet = false;
256
258 bool m_balancingStrategyHasBeenSet = false;
259
261 bool m_gameServerProtectionPolicyHasBeenSet = false;
262
263 Aws::String m_autoScalingGroupArn;
264 bool m_autoScalingGroupArnHasBeenSet = false;
265
267 bool m_statusHasBeenSet = false;
268
269 Aws::String m_statusReason;
270 bool m_statusReasonHasBeenSet = false;
271
272 Aws::Vector<GameServerGroupAction> m_suspendedActions;
273 bool m_suspendedActionsHasBeenSet = false;
274
275 Aws::Utils::DateTime m_creationTime{};
276 bool m_creationTimeHasBeenSet = false;
277
278 Aws::Utils::DateTime m_lastUpdatedTime{};
279 bool m_lastUpdatedTimeHasBeenSet = false;
280 };
281
282} // namespace Model
283} // namespace GameLift
284} // namespace Aws
GameServerGroup & WithAutoScalingGroupArn(AutoScalingGroupArnT &&value)
void SetStatus(GameServerGroupStatus value)
AWS_GAMELIFT_API GameServerGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
void SetGameServerGroupArn(GameServerGroupArnT &&value)
GameServerGroup & WithLastUpdatedTime(LastUpdatedTimeT &&value)
const Aws::String & GetStatusReason() const
const Aws::String & GetAutoScalingGroupArn() const
const Aws::String & GetGameServerGroupArn() const
void SetSuspendedActions(SuspendedActionsT &&value)
void SetCreationTime(CreationTimeT &&value)
BalancingStrategy GetBalancingStrategy() const
GameServerGroup & WithStatusReason(StatusReasonT &&value)
GameServerGroup & WithBalancingStrategy(BalancingStrategy value)
const Aws::Vector< InstanceDefinition > & GetInstanceDefinitions() const
const Aws::Vector< GameServerGroupAction > & GetSuspendedActions() const
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetGameServerGroupName(GameServerGroupNameT &&value)
const Aws::String & GetRoleArn() const
GameServerGroup & WithGameServerGroupArn(GameServerGroupArnT &&value)
GameServerGroup & WithStatus(GameServerGroupStatus value)
GameServerProtectionPolicy GetGameServerProtectionPolicy() const
GameServerGroup & AddSuspendedActions(GameServerGroupAction value)
AWS_GAMELIFT_API GameServerGroup(Aws::Utils::Json::JsonView jsonValue)
void SetStatusReason(StatusReasonT &&value)
void SetInstanceDefinitions(InstanceDefinitionsT &&value)
GameServerGroup & AddInstanceDefinitions(InstanceDefinitionsT &&value)
void SetAutoScalingGroupArn(AutoScalingGroupArnT &&value)
void SetBalancingStrategy(BalancingStrategy value)
GameServerGroup & WithRoleArn(RoleArnT &&value)
const Aws::String & GetGameServerGroupName() const
GameServerGroup & WithGameServerProtectionPolicy(GameServerProtectionPolicy value)
GameServerGroup & WithGameServerGroupName(GameServerGroupNameT &&value)
AWS_GAMELIFT_API GameServerGroup()=default
GameServerGroup & WithCreationTime(CreationTimeT &&value)
void SetGameServerProtectionPolicy(GameServerProtectionPolicy value)
GameServerGroup & WithInstanceDefinitions(InstanceDefinitionsT &&value)
GameServerGroup & WithSuspendedActions(SuspendedActionsT &&value)
GameServerGroupStatus GetStatus() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue