AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
CreateFleetRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/deadline/DeadlineRequest.h>
11#include <aws/deadline/Deadline_EXPORTS.h>
12#include <aws/deadline/model/FleetConfiguration.h>
13#include <aws/deadline/model/HostConfiguration.h>
14
15#include <utility>
16
17namespace Aws {
18namespace deadline {
19namespace Model {
20
29 public:
30 AWS_DEADLINE_API CreateFleetRequest() = default;
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 "CreateFleet"; }
37
38 AWS_DEADLINE_API Aws::String SerializePayload() const override;
39
41
43
46 inline const Aws::String& GetFarmId() const { return m_farmId; }
47 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
48 template <typename FarmIdT = Aws::String>
49 void SetFarmId(FarmIdT&& value) {
50 m_farmIdHasBeenSet = true;
51 m_farmId = std::forward<FarmIdT>(value);
52 }
53 template <typename FarmIdT = Aws::String>
54 CreateFleetRequest& WithFarmId(FarmIdT&& value) {
55 SetFarmId(std::forward<FarmIdT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetClientToken() const { return m_clientToken; }
66 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
67 template <typename ClientTokenT = Aws::String>
68 void SetClientToken(ClientTokenT&& value) {
69 m_clientTokenHasBeenSet = true;
70 m_clientToken = std::forward<ClientTokenT>(value);
71 }
72 template <typename ClientTokenT = Aws::String>
73 CreateFleetRequest& WithClientToken(ClientTokenT&& value) {
74 SetClientToken(std::forward<ClientTokenT>(value));
75 return *this;
76 }
78
80
85 inline const Aws::String& GetDisplayName() const { return m_displayName; }
86 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
87 template <typename DisplayNameT = Aws::String>
88 void SetDisplayName(DisplayNameT&& value) {
89 m_displayNameHasBeenSet = true;
90 m_displayName = std::forward<DisplayNameT>(value);
91 }
92 template <typename DisplayNameT = Aws::String>
93 CreateFleetRequest& WithDisplayName(DisplayNameT&& value) {
94 SetDisplayName(std::forward<DisplayNameT>(value));
95 return *this;
96 }
98
100
105 inline const Aws::String& GetDescription() const { return m_description; }
106 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
107 template <typename DescriptionT = Aws::String>
108 void SetDescription(DescriptionT&& value) {
109 m_descriptionHasBeenSet = true;
110 m_description = std::forward<DescriptionT>(value);
111 }
112 template <typename DescriptionT = Aws::String>
113 CreateFleetRequest& WithDescription(DescriptionT&& value) {
114 SetDescription(std::forward<DescriptionT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
124 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
125 template <typename RoleArnT = Aws::String>
126 void SetRoleArn(RoleArnT&& value) {
127 m_roleArnHasBeenSet = true;
128 m_roleArn = std::forward<RoleArnT>(value);
129 }
130 template <typename RoleArnT = Aws::String>
131 CreateFleetRequest& WithRoleArn(RoleArnT&& value) {
132 SetRoleArn(std::forward<RoleArnT>(value));
133 return *this;
134 }
136
138
141 inline int GetMinWorkerCount() const { return m_minWorkerCount; }
142 inline bool MinWorkerCountHasBeenSet() const { return m_minWorkerCountHasBeenSet; }
143 inline void SetMinWorkerCount(int value) {
144 m_minWorkerCountHasBeenSet = true;
145 m_minWorkerCount = value;
146 }
148 SetMinWorkerCount(value);
149 return *this;
150 }
152
154
164 inline int GetMaxWorkerCount() const { return m_maxWorkerCount; }
165 inline bool MaxWorkerCountHasBeenSet() const { return m_maxWorkerCountHasBeenSet; }
166 inline void SetMaxWorkerCount(int value) {
167 m_maxWorkerCountHasBeenSet = true;
168 m_maxWorkerCount = value;
169 }
171 SetMaxWorkerCount(value);
172 return *this;
173 }
175
177
182 inline const FleetConfiguration& GetConfiguration() const { return m_configuration; }
183 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
184 template <typename ConfigurationT = FleetConfiguration>
185 void SetConfiguration(ConfigurationT&& value) {
186 m_configurationHasBeenSet = true;
187 m_configuration = std::forward<ConfigurationT>(value);
188 }
189 template <typename ConfigurationT = FleetConfiguration>
190 CreateFleetRequest& WithConfiguration(ConfigurationT&& value) {
191 SetConfiguration(std::forward<ConfigurationT>(value));
192 return *this;
193 }
195
197
201 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
202 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
203 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
204 void SetTags(TagsT&& value) {
205 m_tagsHasBeenSet = true;
206 m_tags = std::forward<TagsT>(value);
207 }
208 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
209 CreateFleetRequest& WithTags(TagsT&& value) {
210 SetTags(std::forward<TagsT>(value));
211 return *this;
212 }
213 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
214 CreateFleetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
215 m_tagsHasBeenSet = true;
216 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
217 return *this;
218 }
220
222
226 inline const HostConfiguration& GetHostConfiguration() const { return m_hostConfiguration; }
227 inline bool HostConfigurationHasBeenSet() const { return m_hostConfigurationHasBeenSet; }
228 template <typename HostConfigurationT = HostConfiguration>
229 void SetHostConfiguration(HostConfigurationT&& value) {
230 m_hostConfigurationHasBeenSet = true;
231 m_hostConfiguration = std::forward<HostConfigurationT>(value);
232 }
233 template <typename HostConfigurationT = HostConfiguration>
234 CreateFleetRequest& WithHostConfiguration(HostConfigurationT&& value) {
235 SetHostConfiguration(std::forward<HostConfigurationT>(value));
236 return *this;
237 }
239 private:
240 Aws::String m_farmId;
241
243
244 Aws::String m_displayName;
245
246 Aws::String m_description;
247
248 Aws::String m_roleArn;
249
250 int m_minWorkerCount{0};
251
252 int m_maxWorkerCount{0};
253
254 FleetConfiguration m_configuration;
255
257
258 HostConfiguration m_hostConfiguration;
259 bool m_farmIdHasBeenSet = false;
260 bool m_clientTokenHasBeenSet = true;
261 bool m_displayNameHasBeenSet = false;
262 bool m_descriptionHasBeenSet = false;
263 bool m_roleArnHasBeenSet = false;
264 bool m_minWorkerCountHasBeenSet = false;
265 bool m_maxWorkerCountHasBeenSet = false;
266 bool m_configurationHasBeenSet = false;
267 bool m_tagsHasBeenSet = false;
268 bool m_hostConfigurationHasBeenSet = false;
269};
270
271} // namespace Model
272} // namespace deadline
273} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateFleetRequest & WithDisplayName(DisplayNameT &&value)
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateFleetRequest & WithFarmId(FarmIdT &&value)
CreateFleetRequest & WithDescription(DescriptionT &&value)
CreateFleetRequest & WithHostConfiguration(HostConfigurationT &&value)
CreateFleetRequest & WithRoleArn(RoleArnT &&value)
CreateFleetRequest & WithMinWorkerCount(int value)
CreateFleetRequest & WithTags(TagsT &&value)
CreateFleetRequest & WithMaxWorkerCount(int value)
virtual const char * GetServiceRequestName() const override
CreateFleetRequest & WithClientToken(ClientTokenT &&value)
AWS_DEADLINE_API Aws::String SerializePayload() const override
const Aws::String & GetDisplayName() const
const Aws::String & GetClientToken() const
const HostConfiguration & GetHostConfiguration() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetConfiguration(ConfigurationT &&value)
AWS_DEADLINE_API CreateFleetRequest()=default
void SetHostConfiguration(HostConfigurationT &&value)
const FleetConfiguration & GetConfiguration() const
CreateFleetRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateFleetRequest & WithConfiguration(ConfigurationT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String