AWS SDK for C++  1.9.104
AWS SDK for C++
UpdateGameServerGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace GameLift
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "UpdateGameServerGroup"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
45  inline const Aws::String& GetGameServerGroupName() const{ return m_gameServerGroupName; }
46 
51  inline bool GameServerGroupNameHasBeenSet() const { return m_gameServerGroupNameHasBeenSet; }
52 
57  inline void SetGameServerGroupName(const Aws::String& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = value; }
58 
63  inline void SetGameServerGroupName(Aws::String&& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = std::move(value); }
64 
69  inline void SetGameServerGroupName(const char* value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName.assign(value); }
70 
75  inline UpdateGameServerGroupRequest& WithGameServerGroupName(const Aws::String& value) { SetGameServerGroupName(value); return *this;}
76 
81  inline UpdateGameServerGroupRequest& WithGameServerGroupName(Aws::String&& value) { SetGameServerGroupName(std::move(value)); return *this;}
82 
87  inline UpdateGameServerGroupRequest& WithGameServerGroupName(const char* value) { SetGameServerGroupName(value); return *this;}
88 
89 
96  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
97 
104  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
105 
112  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
113 
120  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
121 
128  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
129 
136  inline UpdateGameServerGroupRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
137 
144  inline UpdateGameServerGroupRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
145 
152  inline UpdateGameServerGroupRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
153 
154 
170  inline const Aws::Vector<InstanceDefinition>& GetInstanceDefinitions() const{ return m_instanceDefinitions; }
171 
187  inline bool InstanceDefinitionsHasBeenSet() const { return m_instanceDefinitionsHasBeenSet; }
188 
204  inline void SetInstanceDefinitions(const Aws::Vector<InstanceDefinition>& value) { m_instanceDefinitionsHasBeenSet = true; m_instanceDefinitions = value; }
205 
221  inline void SetInstanceDefinitions(Aws::Vector<InstanceDefinition>&& value) { m_instanceDefinitionsHasBeenSet = true; m_instanceDefinitions = std::move(value); }
222 
238  inline UpdateGameServerGroupRequest& WithInstanceDefinitions(const Aws::Vector<InstanceDefinition>& value) { SetInstanceDefinitions(value); return *this;}
239 
255  inline UpdateGameServerGroupRequest& WithInstanceDefinitions(Aws::Vector<InstanceDefinition>&& value) { SetInstanceDefinitions(std::move(value)); return *this;}
256 
272  inline UpdateGameServerGroupRequest& AddInstanceDefinitions(const InstanceDefinition& value) { m_instanceDefinitionsHasBeenSet = true; m_instanceDefinitions.push_back(value); return *this; }
273 
289  inline UpdateGameServerGroupRequest& AddInstanceDefinitions(InstanceDefinition&& value) { m_instanceDefinitionsHasBeenSet = true; m_instanceDefinitions.push_back(std::move(value)); return *this; }
290 
291 
302  inline const GameServerProtectionPolicy& GetGameServerProtectionPolicy() const{ return m_gameServerProtectionPolicy; }
303 
314  inline bool GameServerProtectionPolicyHasBeenSet() const { return m_gameServerProtectionPolicyHasBeenSet; }
315 
326  inline void SetGameServerProtectionPolicy(const GameServerProtectionPolicy& value) { m_gameServerProtectionPolicyHasBeenSet = true; m_gameServerProtectionPolicy = value; }
327 
338  inline void SetGameServerProtectionPolicy(GameServerProtectionPolicy&& value) { m_gameServerProtectionPolicyHasBeenSet = true; m_gameServerProtectionPolicy = std::move(value); }
339 
350  inline UpdateGameServerGroupRequest& WithGameServerProtectionPolicy(const GameServerProtectionPolicy& value) { SetGameServerProtectionPolicy(value); return *this;}
351 
362  inline UpdateGameServerGroupRequest& WithGameServerProtectionPolicy(GameServerProtectionPolicy&& value) { SetGameServerProtectionPolicy(std::move(value)); return *this;}
363 
364 
383  inline const BalancingStrategy& GetBalancingStrategy() const{ return m_balancingStrategy; }
384 
403  inline bool BalancingStrategyHasBeenSet() const { return m_balancingStrategyHasBeenSet; }
404 
423  inline void SetBalancingStrategy(const BalancingStrategy& value) { m_balancingStrategyHasBeenSet = true; m_balancingStrategy = value; }
424 
443  inline void SetBalancingStrategy(BalancingStrategy&& value) { m_balancingStrategyHasBeenSet = true; m_balancingStrategy = std::move(value); }
444 
463  inline UpdateGameServerGroupRequest& WithBalancingStrategy(const BalancingStrategy& value) { SetBalancingStrategy(value); return *this;}
464 
483  inline UpdateGameServerGroupRequest& WithBalancingStrategy(BalancingStrategy&& value) { SetBalancingStrategy(std::move(value)); return *this;}
484 
485  private:
486 
487  Aws::String m_gameServerGroupName;
488  bool m_gameServerGroupNameHasBeenSet;
489 
490  Aws::String m_roleArn;
491  bool m_roleArnHasBeenSet;
492 
493  Aws::Vector<InstanceDefinition> m_instanceDefinitions;
494  bool m_instanceDefinitionsHasBeenSet;
495 
496  GameServerProtectionPolicy m_gameServerProtectionPolicy;
497  bool m_gameServerProtectionPolicyHasBeenSet;
498 
499  BalancingStrategy m_balancingStrategy;
500  bool m_balancingStrategyHasBeenSet;
501  };
502 
503 } // namespace Model
504 } // namespace GameLift
505 } // namespace Aws
Aws::GameLift::Model::UpdateGameServerGroupRequest::SetGameServerGroupName
void SetGameServerGroupName(const Aws::String &value)
Definition: UpdateGameServerGroupRequest.h:57
Aws::GameLift::Model::UpdateGameServerGroupRequest::WithGameServerGroupName
UpdateGameServerGroupRequest & WithGameServerGroupName(Aws::String &&value)
Definition: UpdateGameServerGroupRequest.h:81
Aws::GameLift::Model::GameServerProtectionPolicy
GameServerProtectionPolicy
Definition: GameServerProtectionPolicy.h:17
Aws::GameLift::Model::UpdateGameServerGroupRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: UpdateGameServerGroupRequest.h:128
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::UpdateGameServerGroupRequest::WithBalancingStrategy
UpdateGameServerGroupRequest & WithBalancingStrategy(BalancingStrategy &&value)
Definition: UpdateGameServerGroupRequest.h:483
Aws::GameLift::Model::UpdateGameServerGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GameLift::Model::UpdateGameServerGroupRequest::SetGameServerProtectionPolicy
void SetGameServerProtectionPolicy(GameServerProtectionPolicy &&value)
Definition: UpdateGameServerGroupRequest.h:338
Aws::GameLift::Model::UpdateGameServerGroupRequest::SetGameServerProtectionPolicy
void SetGameServerProtectionPolicy(const GameServerProtectionPolicy &value)
Definition: UpdateGameServerGroupRequest.h:326
Aws::GameLift::Model::UpdateGameServerGroupRequest::WithRoleArn
UpdateGameServerGroupRequest & WithRoleArn(const Aws::String &value)
Definition: UpdateGameServerGroupRequest.h:136
Aws::GameLift::Model::UpdateGameServerGroupRequest::WithGameServerGroupName
UpdateGameServerGroupRequest & WithGameServerGroupName(const char *value)
Definition: UpdateGameServerGroupRequest.h:87
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::UpdateGameServerGroupRequest::GameServerProtectionPolicyHasBeenSet
bool GameServerProtectionPolicyHasBeenSet() const
Definition: UpdateGameServerGroupRequest.h:314
Aws::GameLift::Model::UpdateGameServerGroupRequest::SetInstanceDefinitions
void SetInstanceDefinitions(Aws::Vector< InstanceDefinition > &&value)
Definition: UpdateGameServerGroupRequest.h:221
GameServerProtectionPolicy.h
Aws::GameLift::Model::BalancingStrategy
BalancingStrategy
Definition: BalancingStrategy.h:17
Aws::GameLift::Model::UpdateGameServerGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateGameServerGroupRequest.h:34
Aws::GameLift::Model::UpdateGameServerGroupRequest::AddInstanceDefinitions
UpdateGameServerGroupRequest & AddInstanceDefinitions(const InstanceDefinition &value)
Definition: UpdateGameServerGroupRequest.h:272
Aws::GameLift::Model::UpdateGameServerGroupRequest::SetBalancingStrategy
void SetBalancingStrategy(const BalancingStrategy &value)
Definition: UpdateGameServerGroupRequest.h:423
Aws::GameLift::Model::InstanceDefinition
Definition: InstanceDefinition.h:38
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::UpdateGameServerGroupRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: UpdateGameServerGroupRequest.h:96
AWSVector.h
BalancingStrategy.h
InstanceDefinition.h
Aws::GameLift::Model::UpdateGameServerGroupRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: UpdateGameServerGroupRequest.h:104
Aws::GameLift::Model::UpdateGameServerGroupRequest::SetBalancingStrategy
void SetBalancingStrategy(BalancingStrategy &&value)
Definition: UpdateGameServerGroupRequest.h:443
GameLift_EXPORTS.h
Aws::GameLift::Model::UpdateGameServerGroupRequest::GetInstanceDefinitions
const Aws::Vector< InstanceDefinition > & GetInstanceDefinitions() const
Definition: UpdateGameServerGroupRequest.h:170
GameLiftRequest.h
Aws::GameLift::Model::UpdateGameServerGroupRequest::WithRoleArn
UpdateGameServerGroupRequest & WithRoleArn(const char *value)
Definition: UpdateGameServerGroupRequest.h:152
Aws::GameLift::Model::UpdateGameServerGroupRequest::SetGameServerGroupName
void SetGameServerGroupName(const char *value)
Definition: UpdateGameServerGroupRequest.h:69
Aws::GameLift::Model::UpdateGameServerGroupRequest::GetBalancingStrategy
const BalancingStrategy & GetBalancingStrategy() const
Definition: UpdateGameServerGroupRequest.h:383
Aws::GameLift::Model::UpdateGameServerGroupRequest::WithBalancingStrategy
UpdateGameServerGroupRequest & WithBalancingStrategy(const BalancingStrategy &value)
Definition: UpdateGameServerGroupRequest.h:463
Aws::GameLift::Model::UpdateGameServerGroupRequest::WithRoleArn
UpdateGameServerGroupRequest & WithRoleArn(Aws::String &&value)
Definition: UpdateGameServerGroupRequest.h:144
Aws::GameLift::Model::UpdateGameServerGroupRequest::UpdateGameServerGroupRequest
UpdateGameServerGroupRequest()
Aws::GameLift::Model::UpdateGameServerGroupRequest::WithInstanceDefinitions
UpdateGameServerGroupRequest & WithInstanceDefinitions(const Aws::Vector< InstanceDefinition > &value)
Definition: UpdateGameServerGroupRequest.h:238
Aws::GameLift::Model::UpdateGameServerGroupRequest::GameServerGroupNameHasBeenSet
bool GameServerGroupNameHasBeenSet() const
Definition: UpdateGameServerGroupRequest.h:51
Aws::GameLift::Model::UpdateGameServerGroupRequest
Definition: UpdateGameServerGroupRequest.h:26
Aws::GameLift::Model::UpdateGameServerGroupRequest::WithInstanceDefinitions
UpdateGameServerGroupRequest & WithInstanceDefinitions(Aws::Vector< InstanceDefinition > &&value)
Definition: UpdateGameServerGroupRequest.h:255
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
Aws::GameLift::Model::UpdateGameServerGroupRequest::WithGameServerProtectionPolicy
UpdateGameServerGroupRequest & WithGameServerProtectionPolicy(GameServerProtectionPolicy &&value)
Definition: UpdateGameServerGroupRequest.h:362
Aws::GameLift::Model::UpdateGameServerGroupRequest::WithGameServerProtectionPolicy
UpdateGameServerGroupRequest & WithGameServerProtectionPolicy(const GameServerProtectionPolicy &value)
Definition: UpdateGameServerGroupRequest.h:350
AWSString.h
Aws::GameLift::Model::UpdateGameServerGroupRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::GameLift::Model::UpdateGameServerGroupRequest::GetGameServerGroupName
const Aws::String & GetGameServerGroupName() const
Definition: UpdateGameServerGroupRequest.h:45
Aws::GameLift::Model::UpdateGameServerGroupRequest::BalancingStrategyHasBeenSet
bool BalancingStrategyHasBeenSet() const
Definition: UpdateGameServerGroupRequest.h:403
Aws::GameLift::Model::UpdateGameServerGroupRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: UpdateGameServerGroupRequest.h:120
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::UpdateGameServerGroupRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: UpdateGameServerGroupRequest.h:112
Aws::GameLift::Model::UpdateGameServerGroupRequest::WithGameServerGroupName
UpdateGameServerGroupRequest & WithGameServerGroupName(const Aws::String &value)
Definition: UpdateGameServerGroupRequest.h:75
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::UpdateGameServerGroupRequest::GetGameServerProtectionPolicy
const GameServerProtectionPolicy & GetGameServerProtectionPolicy() const
Definition: UpdateGameServerGroupRequest.h:302
Aws::GameLift::Model::UpdateGameServerGroupRequest::SetGameServerGroupName
void SetGameServerGroupName(Aws::String &&value)
Definition: UpdateGameServerGroupRequest.h:63
Aws::GameLift::Model::UpdateGameServerGroupRequest::InstanceDefinitionsHasBeenSet
bool InstanceDefinitionsHasBeenSet() const
Definition: UpdateGameServerGroupRequest.h:187
Aws::GameLift::Model::UpdateGameServerGroupRequest::AddInstanceDefinitions
UpdateGameServerGroupRequest & AddInstanceDefinitions(InstanceDefinition &&value)
Definition: UpdateGameServerGroupRequest.h:289
Aws::GameLift::Model::UpdateGameServerGroupRequest::SetInstanceDefinitions
void SetInstanceDefinitions(const Aws::Vector< InstanceDefinition > &value)
Definition: UpdateGameServerGroupRequest.h:204