AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateGameServerGroupRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/gamelift/model/GameServerProtectionPolicy.h>
12#include <aws/gamelift/model/BalancingStrategy.h>
13#include <aws/gamelift/model/InstanceDefinition.h>
14#include <utility>
15
16namespace Aws
17{
18namespace GameLift
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_GAMELIFT_API UpdateGameServerGroupRequest();
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_GAMELIFT_API Aws::String SerializePayload() const override;
37
39
40
42
46 inline const Aws::String& GetGameServerGroupName() const{ return m_gameServerGroupName; }
47 inline bool GameServerGroupNameHasBeenSet() const { return m_gameServerGroupNameHasBeenSet; }
48 inline void SetGameServerGroupName(const Aws::String& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = value; }
49 inline void SetGameServerGroupName(Aws::String&& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = std::move(value); }
50 inline void SetGameServerGroupName(const char* value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName.assign(value); }
53 inline UpdateGameServerGroupRequest& WithGameServerGroupName(const char* value) { SetGameServerGroupName(value); return *this;}
55
57
63 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
64 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
65 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
66 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
67 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
68 inline UpdateGameServerGroupRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
69 inline UpdateGameServerGroupRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
70 inline UpdateGameServerGroupRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
72
74
89 inline const Aws::Vector<InstanceDefinition>& GetInstanceDefinitions() const{ return m_instanceDefinitions; }
90 inline bool InstanceDefinitionsHasBeenSet() const { return m_instanceDefinitionsHasBeenSet; }
91 inline void SetInstanceDefinitions(const Aws::Vector<InstanceDefinition>& value) { m_instanceDefinitionsHasBeenSet = true; m_instanceDefinitions = value; }
92 inline void SetInstanceDefinitions(Aws::Vector<InstanceDefinition>&& value) { m_instanceDefinitionsHasBeenSet = true; m_instanceDefinitions = std::move(value); }
95 inline UpdateGameServerGroupRequest& AddInstanceDefinitions(const InstanceDefinition& value) { m_instanceDefinitionsHasBeenSet = true; m_instanceDefinitions.push_back(value); return *this; }
96 inline UpdateGameServerGroupRequest& AddInstanceDefinitions(InstanceDefinition&& value) { m_instanceDefinitionsHasBeenSet = true; m_instanceDefinitions.push_back(std::move(value)); return *this; }
98
100
110 inline const GameServerProtectionPolicy& GetGameServerProtectionPolicy() const{ return m_gameServerProtectionPolicy; }
111 inline bool GameServerProtectionPolicyHasBeenSet() const { return m_gameServerProtectionPolicyHasBeenSet; }
112 inline void SetGameServerProtectionPolicy(const GameServerProtectionPolicy& value) { m_gameServerProtectionPolicyHasBeenSet = true; m_gameServerProtectionPolicy = value; }
113 inline void SetGameServerProtectionPolicy(GameServerProtectionPolicy&& value) { m_gameServerProtectionPolicyHasBeenSet = true; m_gameServerProtectionPolicy = std::move(value); }
117
119
137 inline const BalancingStrategy& GetBalancingStrategy() const{ return m_balancingStrategy; }
138 inline bool BalancingStrategyHasBeenSet() const { return m_balancingStrategyHasBeenSet; }
139 inline void SetBalancingStrategy(const BalancingStrategy& value) { m_balancingStrategyHasBeenSet = true; m_balancingStrategy = value; }
140 inline void SetBalancingStrategy(BalancingStrategy&& value) { m_balancingStrategyHasBeenSet = true; m_balancingStrategy = std::move(value); }
144 private:
145
146 Aws::String m_gameServerGroupName;
147 bool m_gameServerGroupNameHasBeenSet = false;
148
149 Aws::String m_roleArn;
150 bool m_roleArnHasBeenSet = false;
151
152 Aws::Vector<InstanceDefinition> m_instanceDefinitions;
153 bool m_instanceDefinitionsHasBeenSet = false;
154
155 GameServerProtectionPolicy m_gameServerProtectionPolicy;
156 bool m_gameServerProtectionPolicyHasBeenSet = false;
157
158 BalancingStrategy m_balancingStrategy;
159 bool m_balancingStrategyHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace GameLift
164} // namespace Aws
UpdateGameServerGroupRequest & AddInstanceDefinitions(InstanceDefinition &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
UpdateGameServerGroupRequest & WithRoleArn(const Aws::String &value)
void SetGameServerProtectionPolicy(const GameServerProtectionPolicy &value)
UpdateGameServerGroupRequest & WithGameServerProtectionPolicy(const GameServerProtectionPolicy &value)
UpdateGameServerGroupRequest & WithBalancingStrategy(const BalancingStrategy &value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateGameServerGroupRequest & WithInstanceDefinitions(Aws::Vector< InstanceDefinition > &&value)
const Aws::Vector< InstanceDefinition > & GetInstanceDefinitions() const
void SetGameServerProtectionPolicy(GameServerProtectionPolicy &&value)
UpdateGameServerGroupRequest & WithGameServerGroupName(Aws::String &&value)
UpdateGameServerGroupRequest & WithBalancingStrategy(BalancingStrategy &&value)
UpdateGameServerGroupRequest & WithGameServerProtectionPolicy(GameServerProtectionPolicy &&value)
void SetInstanceDefinitions(const Aws::Vector< InstanceDefinition > &value)
UpdateGameServerGroupRequest & AddInstanceDefinitions(const InstanceDefinition &value)
UpdateGameServerGroupRequest & WithGameServerGroupName(const Aws::String &value)
void SetInstanceDefinitions(Aws::Vector< InstanceDefinition > &&value)
UpdateGameServerGroupRequest & WithRoleArn(Aws::String &&value)
UpdateGameServerGroupRequest & WithGameServerGroupName(const char *value)
UpdateGameServerGroupRequest & WithRoleArn(const char *value)
const GameServerProtectionPolicy & GetGameServerProtectionPolicy() const
UpdateGameServerGroupRequest & WithInstanceDefinitions(const Aws::Vector< InstanceDefinition > &value)
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