AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename FleetIdT = Aws::String>
49 void SetFleetId(FleetIdT&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::forward<FleetIdT>(value); }
50 template<typename FleetIdT = Aws::String>
51 UpdateFleetAttributesRequest& WithFleetId(FleetIdT&& value) { SetFleetId(std::forward<FleetIdT>(value)); return *this;}
53
55
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 UpdateFleetAttributesRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline const Aws::String& GetDescription() const { return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 template<typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
75 template<typename DescriptionT = Aws::String>
76 UpdateFleetAttributesRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
78
80
90 inline ProtectionPolicy GetNewGameSessionProtectionPolicy() const { return m_newGameSessionProtectionPolicy; }
91 inline bool NewGameSessionProtectionPolicyHasBeenSet() const { return m_newGameSessionProtectionPolicyHasBeenSet; }
92 inline void SetNewGameSessionProtectionPolicy(ProtectionPolicy value) { m_newGameSessionProtectionPolicyHasBeenSet = true; m_newGameSessionProtectionPolicy = value; }
95
97
101 inline const ResourceCreationLimitPolicy& GetResourceCreationLimitPolicy() const { return m_resourceCreationLimitPolicy; }
102 inline bool ResourceCreationLimitPolicyHasBeenSet() const { return m_resourceCreationLimitPolicyHasBeenSet; }
103 template<typename ResourceCreationLimitPolicyT = ResourceCreationLimitPolicy>
104 void SetResourceCreationLimitPolicy(ResourceCreationLimitPolicyT&& value) { m_resourceCreationLimitPolicyHasBeenSet = true; m_resourceCreationLimitPolicy = std::forward<ResourceCreationLimitPolicyT>(value); }
105 template<typename ResourceCreationLimitPolicyT = ResourceCreationLimitPolicy>
106 UpdateFleetAttributesRequest& WithResourceCreationLimitPolicy(ResourceCreationLimitPolicyT&& value) { SetResourceCreationLimitPolicy(std::forward<ResourceCreationLimitPolicyT>(value)); return *this;}
108
110
116 inline const Aws::Vector<Aws::String>& GetMetricGroups() const { return m_metricGroups; }
117 inline bool MetricGroupsHasBeenSet() const { return m_metricGroupsHasBeenSet; }
118 template<typename MetricGroupsT = Aws::Vector<Aws::String>>
119 void SetMetricGroups(MetricGroupsT&& value) { m_metricGroupsHasBeenSet = true; m_metricGroups = std::forward<MetricGroupsT>(value); }
120 template<typename MetricGroupsT = Aws::Vector<Aws::String>>
121 UpdateFleetAttributesRequest& WithMetricGroups(MetricGroupsT&& value) { SetMetricGroups(std::forward<MetricGroupsT>(value)); return *this;}
122 template<typename MetricGroupsT = Aws::String>
123 UpdateFleetAttributesRequest& AddMetricGroups(MetricGroupsT&& value) { m_metricGroupsHasBeenSet = true; m_metricGroups.emplace_back(std::forward<MetricGroupsT>(value)); return *this; }
125
127
130 inline const AnywhereConfiguration& GetAnywhereConfiguration() const { return m_anywhereConfiguration; }
131 inline bool AnywhereConfigurationHasBeenSet() const { return m_anywhereConfigurationHasBeenSet; }
132 template<typename AnywhereConfigurationT = AnywhereConfiguration>
133 void SetAnywhereConfiguration(AnywhereConfigurationT&& value) { m_anywhereConfigurationHasBeenSet = true; m_anywhereConfiguration = std::forward<AnywhereConfigurationT>(value); }
134 template<typename AnywhereConfigurationT = AnywhereConfiguration>
135 UpdateFleetAttributesRequest& WithAnywhereConfiguration(AnywhereConfigurationT&& value) { SetAnywhereConfiguration(std::forward<AnywhereConfigurationT>(value)); return *this;}
137 private:
138
139 Aws::String m_fleetId;
140 bool m_fleetIdHasBeenSet = false;
141
142 Aws::String m_name;
143 bool m_nameHasBeenSet = false;
144
145 Aws::String m_description;
146 bool m_descriptionHasBeenSet = false;
147
148 ProtectionPolicy m_newGameSessionProtectionPolicy{ProtectionPolicy::NOT_SET};
149 bool m_newGameSessionProtectionPolicyHasBeenSet = false;
150
151 ResourceCreationLimitPolicy m_resourceCreationLimitPolicy;
152 bool m_resourceCreationLimitPolicyHasBeenSet = false;
153
154 Aws::Vector<Aws::String> m_metricGroups;
155 bool m_metricGroupsHasBeenSet = false;
156
157 AnywhereConfiguration m_anywhereConfiguration;
158 bool m_anywhereConfigurationHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace GameLift
163} // 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