AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateFleetAttributesRequest.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/gamelift/model/ProtectionPolicy.h>
11#include <aws/gamelift/model/ResourceCreationLimitPolicy.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/gamelift/model/AnywhereConfiguration.h>
14#include <utility>
15
16namespace Aws
17{
18namespace GameLift
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_GAMELIFT_API UpdateFleetAttributesRequest();
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 "UpdateFleetAttributes"; }
35
36 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
37
39
40
42
46 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
47 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
48 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
49 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
50 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
51 inline UpdateFleetAttributesRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
52 inline UpdateFleetAttributesRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
53 inline UpdateFleetAttributesRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
55
57
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline UpdateFleetAttributesRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline UpdateFleetAttributesRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline UpdateFleetAttributesRequest& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const Aws::String& GetDescription() const{ return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
78 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
79 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
80 inline UpdateFleetAttributesRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
81 inline UpdateFleetAttributesRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
82 inline UpdateFleetAttributesRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
84
86
96 inline const ProtectionPolicy& GetNewGameSessionProtectionPolicy() const{ return m_newGameSessionProtectionPolicy; }
97 inline bool NewGameSessionProtectionPolicyHasBeenSet() const { return m_newGameSessionProtectionPolicyHasBeenSet; }
98 inline void SetNewGameSessionProtectionPolicy(const ProtectionPolicy& value) { m_newGameSessionProtectionPolicyHasBeenSet = true; m_newGameSessionProtectionPolicy = value; }
99 inline void SetNewGameSessionProtectionPolicy(ProtectionPolicy&& value) { m_newGameSessionProtectionPolicyHasBeenSet = true; m_newGameSessionProtectionPolicy = std::move(value); }
103
105
109 inline const ResourceCreationLimitPolicy& GetResourceCreationLimitPolicy() const{ return m_resourceCreationLimitPolicy; }
110 inline bool ResourceCreationLimitPolicyHasBeenSet() const { return m_resourceCreationLimitPolicyHasBeenSet; }
111 inline void SetResourceCreationLimitPolicy(const ResourceCreationLimitPolicy& value) { m_resourceCreationLimitPolicyHasBeenSet = true; m_resourceCreationLimitPolicy = value; }
112 inline void SetResourceCreationLimitPolicy(ResourceCreationLimitPolicy&& value) { m_resourceCreationLimitPolicyHasBeenSet = true; m_resourceCreationLimitPolicy = std::move(value); }
116
118
124 inline const Aws::Vector<Aws::String>& GetMetricGroups() const{ return m_metricGroups; }
125 inline bool MetricGroupsHasBeenSet() const { return m_metricGroupsHasBeenSet; }
126 inline void SetMetricGroups(const Aws::Vector<Aws::String>& value) { m_metricGroupsHasBeenSet = true; m_metricGroups = value; }
127 inline void SetMetricGroups(Aws::Vector<Aws::String>&& value) { m_metricGroupsHasBeenSet = true; m_metricGroups = std::move(value); }
130 inline UpdateFleetAttributesRequest& AddMetricGroups(const Aws::String& value) { m_metricGroupsHasBeenSet = true; m_metricGroups.push_back(value); return *this; }
131 inline UpdateFleetAttributesRequest& AddMetricGroups(Aws::String&& value) { m_metricGroupsHasBeenSet = true; m_metricGroups.push_back(std::move(value)); return *this; }
132 inline UpdateFleetAttributesRequest& AddMetricGroups(const char* value) { m_metricGroupsHasBeenSet = true; m_metricGroups.push_back(value); return *this; }
134
136
139 inline const AnywhereConfiguration& GetAnywhereConfiguration() const{ return m_anywhereConfiguration; }
140 inline bool AnywhereConfigurationHasBeenSet() const { return m_anywhereConfigurationHasBeenSet; }
141 inline void SetAnywhereConfiguration(const AnywhereConfiguration& value) { m_anywhereConfigurationHasBeenSet = true; m_anywhereConfiguration = value; }
142 inline void SetAnywhereConfiguration(AnywhereConfiguration&& value) { m_anywhereConfigurationHasBeenSet = true; m_anywhereConfiguration = std::move(value); }
146 private:
147
148 Aws::String m_fleetId;
149 bool m_fleetIdHasBeenSet = false;
150
151 Aws::String m_name;
152 bool m_nameHasBeenSet = false;
153
154 Aws::String m_description;
155 bool m_descriptionHasBeenSet = false;
156
157 ProtectionPolicy m_newGameSessionProtectionPolicy;
158 bool m_newGameSessionProtectionPolicyHasBeenSet = false;
159
160 ResourceCreationLimitPolicy m_resourceCreationLimitPolicy;
161 bool m_resourceCreationLimitPolicyHasBeenSet = false;
162
163 Aws::Vector<Aws::String> m_metricGroups;
164 bool m_metricGroupsHasBeenSet = false;
165
166 AnywhereConfiguration m_anywhereConfiguration;
167 bool m_anywhereConfigurationHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace GameLift
172} // namespace Aws
UpdateFleetAttributesRequest & WithName(const Aws::String &value)
const ResourceCreationLimitPolicy & GetResourceCreationLimitPolicy() const
UpdateFleetAttributesRequest & WithDescription(const char *value)
void SetResourceCreationLimitPolicy(ResourceCreationLimitPolicy &&value)
UpdateFleetAttributesRequest & WithMetricGroups(const Aws::Vector< Aws::String > &value)
void SetNewGameSessionProtectionPolicy(const ProtectionPolicy &value)
UpdateFleetAttributesRequest & WithName(Aws::String &&value)
UpdateFleetAttributesRequest & AddMetricGroups(const char *value)
void SetResourceCreationLimitPolicy(const ResourceCreationLimitPolicy &value)
UpdateFleetAttributesRequest & WithDescription(Aws::String &&value)
UpdateFleetAttributesRequest & WithMetricGroups(Aws::Vector< Aws::String > &&value)
UpdateFleetAttributesRequest & WithFleetId(const char *value)
UpdateFleetAttributesRequest & WithAnywhereConfiguration(const AnywhereConfiguration &value)
UpdateFleetAttributesRequest & WithFleetId(Aws::String &&value)
UpdateFleetAttributesRequest & WithDescription(const Aws::String &value)
const Aws::Vector< Aws::String > & GetMetricGroups() const
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateFleetAttributesRequest & WithResourceCreationLimitPolicy(ResourceCreationLimitPolicy &&value)
UpdateFleetAttributesRequest & WithFleetId(const Aws::String &value)
void SetAnywhereConfiguration(const AnywhereConfiguration &value)
UpdateFleetAttributesRequest & AddMetricGroups(Aws::String &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
UpdateFleetAttributesRequest & AddMetricGroups(const Aws::String &value)
UpdateFleetAttributesRequest & WithNewGameSessionProtectionPolicy(ProtectionPolicy &&value)
UpdateFleetAttributesRequest & WithNewGameSessionProtectionPolicy(const ProtectionPolicy &value)
void SetMetricGroups(const Aws::Vector< Aws::String > &value)
UpdateFleetAttributesRequest & WithAnywhereConfiguration(AnywhereConfiguration &&value)
UpdateFleetAttributesRequest & WithResourceCreationLimitPolicy(const ResourceCreationLimitPolicy &value)
UpdateFleetAttributesRequest & WithName(const char *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