AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
UpdateGameServerGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/gamelift/GameLiftRequest.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11#include <aws/gamelift/model/BalancingStrategy.h>
12#include <aws/gamelift/model/GameServerProtectionPolicy.h>
13#include <aws/gamelift/model/InstanceDefinition.h>
14
15#include <utility>
16
17namespace Aws {
18namespace GameLift {
19namespace Model {
20
24 public:
25 AWS_GAMELIFT_API UpdateGameServerGroupRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateGameServerGroup"; }
32
33 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
34
36
38
42 inline const Aws::String& GetGameServerGroupName() const { return m_gameServerGroupName; }
43 inline bool GameServerGroupNameHasBeenSet() const { return m_gameServerGroupNameHasBeenSet; }
44 template <typename GameServerGroupNameT = Aws::String>
45 void SetGameServerGroupName(GameServerGroupNameT&& value) {
46 m_gameServerGroupNameHasBeenSet = true;
47 m_gameServerGroupName = std::forward<GameServerGroupNameT>(value);
48 }
49 template <typename GameServerGroupNameT = Aws::String>
51 SetGameServerGroupName(std::forward<GameServerGroupNameT>(value));
52 return *this;
53 }
55
57
63 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
64 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
65 template <typename RoleArnT = Aws::String>
66 void SetRoleArn(RoleArnT&& value) {
67 m_roleArnHasBeenSet = true;
68 m_roleArn = std::forward<RoleArnT>(value);
69 }
70 template <typename RoleArnT = Aws::String>
72 SetRoleArn(std::forward<RoleArnT>(value));
73 return *this;
74 }
76
78
93 inline const Aws::Vector<InstanceDefinition>& GetInstanceDefinitions() const { return m_instanceDefinitions; }
94 inline bool InstanceDefinitionsHasBeenSet() const { return m_instanceDefinitionsHasBeenSet; }
95 template <typename InstanceDefinitionsT = Aws::Vector<InstanceDefinition>>
96 void SetInstanceDefinitions(InstanceDefinitionsT&& value) {
97 m_instanceDefinitionsHasBeenSet = true;
98 m_instanceDefinitions = std::forward<InstanceDefinitionsT>(value);
99 }
100 template <typename InstanceDefinitionsT = Aws::Vector<InstanceDefinition>>
102 SetInstanceDefinitions(std::forward<InstanceDefinitionsT>(value));
103 return *this;
104 }
105 template <typename InstanceDefinitionsT = InstanceDefinition>
107 m_instanceDefinitionsHasBeenSet = true;
108 m_instanceDefinitions.emplace_back(std::forward<InstanceDefinitionsT>(value));
109 return *this;
110 }
112
114
124 inline GameServerProtectionPolicy GetGameServerProtectionPolicy() const { return m_gameServerProtectionPolicy; }
125 inline bool GameServerProtectionPolicyHasBeenSet() const { return m_gameServerProtectionPolicyHasBeenSet; }
127 m_gameServerProtectionPolicyHasBeenSet = true;
128 m_gameServerProtectionPolicy = value;
129 }
132 return *this;
133 }
135
137
155 inline BalancingStrategy GetBalancingStrategy() const { return m_balancingStrategy; }
156 inline bool BalancingStrategyHasBeenSet() const { return m_balancingStrategyHasBeenSet; }
158 m_balancingStrategyHasBeenSet = true;
159 m_balancingStrategy = value;
160 }
163 return *this;
164 }
166 private:
167 Aws::String m_gameServerGroupName;
168 bool m_gameServerGroupNameHasBeenSet = false;
169
170 Aws::String m_roleArn;
171 bool m_roleArnHasBeenSet = false;
172
173 Aws::Vector<InstanceDefinition> m_instanceDefinitions;
174 bool m_instanceDefinitionsHasBeenSet = false;
175
177 bool m_gameServerProtectionPolicyHasBeenSet = false;
178
180 bool m_balancingStrategyHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace GameLift
185} // namespace Aws
UpdateGameServerGroupRequest & WithRoleArn(RoleArnT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
UpdateGameServerGroupRequest & WithBalancingStrategy(BalancingStrategy value)
UpdateGameServerGroupRequest & WithGameServerProtectionPolicy(GameServerProtectionPolicy value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< InstanceDefinition > & GetInstanceDefinitions() const
UpdateGameServerGroupRequest & WithGameServerGroupName(GameServerGroupNameT &&value)
UpdateGameServerGroupRequest & WithInstanceDefinitions(InstanceDefinitionsT &&value)
void SetGameServerProtectionPolicy(GameServerProtectionPolicy value)
UpdateGameServerGroupRequest & AddInstanceDefinitions(InstanceDefinitionsT &&value)
AWS_GAMELIFT_API UpdateGameServerGroupRequest()=default
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