AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateFleetAttributesRequest.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/AnywhereConfiguration.h>
12#include <aws/gamelift/model/ProtectionPolicy.h>
13#include <aws/gamelift/model/ResourceCreationLimitPolicy.h>
14
15#include <utility>
16
17namespace Aws {
18namespace GameLift {
19namespace Model {
20
24 public:
25 AWS_GAMELIFT_API UpdateFleetAttributesRequest() = 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 "UpdateFleetAttributes"; }
32
33 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
34
36
38
42 inline const Aws::String& GetFleetId() const { return m_fleetId; }
43 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
44 template <typename FleetIdT = Aws::String>
45 void SetFleetId(FleetIdT&& value) {
46 m_fleetIdHasBeenSet = true;
47 m_fleetId = std::forward<FleetIdT>(value);
48 }
49 template <typename FleetIdT = Aws::String>
51 SetFleetId(std::forward<FleetIdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
104 inline ProtectionPolicy GetNewGameSessionProtectionPolicy() const { return m_newGameSessionProtectionPolicy; }
105 inline bool NewGameSessionProtectionPolicyHasBeenSet() const { return m_newGameSessionProtectionPolicyHasBeenSet; }
107 m_newGameSessionProtectionPolicyHasBeenSet = true;
108 m_newGameSessionProtectionPolicy = value;
109 }
112 return *this;
113 }
115
117
121 inline const ResourceCreationLimitPolicy& GetResourceCreationLimitPolicy() const { return m_resourceCreationLimitPolicy; }
122 inline bool ResourceCreationLimitPolicyHasBeenSet() const { return m_resourceCreationLimitPolicyHasBeenSet; }
123 template <typename ResourceCreationLimitPolicyT = ResourceCreationLimitPolicy>
124 void SetResourceCreationLimitPolicy(ResourceCreationLimitPolicyT&& value) {
125 m_resourceCreationLimitPolicyHasBeenSet = true;
126 m_resourceCreationLimitPolicy = std::forward<ResourceCreationLimitPolicyT>(value);
127 }
128 template <typename ResourceCreationLimitPolicyT = ResourceCreationLimitPolicy>
129 UpdateFleetAttributesRequest& WithResourceCreationLimitPolicy(ResourceCreationLimitPolicyT&& value) {
130 SetResourceCreationLimitPolicy(std::forward<ResourceCreationLimitPolicyT>(value));
131 return *this;
132 }
134
136
142 inline const Aws::Vector<Aws::String>& GetMetricGroups() const { return m_metricGroups; }
143 inline bool MetricGroupsHasBeenSet() const { return m_metricGroupsHasBeenSet; }
144 template <typename MetricGroupsT = Aws::Vector<Aws::String>>
145 void SetMetricGroups(MetricGroupsT&& value) {
146 m_metricGroupsHasBeenSet = true;
147 m_metricGroups = std::forward<MetricGroupsT>(value);
148 }
149 template <typename MetricGroupsT = Aws::Vector<Aws::String>>
151 SetMetricGroups(std::forward<MetricGroupsT>(value));
152 return *this;
153 }
154 template <typename MetricGroupsT = Aws::String>
156 m_metricGroupsHasBeenSet = true;
157 m_metricGroups.emplace_back(std::forward<MetricGroupsT>(value));
158 return *this;
159 }
161
163
166 inline const AnywhereConfiguration& GetAnywhereConfiguration() const { return m_anywhereConfiguration; }
167 inline bool AnywhereConfigurationHasBeenSet() const { return m_anywhereConfigurationHasBeenSet; }
168 template <typename AnywhereConfigurationT = AnywhereConfiguration>
169 void SetAnywhereConfiguration(AnywhereConfigurationT&& value) {
170 m_anywhereConfigurationHasBeenSet = true;
171 m_anywhereConfiguration = std::forward<AnywhereConfigurationT>(value);
172 }
173 template <typename AnywhereConfigurationT = AnywhereConfiguration>
175 SetAnywhereConfiguration(std::forward<AnywhereConfigurationT>(value));
176 return *this;
177 }
179 private:
180 Aws::String m_fleetId;
181
182 Aws::String m_name;
183
184 Aws::String m_description;
185
186 ProtectionPolicy m_newGameSessionProtectionPolicy{ProtectionPolicy::NOT_SET};
187
188 ResourceCreationLimitPolicy m_resourceCreationLimitPolicy;
189
190 Aws::Vector<Aws::String> m_metricGroups;
191
192 AnywhereConfiguration m_anywhereConfiguration;
193 bool m_fleetIdHasBeenSet = false;
194 bool m_nameHasBeenSet = false;
195 bool m_descriptionHasBeenSet = false;
196 bool m_newGameSessionProtectionPolicyHasBeenSet = false;
197 bool m_resourceCreationLimitPolicyHasBeenSet = false;
198 bool m_metricGroupsHasBeenSet = false;
199 bool m_anywhereConfigurationHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace GameLift
204} // namespace Aws
void SetResourceCreationLimitPolicy(ResourceCreationLimitPolicyT &&value)
const ResourceCreationLimitPolicy & GetResourceCreationLimitPolicy() const
UpdateFleetAttributesRequest & WithFleetId(FleetIdT &&value)
AWS_GAMELIFT_API UpdateFleetAttributesRequest()=default
UpdateFleetAttributesRequest & WithDescription(DescriptionT &&value)
UpdateFleetAttributesRequest & WithNewGameSessionProtectionPolicy(ProtectionPolicy value)
UpdateFleetAttributesRequest & WithMetricGroups(MetricGroupsT &&value)
UpdateFleetAttributesRequest & AddMetricGroups(MetricGroupsT &&value)
const Aws::Vector< Aws::String > & GetMetricGroups() const
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateFleetAttributesRequest & WithName(NameT &&value)
UpdateFleetAttributesRequest & WithAnywhereConfiguration(AnywhereConfigurationT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
UpdateFleetAttributesRequest & WithResourceCreationLimitPolicy(ResourceCreationLimitPolicyT &&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