AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateFleetRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/DeadlineRequest.h>
10#include <aws/deadline/Deadline_EXPORTS.h>
11#include <aws/deadline/model/FleetConfiguration.h>
12#include <aws/deadline/model/HostConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace deadline {
18namespace Model {
19
23 public:
24 AWS_DEADLINE_API UpdateFleetRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateFleet"; }
31
32 AWS_DEADLINE_API Aws::String SerializePayload() const override;
33
35
37
41 inline const Aws::String& GetClientToken() const { return m_clientToken; }
42 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
43 template <typename ClientTokenT = Aws::String>
44 void SetClientToken(ClientTokenT&& value) {
45 m_clientTokenHasBeenSet = true;
46 m_clientToken = std::forward<ClientTokenT>(value);
47 }
48 template <typename ClientTokenT = Aws::String>
49 UpdateFleetRequest& WithClientToken(ClientTokenT&& value) {
50 SetClientToken(std::forward<ClientTokenT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetFarmId() const { return m_farmId; }
60 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
61 template <typename FarmIdT = Aws::String>
62 void SetFarmId(FarmIdT&& value) {
63 m_farmIdHasBeenSet = true;
64 m_farmId = std::forward<FarmIdT>(value);
65 }
66 template <typename FarmIdT = Aws::String>
67 UpdateFleetRequest& WithFarmId(FarmIdT&& value) {
68 SetFarmId(std::forward<FarmIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetFleetId() const { return m_fleetId; }
78 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
79 template <typename FleetIdT = Aws::String>
80 void SetFleetId(FleetIdT&& value) {
81 m_fleetIdHasBeenSet = true;
82 m_fleetId = std::forward<FleetIdT>(value);
83 }
84 template <typename FleetIdT = Aws::String>
85 UpdateFleetRequest& WithFleetId(FleetIdT&& value) {
86 SetFleetId(std::forward<FleetIdT>(value));
87 return *this;
88 }
90
92
98 inline const Aws::String& GetDisplayName() const { return m_displayName; }
99 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
100 template <typename DisplayNameT = Aws::String>
101 void SetDisplayName(DisplayNameT&& value) {
102 m_displayNameHasBeenSet = true;
103 m_displayName = std::forward<DisplayNameT>(value);
104 }
105 template <typename DisplayNameT = Aws::String>
106 UpdateFleetRequest& WithDisplayName(DisplayNameT&& value) {
107 SetDisplayName(std::forward<DisplayNameT>(value));
108 return *this;
109 }
111
113
119 inline const Aws::String& GetDescription() const { return m_description; }
120 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
121 template <typename DescriptionT = Aws::String>
122 void SetDescription(DescriptionT&& value) {
123 m_descriptionHasBeenSet = true;
124 m_description = std::forward<DescriptionT>(value);
125 }
126 template <typename DescriptionT = Aws::String>
127 UpdateFleetRequest& WithDescription(DescriptionT&& value) {
128 SetDescription(std::forward<DescriptionT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
138 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
139 template <typename RoleArnT = Aws::String>
140 void SetRoleArn(RoleArnT&& value) {
141 m_roleArnHasBeenSet = true;
142 m_roleArn = std::forward<RoleArnT>(value);
143 }
144 template <typename RoleArnT = Aws::String>
145 UpdateFleetRequest& WithRoleArn(RoleArnT&& value) {
146 SetRoleArn(std::forward<RoleArnT>(value));
147 return *this;
148 }
150
152
155 inline int GetMinWorkerCount() const { return m_minWorkerCount; }
156 inline bool MinWorkerCountHasBeenSet() const { return m_minWorkerCountHasBeenSet; }
157 inline void SetMinWorkerCount(int value) {
158 m_minWorkerCountHasBeenSet = true;
159 m_minWorkerCount = value;
160 }
162 SetMinWorkerCount(value);
163 return *this;
164 }
166
168
178 inline int GetMaxWorkerCount() const { return m_maxWorkerCount; }
179 inline bool MaxWorkerCountHasBeenSet() const { return m_maxWorkerCountHasBeenSet; }
180 inline void SetMaxWorkerCount(int value) {
181 m_maxWorkerCountHasBeenSet = true;
182 m_maxWorkerCount = value;
183 }
185 SetMaxWorkerCount(value);
186 return *this;
187 }
189
191
194 inline const FleetConfiguration& GetConfiguration() const { return m_configuration; }
195 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
196 template <typename ConfigurationT = FleetConfiguration>
197 void SetConfiguration(ConfigurationT&& value) {
198 m_configurationHasBeenSet = true;
199 m_configuration = std::forward<ConfigurationT>(value);
200 }
201 template <typename ConfigurationT = FleetConfiguration>
202 UpdateFleetRequest& WithConfiguration(ConfigurationT&& value) {
203 SetConfiguration(std::forward<ConfigurationT>(value));
204 return *this;
205 }
207
209
213 inline const HostConfiguration& GetHostConfiguration() const { return m_hostConfiguration; }
214 inline bool HostConfigurationHasBeenSet() const { return m_hostConfigurationHasBeenSet; }
215 template <typename HostConfigurationT = HostConfiguration>
216 void SetHostConfiguration(HostConfigurationT&& value) {
217 m_hostConfigurationHasBeenSet = true;
218 m_hostConfiguration = std::forward<HostConfigurationT>(value);
219 }
220 template <typename HostConfigurationT = HostConfiguration>
221 UpdateFleetRequest& WithHostConfiguration(HostConfigurationT&& value) {
222 SetHostConfiguration(std::forward<HostConfigurationT>(value));
223 return *this;
224 }
226 private:
228
229 Aws::String m_farmId;
230
231 Aws::String m_fleetId;
232
233 Aws::String m_displayName;
234
235 Aws::String m_description;
236
237 Aws::String m_roleArn;
238
239 int m_minWorkerCount{0};
240
241 int m_maxWorkerCount{0};
242
243 FleetConfiguration m_configuration;
244
245 HostConfiguration m_hostConfiguration;
246 bool m_clientTokenHasBeenSet = true;
247 bool m_farmIdHasBeenSet = false;
248 bool m_fleetIdHasBeenSet = false;
249 bool m_displayNameHasBeenSet = false;
250 bool m_descriptionHasBeenSet = false;
251 bool m_roleArnHasBeenSet = false;
252 bool m_minWorkerCountHasBeenSet = false;
253 bool m_maxWorkerCountHasBeenSet = false;
254 bool m_configurationHasBeenSet = false;
255 bool m_hostConfigurationHasBeenSet = false;
256};
257
258} // namespace Model
259} // namespace deadline
260} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
UpdateFleetRequest & WithMaxWorkerCount(int value)
const Aws::String & GetDisplayName() const
UpdateFleetRequest & WithClientToken(ClientTokenT &&value)
UpdateFleetRequest & WithHostConfiguration(HostConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
void SetConfiguration(ConfigurationT &&value)
void SetHostConfiguration(HostConfigurationT &&value)
UpdateFleetRequest & WithMinWorkerCount(int value)
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const HostConfiguration & GetHostConfiguration() const
UpdateFleetRequest & WithRoleArn(RoleArnT &&value)
UpdateFleetRequest & WithFarmId(FarmIdT &&value)
const Aws::String & GetClientToken() const
UpdateFleetRequest & WithFleetId(FleetIdT &&value)
AWS_DEADLINE_API Aws::String SerializePayload() const override
UpdateFleetRequest & WithDisplayName(DisplayNameT &&value)
UpdateFleetRequest & WithConfiguration(ConfigurationT &&value)
UpdateFleetRequest & WithDescription(DescriptionT &&value)
const FleetConfiguration & GetConfiguration() const
AWS_DEADLINE_API UpdateFleetRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String