AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateGameServerGroupRequest.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/gamelift/model/LaunchTemplateSpecification.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/gamelift/model/GameServerGroupAutoScalingPolicy.h>
13#include <aws/gamelift/model/BalancingStrategy.h>
14#include <aws/gamelift/model/GameServerProtectionPolicy.h>
15#include <aws/gamelift/model/InstanceDefinition.h>
16#include <aws/gamelift/model/Tag.h>
17#include <utility>
18
19namespace Aws
20{
21namespace GameLift
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_GAMELIFT_API CreateGameServerGroupRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateGameServerGroup"; }
38
39 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
40
42
43
45
51 inline const Aws::String& GetGameServerGroupName() const{ return m_gameServerGroupName; }
52 inline bool GameServerGroupNameHasBeenSet() const { return m_gameServerGroupNameHasBeenSet; }
53 inline void SetGameServerGroupName(const Aws::String& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = value; }
54 inline void SetGameServerGroupName(Aws::String&& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = std::move(value); }
55 inline void SetGameServerGroupName(const char* value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName.assign(value); }
58 inline CreateGameServerGroupRequest& WithGameServerGroupName(const char* value) { SetGameServerGroupName(value); return *this;}
60
62
68 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
69 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
70 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
71 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
72 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
73 inline CreateGameServerGroupRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
74 inline CreateGameServerGroupRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
75 inline CreateGameServerGroupRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
77
79
87 inline int GetMinSize() const{ return m_minSize; }
88 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
89 inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
90 inline CreateGameServerGroupRequest& WithMinSize(int value) { SetMinSize(value); return *this;}
92
94
101 inline int GetMaxSize() const{ return m_maxSize; }
102 inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
103 inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; }
104 inline CreateGameServerGroupRequest& WithMaxSize(int value) { SetMaxSize(value); return *this;}
106
108
123 inline const LaunchTemplateSpecification& GetLaunchTemplate() const{ return m_launchTemplate; }
124 inline bool LaunchTemplateHasBeenSet() const { return m_launchTemplateHasBeenSet; }
125 inline void SetLaunchTemplate(const LaunchTemplateSpecification& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = value; }
126 inline void SetLaunchTemplate(LaunchTemplateSpecification&& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = std::move(value); }
130
132
146 inline const Aws::Vector<InstanceDefinition>& GetInstanceDefinitions() const{ return m_instanceDefinitions; }
147 inline bool InstanceDefinitionsHasBeenSet() const { return m_instanceDefinitionsHasBeenSet; }
148 inline void SetInstanceDefinitions(const Aws::Vector<InstanceDefinition>& value) { m_instanceDefinitionsHasBeenSet = true; m_instanceDefinitions = value; }
149 inline void SetInstanceDefinitions(Aws::Vector<InstanceDefinition>&& value) { m_instanceDefinitionsHasBeenSet = true; m_instanceDefinitions = std::move(value); }
152 inline CreateGameServerGroupRequest& AddInstanceDefinitions(const InstanceDefinition& value) { m_instanceDefinitionsHasBeenSet = true; m_instanceDefinitions.push_back(value); return *this; }
153 inline CreateGameServerGroupRequest& AddInstanceDefinitions(InstanceDefinition&& value) { m_instanceDefinitionsHasBeenSet = true; m_instanceDefinitions.push_back(std::move(value)); return *this; }
155
157
165 inline const GameServerGroupAutoScalingPolicy& GetAutoScalingPolicy() const{ return m_autoScalingPolicy; }
166 inline bool AutoScalingPolicyHasBeenSet() const { return m_autoScalingPolicyHasBeenSet; }
167 inline void SetAutoScalingPolicy(const GameServerGroupAutoScalingPolicy& value) { m_autoScalingPolicyHasBeenSet = true; m_autoScalingPolicy = value; }
168 inline void SetAutoScalingPolicy(GameServerGroupAutoScalingPolicy&& value) { m_autoScalingPolicyHasBeenSet = true; m_autoScalingPolicy = std::move(value); }
172
174
192 inline const BalancingStrategy& GetBalancingStrategy() const{ return m_balancingStrategy; }
193 inline bool BalancingStrategyHasBeenSet() const { return m_balancingStrategyHasBeenSet; }
194 inline void SetBalancingStrategy(const BalancingStrategy& value) { m_balancingStrategyHasBeenSet = true; m_balancingStrategy = value; }
195 inline void SetBalancingStrategy(BalancingStrategy&& value) { m_balancingStrategyHasBeenSet = true; m_balancingStrategy = std::move(value); }
199
201
211 inline const GameServerProtectionPolicy& GetGameServerProtectionPolicy() const{ return m_gameServerProtectionPolicy; }
212 inline bool GameServerProtectionPolicyHasBeenSet() const { return m_gameServerProtectionPolicyHasBeenSet; }
213 inline void SetGameServerProtectionPolicy(const GameServerProtectionPolicy& value) { m_gameServerProtectionPolicyHasBeenSet = true; m_gameServerProtectionPolicy = value; }
214 inline void SetGameServerProtectionPolicy(GameServerProtectionPolicy&& value) { m_gameServerProtectionPolicyHasBeenSet = true; m_gameServerProtectionPolicy = std::move(value); }
218
220
229 inline const Aws::Vector<Aws::String>& GetVpcSubnets() const{ return m_vpcSubnets; }
230 inline bool VpcSubnetsHasBeenSet() const { return m_vpcSubnetsHasBeenSet; }
231 inline void SetVpcSubnets(const Aws::Vector<Aws::String>& value) { m_vpcSubnetsHasBeenSet = true; m_vpcSubnets = value; }
232 inline void SetVpcSubnets(Aws::Vector<Aws::String>&& value) { m_vpcSubnetsHasBeenSet = true; m_vpcSubnets = std::move(value); }
234 inline CreateGameServerGroupRequest& WithVpcSubnets(Aws::Vector<Aws::String>&& value) { SetVpcSubnets(std::move(value)); return *this;}
235 inline CreateGameServerGroupRequest& AddVpcSubnets(const Aws::String& value) { m_vpcSubnetsHasBeenSet = true; m_vpcSubnets.push_back(value); return *this; }
236 inline CreateGameServerGroupRequest& AddVpcSubnets(Aws::String&& value) { m_vpcSubnetsHasBeenSet = true; m_vpcSubnets.push_back(std::move(value)); return *this; }
237 inline CreateGameServerGroupRequest& AddVpcSubnets(const char* value) { m_vpcSubnetsHasBeenSet = true; m_vpcSubnets.push_back(value); return *this; }
239
241
250 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
251 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
252 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
253 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
254 inline CreateGameServerGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
255 inline CreateGameServerGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
256 inline CreateGameServerGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
257 inline CreateGameServerGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
259 private:
260
261 Aws::String m_gameServerGroupName;
262 bool m_gameServerGroupNameHasBeenSet = false;
263
264 Aws::String m_roleArn;
265 bool m_roleArnHasBeenSet = false;
266
267 int m_minSize;
268 bool m_minSizeHasBeenSet = false;
269
270 int m_maxSize;
271 bool m_maxSizeHasBeenSet = false;
272
273 LaunchTemplateSpecification m_launchTemplate;
274 bool m_launchTemplateHasBeenSet = false;
275
276 Aws::Vector<InstanceDefinition> m_instanceDefinitions;
277 bool m_instanceDefinitionsHasBeenSet = false;
278
279 GameServerGroupAutoScalingPolicy m_autoScalingPolicy;
280 bool m_autoScalingPolicyHasBeenSet = false;
281
282 BalancingStrategy m_balancingStrategy;
283 bool m_balancingStrategyHasBeenSet = false;
284
285 GameServerProtectionPolicy m_gameServerProtectionPolicy;
286 bool m_gameServerProtectionPolicyHasBeenSet = false;
287
288 Aws::Vector<Aws::String> m_vpcSubnets;
289 bool m_vpcSubnetsHasBeenSet = false;
290
291 Aws::Vector<Tag> m_tags;
292 bool m_tagsHasBeenSet = false;
293 };
294
295} // namespace Model
296} // namespace GameLift
297} // namespace Aws
const Aws::Vector< InstanceDefinition > & GetInstanceDefinitions() const
CreateGameServerGroupRequest & WithInstanceDefinitions(Aws::Vector< InstanceDefinition > &&value)
CreateGameServerGroupRequest & WithRoleArn(Aws::String &&value)
CreateGameServerGroupRequest & WithGameServerGroupName(const char *value)
CreateGameServerGroupRequest & WithLaunchTemplate(const LaunchTemplateSpecification &value)
CreateGameServerGroupRequest & WithGameServerGroupName(const Aws::String &value)
CreateGameServerGroupRequest & WithAutoScalingPolicy(GameServerGroupAutoScalingPolicy &&value)
CreateGameServerGroupRequest & AddVpcSubnets(Aws::String &&value)
const GameServerGroupAutoScalingPolicy & GetAutoScalingPolicy() const
CreateGameServerGroupRequest & WithGameServerGroupName(Aws::String &&value)
void SetInstanceDefinitions(Aws::Vector< InstanceDefinition > &&value)
const GameServerProtectionPolicy & GetGameServerProtectionPolicy() const
void SetAutoScalingPolicy(const GameServerGroupAutoScalingPolicy &value)
CreateGameServerGroupRequest & WithBalancingStrategy(const BalancingStrategy &value)
CreateGameServerGroupRequest & WithAutoScalingPolicy(const GameServerGroupAutoScalingPolicy &value)
void SetVpcSubnets(const Aws::Vector< Aws::String > &value)
void SetLaunchTemplate(const LaunchTemplateSpecification &value)
CreateGameServerGroupRequest & WithVpcSubnets(const Aws::Vector< Aws::String > &value)
CreateGameServerGroupRequest & WithGameServerProtectionPolicy(GameServerProtectionPolicy &&value)
CreateGameServerGroupRequest & AddTags(Tag &&value)
CreateGameServerGroupRequest & WithRoleArn(const Aws::String &value)
CreateGameServerGroupRequest & WithLaunchTemplate(LaunchTemplateSpecification &&value)
void SetLaunchTemplate(LaunchTemplateSpecification &&value)
CreateGameServerGroupRequest & WithTags(Aws::Vector< Tag > &&value)
CreateGameServerGroupRequest & WithRoleArn(const char *value)
void SetAutoScalingPolicy(GameServerGroupAutoScalingPolicy &&value)
CreateGameServerGroupRequest & AddVpcSubnets(const char *value)
CreateGameServerGroupRequest & AddTags(const Tag &value)
CreateGameServerGroupRequest & WithMinSize(int value)
CreateGameServerGroupRequest & WithInstanceDefinitions(const Aws::Vector< InstanceDefinition > &value)
const LaunchTemplateSpecification & GetLaunchTemplate() const
CreateGameServerGroupRequest & AddInstanceDefinitions(const InstanceDefinition &value)
void SetGameServerProtectionPolicy(const GameServerProtectionPolicy &value)
CreateGameServerGroupRequest & WithTags(const Aws::Vector< Tag > &value)
CreateGameServerGroupRequest & AddVpcSubnets(const Aws::String &value)
const Aws::Vector< Aws::String > & GetVpcSubnets() const
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateGameServerGroupRequest & WithVpcSubnets(Aws::Vector< Aws::String > &&value)
void SetInstanceDefinitions(const Aws::Vector< InstanceDefinition > &value)
CreateGameServerGroupRequest & WithGameServerProtectionPolicy(const GameServerProtectionPolicy &value)
CreateGameServerGroupRequest & WithBalancingStrategy(BalancingStrategy &&value)
CreateGameServerGroupRequest & AddInstanceDefinitions(InstanceDefinition &&value)
void SetGameServerProtectionPolicy(GameServerProtectionPolicy &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector