AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
24 public:
25 AWS_DEADLINE_API CreateFleetRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateFleet"; }
32
33 AWS_DEADLINE_API Aws::String SerializePayload() const override;
34
36
38
42 inline const Aws::String& GetClientToken() const { return m_clientToken; }
43 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
44 template <typename ClientTokenT = Aws::String>
45 void SetClientToken(ClientTokenT&& value) {
46 m_clientTokenHasBeenSet = true;
47 m_clientToken = std::forward<ClientTokenT>(value);
48 }
49 template <typename ClientTokenT = Aws::String>
50 CreateFleetRequest& WithClientToken(ClientTokenT&& value) {
51 SetClientToken(std::forward<ClientTokenT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetFarmId() const { return m_farmId; }
61 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
62 template <typename FarmIdT = Aws::String>
63 void SetFarmId(FarmIdT&& value) {
64 m_farmIdHasBeenSet = true;
65 m_farmId = std::forward<FarmIdT>(value);
66 }
67 template <typename FarmIdT = Aws::String>
68 CreateFleetRequest& WithFarmId(FarmIdT&& value) {
69 SetFarmId(std::forward<FarmIdT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetDisplayName() const { return m_displayName; }
81 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
82 template <typename DisplayNameT = Aws::String>
83 void SetDisplayName(DisplayNameT&& value) {
84 m_displayNameHasBeenSet = true;
85 m_displayName = std::forward<DisplayNameT>(value);
86 }
87 template <typename DisplayNameT = Aws::String>
88 CreateFleetRequest& WithDisplayName(DisplayNameT&& value) {
89 SetDisplayName(std::forward<DisplayNameT>(value));
90 return *this;
91 }
93
95
100 inline const Aws::String& GetDescription() const { return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 template <typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) {
104 m_descriptionHasBeenSet = true;
105 m_description = std::forward<DescriptionT>(value);
106 }
107 template <typename DescriptionT = Aws::String>
108 CreateFleetRequest& WithDescription(DescriptionT&& value) {
109 SetDescription(std::forward<DescriptionT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
119 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
120 template <typename RoleArnT = Aws::String>
121 void SetRoleArn(RoleArnT&& value) {
122 m_roleArnHasBeenSet = true;
123 m_roleArn = std::forward<RoleArnT>(value);
124 }
125 template <typename RoleArnT = Aws::String>
126 CreateFleetRequest& WithRoleArn(RoleArnT&& value) {
127 SetRoleArn(std::forward<RoleArnT>(value));
128 return *this;
129 }
131
133
136 inline int GetMinWorkerCount() const { return m_minWorkerCount; }
137 inline bool MinWorkerCountHasBeenSet() const { return m_minWorkerCountHasBeenSet; }
138 inline void SetMinWorkerCount(int value) {
139 m_minWorkerCountHasBeenSet = true;
140 m_minWorkerCount = value;
141 }
143 SetMinWorkerCount(value);
144 return *this;
145 }
147
149
159 inline int GetMaxWorkerCount() const { return m_maxWorkerCount; }
160 inline bool MaxWorkerCountHasBeenSet() const { return m_maxWorkerCountHasBeenSet; }
161 inline void SetMaxWorkerCount(int value) {
162 m_maxWorkerCountHasBeenSet = true;
163 m_maxWorkerCount = value;
164 }
166 SetMaxWorkerCount(value);
167 return *this;
168 }
170
172
177 inline const FleetConfiguration& GetConfiguration() const { return m_configuration; }
178 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
179 template <typename ConfigurationT = FleetConfiguration>
180 void SetConfiguration(ConfigurationT&& value) {
181 m_configurationHasBeenSet = true;
182 m_configuration = std::forward<ConfigurationT>(value);
183 }
184 template <typename ConfigurationT = FleetConfiguration>
185 CreateFleetRequest& WithConfiguration(ConfigurationT&& value) {
186 SetConfiguration(std::forward<ConfigurationT>(value));
187 return *this;
188 }
190
192
196 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
197 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
198 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
199 void SetTags(TagsT&& value) {
200 m_tagsHasBeenSet = true;
201 m_tags = std::forward<TagsT>(value);
202 }
203 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
204 CreateFleetRequest& WithTags(TagsT&& value) {
205 SetTags(std::forward<TagsT>(value));
206 return *this;
207 }
208 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
209 CreateFleetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
210 m_tagsHasBeenSet = true;
211 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
212 return *this;
213 }
215
217
221 inline const HostConfiguration& GetHostConfiguration() const { return m_hostConfiguration; }
222 inline bool HostConfigurationHasBeenSet() const { return m_hostConfigurationHasBeenSet; }
223 template <typename HostConfigurationT = HostConfiguration>
224 void SetHostConfiguration(HostConfigurationT&& value) {
225 m_hostConfigurationHasBeenSet = true;
226 m_hostConfiguration = std::forward<HostConfigurationT>(value);
227 }
228 template <typename HostConfigurationT = HostConfiguration>
229 CreateFleetRequest& WithHostConfiguration(HostConfigurationT&& value) {
230 SetHostConfiguration(std::forward<HostConfigurationT>(value));
231 return *this;
232 }
234 private:
236
237 Aws::String m_farmId;
238
239 Aws::String m_displayName;
240
241 Aws::String m_description;
242
243 Aws::String m_roleArn;
244
245 int m_minWorkerCount{0};
246
247 int m_maxWorkerCount{0};
248
249 FleetConfiguration m_configuration;
250
252
253 HostConfiguration m_hostConfiguration;
254 bool m_clientTokenHasBeenSet = true;
255 bool m_farmIdHasBeenSet = false;
256 bool m_displayNameHasBeenSet = false;
257 bool m_descriptionHasBeenSet = false;
258 bool m_roleArnHasBeenSet = false;
259 bool m_minWorkerCountHasBeenSet = false;
260 bool m_maxWorkerCountHasBeenSet = false;
261 bool m_configurationHasBeenSet = false;
262 bool m_tagsHasBeenSet = false;
263 bool m_hostConfigurationHasBeenSet = false;
264};
265
266} // namespace Model
267} // namespace deadline
268} // 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