AWS SDK for C++  1.9.17
AWS SDK for C++
UpdateFleetAttributesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace GameLift
18 {
19 namespace Model
20 {
21 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "UpdateFleetAttributes"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
47  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
48 
53  inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
54 
59  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
60 
65  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
66 
71  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
72 
77  inline UpdateFleetAttributesRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
78 
83  inline UpdateFleetAttributesRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
84 
89  inline UpdateFleetAttributesRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
90 
91 
96  inline const Aws::String& GetName() const{ return m_name; }
97 
102  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
103 
108  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
109 
114  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
115 
120  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
121 
126  inline UpdateFleetAttributesRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
127 
132  inline UpdateFleetAttributesRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
133 
138  inline UpdateFleetAttributesRequest& WithName(const char* value) { SetName(value); return *this;}
139 
140 
144  inline const Aws::String& GetDescription() const{ return m_description; }
145 
149  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
150 
154  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
155 
159  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
160 
164  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
165 
169  inline UpdateFleetAttributesRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
170 
174  inline UpdateFleetAttributesRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
175 
179  inline UpdateFleetAttributesRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
180 
181 
191  inline const ProtectionPolicy& GetNewGameSessionProtectionPolicy() const{ return m_newGameSessionProtectionPolicy; }
192 
202  inline bool NewGameSessionProtectionPolicyHasBeenSet() const { return m_newGameSessionProtectionPolicyHasBeenSet; }
203 
213  inline void SetNewGameSessionProtectionPolicy(const ProtectionPolicy& value) { m_newGameSessionProtectionPolicyHasBeenSet = true; m_newGameSessionProtectionPolicy = value; }
214 
224  inline void SetNewGameSessionProtectionPolicy(ProtectionPolicy&& value) { m_newGameSessionProtectionPolicyHasBeenSet = true; m_newGameSessionProtectionPolicy = std::move(value); }
225 
235  inline UpdateFleetAttributesRequest& WithNewGameSessionProtectionPolicy(const ProtectionPolicy& value) { SetNewGameSessionProtectionPolicy(value); return *this;}
236 
246  inline UpdateFleetAttributesRequest& WithNewGameSessionProtectionPolicy(ProtectionPolicy&& value) { SetNewGameSessionProtectionPolicy(std::move(value)); return *this;}
247 
248 
253  inline const ResourceCreationLimitPolicy& GetResourceCreationLimitPolicy() const{ return m_resourceCreationLimitPolicy; }
254 
259  inline bool ResourceCreationLimitPolicyHasBeenSet() const { return m_resourceCreationLimitPolicyHasBeenSet; }
260 
265  inline void SetResourceCreationLimitPolicy(const ResourceCreationLimitPolicy& value) { m_resourceCreationLimitPolicyHasBeenSet = true; m_resourceCreationLimitPolicy = value; }
266 
271  inline void SetResourceCreationLimitPolicy(ResourceCreationLimitPolicy&& value) { m_resourceCreationLimitPolicyHasBeenSet = true; m_resourceCreationLimitPolicy = std::move(value); }
272 
277  inline UpdateFleetAttributesRequest& WithResourceCreationLimitPolicy(const ResourceCreationLimitPolicy& value) { SetResourceCreationLimitPolicy(value); return *this;}
278 
283  inline UpdateFleetAttributesRequest& WithResourceCreationLimitPolicy(ResourceCreationLimitPolicy&& value) { SetResourceCreationLimitPolicy(std::move(value)); return *this;}
284 
285 
292  inline const Aws::Vector<Aws::String>& GetMetricGroups() const{ return m_metricGroups; }
293 
300  inline bool MetricGroupsHasBeenSet() const { return m_metricGroupsHasBeenSet; }
301 
308  inline void SetMetricGroups(const Aws::Vector<Aws::String>& value) { m_metricGroupsHasBeenSet = true; m_metricGroups = value; }
309 
316  inline void SetMetricGroups(Aws::Vector<Aws::String>&& value) { m_metricGroupsHasBeenSet = true; m_metricGroups = std::move(value); }
317 
324  inline UpdateFleetAttributesRequest& WithMetricGroups(const Aws::Vector<Aws::String>& value) { SetMetricGroups(value); return *this;}
325 
332  inline UpdateFleetAttributesRequest& WithMetricGroups(Aws::Vector<Aws::String>&& value) { SetMetricGroups(std::move(value)); return *this;}
333 
340  inline UpdateFleetAttributesRequest& AddMetricGroups(const Aws::String& value) { m_metricGroupsHasBeenSet = true; m_metricGroups.push_back(value); return *this; }
341 
348  inline UpdateFleetAttributesRequest& AddMetricGroups(Aws::String&& value) { m_metricGroupsHasBeenSet = true; m_metricGroups.push_back(std::move(value)); return *this; }
349 
356  inline UpdateFleetAttributesRequest& AddMetricGroups(const char* value) { m_metricGroupsHasBeenSet = true; m_metricGroups.push_back(value); return *this; }
357 
358  private:
359 
360  Aws::String m_fleetId;
361  bool m_fleetIdHasBeenSet;
362 
363  Aws::String m_name;
364  bool m_nameHasBeenSet;
365 
366  Aws::String m_description;
367  bool m_descriptionHasBeenSet;
368 
369  ProtectionPolicy m_newGameSessionProtectionPolicy;
370  bool m_newGameSessionProtectionPolicyHasBeenSet;
371 
372  ResourceCreationLimitPolicy m_resourceCreationLimitPolicy;
373  bool m_resourceCreationLimitPolicyHasBeenSet;
374 
375  Aws::Vector<Aws::String> m_metricGroups;
376  bool m_metricGroupsHasBeenSet;
377  };
378 
379 } // namespace Model
380 } // namespace GameLift
381 } // namespace Aws
Aws::GameLift::Model::UpdateFleetAttributesRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateFleetAttributesRequest.h:108
Aws::GameLift::Model::UpdateFleetAttributesRequest::GetFleetId
const Aws::String & GetFleetId() const
Definition: UpdateFleetAttributesRequest.h:47
Aws::GameLift::Model::UpdateFleetAttributesRequest::WithNewGameSessionProtectionPolicy
UpdateFleetAttributesRequest & WithNewGameSessionProtectionPolicy(ProtectionPolicy &&value)
Definition: UpdateFleetAttributesRequest.h:246
Aws::GameLift::Model::UpdateFleetAttributesRequest::AddMetricGroups
UpdateFleetAttributesRequest & AddMetricGroups(const char *value)
Definition: UpdateFleetAttributesRequest.h:356
Aws::GameLift::Model::UpdateFleetAttributesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::UpdateFleetAttributesRequest::UpdateFleetAttributesRequest
UpdateFleetAttributesRequest()
Aws::GameLift::Model::UpdateFleetAttributesRequest::ResourceCreationLimitPolicyHasBeenSet
bool ResourceCreationLimitPolicyHasBeenSet() const
Definition: UpdateFleetAttributesRequest.h:259
Aws::GameLift::Model::UpdateFleetAttributesRequest::WithDescription
UpdateFleetAttributesRequest & WithDescription(const Aws::String &value)
Definition: UpdateFleetAttributesRequest.h:169
Aws::GameLift::Model::UpdateFleetAttributesRequest::WithResourceCreationLimitPolicy
UpdateFleetAttributesRequest & WithResourceCreationLimitPolicy(const ResourceCreationLimitPolicy &value)
Definition: UpdateFleetAttributesRequest.h:277
Aws::GameLift::Model::UpdateFleetAttributesRequest::SetFleetId
void SetFleetId(const Aws::String &value)
Definition: UpdateFleetAttributesRequest.h:59
Aws::GameLift::Model::UpdateFleetAttributesRequest::WithName
UpdateFleetAttributesRequest & WithName(Aws::String &&value)
Definition: UpdateFleetAttributesRequest.h:132
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::UpdateFleetAttributesRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateFleetAttributesRequest.h:149
Aws::GameLift::Model::UpdateFleetAttributesRequest::NewGameSessionProtectionPolicyHasBeenSet
bool NewGameSessionProtectionPolicyHasBeenSet() const
Definition: UpdateFleetAttributesRequest.h:202
Aws::GameLift::Model::ProtectionPolicy
ProtectionPolicy
Definition: ProtectionPolicy.h:17
Aws::GameLift::Model::UpdateFleetAttributesRequest::WithDescription
UpdateFleetAttributesRequest & WithDescription(Aws::String &&value)
Definition: UpdateFleetAttributesRequest.h:174
Aws::GameLift::Model::UpdateFleetAttributesRequest::WithName
UpdateFleetAttributesRequest & WithName(const Aws::String &value)
Definition: UpdateFleetAttributesRequest.h:126
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::UpdateFleetAttributesRequest::AddMetricGroups
UpdateFleetAttributesRequest & AddMetricGroups(Aws::String &&value)
Definition: UpdateFleetAttributesRequest.h:348
Aws::GameLift::Model::UpdateFleetAttributesRequest
Definition: UpdateFleetAttributesRequest.h:28
Aws::GameLift::Model::ResourceCreationLimitPolicy
Definition: ResourceCreationLimitPolicy.h:37
AWSVector.h
Aws::GameLift::Model::UpdateFleetAttributesRequest::SetResourceCreationLimitPolicy
void SetResourceCreationLimitPolicy(const ResourceCreationLimitPolicy &value)
Definition: UpdateFleetAttributesRequest.h:265
Aws::GameLift::Model::UpdateFleetAttributesRequest::WithResourceCreationLimitPolicy
UpdateFleetAttributesRequest & WithResourceCreationLimitPolicy(ResourceCreationLimitPolicy &&value)
Definition: UpdateFleetAttributesRequest.h:283
ResourceCreationLimitPolicy.h
Aws::GameLift::Model::UpdateFleetAttributesRequest::AddMetricGroups
UpdateFleetAttributesRequest & AddMetricGroups(const Aws::String &value)
Definition: UpdateFleetAttributesRequest.h:340
Aws::GameLift::Model::UpdateFleetAttributesRequest::SetMetricGroups
void SetMetricGroups(const Aws::Vector< Aws::String > &value)
Definition: UpdateFleetAttributesRequest.h:308
Aws::GameLift::Model::UpdateFleetAttributesRequest::WithMetricGroups
UpdateFleetAttributesRequest & WithMetricGroups(Aws::Vector< Aws::String > &&value)
Definition: UpdateFleetAttributesRequest.h:332
GameLift_EXPORTS.h
Aws::GameLift::Model::UpdateFleetAttributesRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateFleetAttributesRequest.h:144
GameLiftRequest.h
Aws::GameLift::Model::UpdateFleetAttributesRequest::SetNewGameSessionProtectionPolicy
void SetNewGameSessionProtectionPolicy(const ProtectionPolicy &value)
Definition: UpdateFleetAttributesRequest.h:213
Aws::GameLift::Model::UpdateFleetAttributesRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateFleetAttributesRequest.h:114
Aws::GameLift::Model::UpdateFleetAttributesRequest::WithName
UpdateFleetAttributesRequest & WithName(const char *value)
Definition: UpdateFleetAttributesRequest.h:138
Aws::GameLift::Model::UpdateFleetAttributesRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateFleetAttributesRequest.h:159
Aws::GameLift::Model::UpdateFleetAttributesRequest::SetNewGameSessionProtectionPolicy
void SetNewGameSessionProtectionPolicy(ProtectionPolicy &&value)
Definition: UpdateFleetAttributesRequest.h:224
Aws::GameLift::Model::UpdateFleetAttributesRequest::MetricGroupsHasBeenSet
bool MetricGroupsHasBeenSet() const
Definition: UpdateFleetAttributesRequest.h:300
Aws::GameLift::Model::UpdateFleetAttributesRequest::WithFleetId
UpdateFleetAttributesRequest & WithFleetId(const Aws::String &value)
Definition: UpdateFleetAttributesRequest.h:77
Aws::GameLift::Model::UpdateFleetAttributesRequest::WithFleetId
UpdateFleetAttributesRequest & WithFleetId(const char *value)
Definition: UpdateFleetAttributesRequest.h:89
Aws::GameLift::Model::UpdateFleetAttributesRequest::SetFleetId
void SetFleetId(Aws::String &&value)
Definition: UpdateFleetAttributesRequest.h:65
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
Aws::GameLift::Model::UpdateFleetAttributesRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateFleetAttributesRequest.h:164
AWSString.h
Aws::GameLift::Model::UpdateFleetAttributesRequest::WithMetricGroups
UpdateFleetAttributesRequest & WithMetricGroups(const Aws::Vector< Aws::String > &value)
Definition: UpdateFleetAttributesRequest.h:324
ProtectionPolicy.h
Aws::GameLift::Model::UpdateFleetAttributesRequest::FleetIdHasBeenSet
bool FleetIdHasBeenSet() const
Definition: UpdateFleetAttributesRequest.h:53
Aws::GameLift::Model::UpdateFleetAttributesRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateFleetAttributesRequest.h:154
Aws::GameLift::Model::UpdateFleetAttributesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GameLift::Model::UpdateFleetAttributesRequest::WithDescription
UpdateFleetAttributesRequest & WithDescription(const char *value)
Definition: UpdateFleetAttributesRequest.h:179
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::UpdateFleetAttributesRequest::SetResourceCreationLimitPolicy
void SetResourceCreationLimitPolicy(ResourceCreationLimitPolicy &&value)
Definition: UpdateFleetAttributesRequest.h:271
Aws::GameLift::Model::UpdateFleetAttributesRequest::WithNewGameSessionProtectionPolicy
UpdateFleetAttributesRequest & WithNewGameSessionProtectionPolicy(const ProtectionPolicy &value)
Definition: UpdateFleetAttributesRequest.h:235
Aws::GameLift::Model::UpdateFleetAttributesRequest::GetMetricGroups
const Aws::Vector< Aws::String > & GetMetricGroups() const
Definition: UpdateFleetAttributesRequest.h:292
Aws::GameLift::Model::UpdateFleetAttributesRequest::SetMetricGroups
void SetMetricGroups(Aws::Vector< Aws::String > &&value)
Definition: UpdateFleetAttributesRequest.h:316
Aws::GameLift::Model::UpdateFleetAttributesRequest::WithFleetId
UpdateFleetAttributesRequest & WithFleetId(Aws::String &&value)
Definition: UpdateFleetAttributesRequest.h:83
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::UpdateFleetAttributesRequest::SetName
void SetName(const char *value)
Definition: UpdateFleetAttributesRequest.h:120
Aws::GameLift::Model::UpdateFleetAttributesRequest::GetName
const Aws::String & GetName() const
Definition: UpdateFleetAttributesRequest.h:96
Aws::GameLift::Model::UpdateFleetAttributesRequest::GetResourceCreationLimitPolicy
const ResourceCreationLimitPolicy & GetResourceCreationLimitPolicy() const
Definition: UpdateFleetAttributesRequest.h:253
Aws::GameLift::Model::UpdateFleetAttributesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateFleetAttributesRequest.h:36
Aws::GameLift::Model::UpdateFleetAttributesRequest::GetNewGameSessionProtectionPolicy
const ProtectionPolicy & GetNewGameSessionProtectionPolicy() const
Definition: UpdateFleetAttributesRequest.h:191
Aws::GameLift::Model::UpdateFleetAttributesRequest::SetFleetId
void SetFleetId(const char *value)
Definition: UpdateFleetAttributesRequest.h:71
Aws::GameLift::Model::UpdateFleetAttributesRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateFleetAttributesRequest.h:102