AWS SDK for C++

AWS SDK for C++ Version 1.11.909

Loading...
Searching...
No Matches
CreateComputeEnvironmentRequest.h
1
6#pragma once
7#include <aws/batch/BatchRequest.h>
8#include <aws/batch/Batch_EXPORTS.h>
9#include <aws/batch/model/CEState.h>
10#include <aws/batch/model/CEType.h>
11#include <aws/batch/model/ComputeResource.h>
12#include <aws/batch/model/EcsSettings.h>
13#include <aws/batch/model/EksConfiguration.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Batch {
21namespace Model {
22
30 public:
31 AWS_BATCH_API CreateComputeEnvironmentRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateComputeEnvironment"; }
38
39 AWS_BATCH_API Aws::String SerializePayload() const override;
40
42
47 inline const Aws::String& GetComputeEnvironmentName() const { return m_computeEnvironmentName; }
48 inline bool ComputeEnvironmentNameHasBeenSet() const { return m_computeEnvironmentNameHasBeenSet; }
49 template <typename ComputeEnvironmentNameT = Aws::String>
50 void SetComputeEnvironmentName(ComputeEnvironmentNameT&& value) {
51 m_computeEnvironmentNameHasBeenSet = true;
52 m_computeEnvironmentName = std::forward<ComputeEnvironmentNameT>(value);
53 }
54 template <typename ComputeEnvironmentNameT = Aws::String>
56 SetComputeEnvironmentName(std::forward<ComputeEnvironmentNameT>(value));
57 return *this;
58 }
60
62
68 inline CEType GetType() const { return m_type; }
69 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
70 inline void SetType(CEType value) {
71 m_typeHasBeenSet = true;
72 m_type = value;
73 }
75 SetType(value);
76 return *this;
77 }
79
81
104 inline CEState GetState() const { return m_state; }
105 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
106 inline void SetState(CEState value) {
107 m_stateHasBeenSet = true;
108 m_state = value;
109 }
111 SetState(value);
112 return *this;
113 }
115
117
125 inline int GetUnmanagedvCpus() const { return m_unmanagedvCpus; }
126 inline bool UnmanagedvCpusHasBeenSet() const { return m_unmanagedvCpusHasBeenSet; }
127 inline void SetUnmanagedvCpus(int value) {
128 m_unmanagedvCpusHasBeenSet = true;
129 m_unmanagedvCpus = value;
130 }
132 SetUnmanagedvCpus(value);
133 return *this;
134 }
136
138
145 inline const ComputeResource& GetComputeResources() const { return m_computeResources; }
146 inline bool ComputeResourcesHasBeenSet() const { return m_computeResourcesHasBeenSet; }
147 template <typename ComputeResourcesT = ComputeResource>
148 void SetComputeResources(ComputeResourcesT&& value) {
149 m_computeResourcesHasBeenSet = true;
150 m_computeResources = std::forward<ComputeResourcesT>(value);
151 }
152 template <typename ComputeResourcesT = ComputeResource>
154 SetComputeResources(std::forward<ComputeResourcesT>(value));
155 return *this;
156 }
158
160
187 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
188 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
189 template <typename ServiceRoleT = Aws::String>
190 void SetServiceRole(ServiceRoleT&& value) {
191 m_serviceRoleHasBeenSet = true;
192 m_serviceRole = std::forward<ServiceRoleT>(value);
193 }
194 template <typename ServiceRoleT = Aws::String>
196 SetServiceRole(std::forward<ServiceRoleT>(value));
197 return *this;
198 }
200
202
215 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
216 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
217 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
218 void SetTags(TagsT&& value) {
219 m_tagsHasBeenSet = true;
220 m_tags = std::forward<TagsT>(value);
221 }
222 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
224 SetTags(std::forward<TagsT>(value));
225 return *this;
226 }
227 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
228 CreateComputeEnvironmentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
229 m_tagsHasBeenSet = true;
230 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
231 return *this;
232 }
234
236
245 inline const EksConfiguration& GetEksConfiguration() const { return m_eksConfiguration; }
246 inline bool EksConfigurationHasBeenSet() const { return m_eksConfigurationHasBeenSet; }
247 template <typename EksConfigurationT = EksConfiguration>
248 void SetEksConfiguration(EksConfigurationT&& value) {
249 m_eksConfigurationHasBeenSet = true;
250 m_eksConfiguration = std::forward<EksConfigurationT>(value);
251 }
252 template <typename EksConfigurationT = EksConfiguration>
254 SetEksConfiguration(std::forward<EksConfigurationT>(value));
255 return *this;
256 }
258
260
263 inline const Aws::String& GetContext() const { return m_context; }
264 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
265 template <typename ContextT = Aws::String>
266 void SetContext(ContextT&& value) {
267 m_contextHasBeenSet = true;
268 m_context = std::forward<ContextT>(value);
269 }
270 template <typename ContextT = Aws::String>
272 SetContext(std::forward<ContextT>(value));
273 return *this;
274 }
276
278
282 inline const EcsSettings& GetEcsSettings() const { return m_ecsSettings; }
283 inline bool EcsSettingsHasBeenSet() const { return m_ecsSettingsHasBeenSet; }
284 template <typename EcsSettingsT = EcsSettings>
285 void SetEcsSettings(EcsSettingsT&& value) {
286 m_ecsSettingsHasBeenSet = true;
287 m_ecsSettings = std::forward<EcsSettingsT>(value);
288 }
289 template <typename EcsSettingsT = EcsSettings>
291 SetEcsSettings(std::forward<EcsSettingsT>(value));
292 return *this;
293 }
295 private:
296 Aws::String m_computeEnvironmentName;
297
298 CEType m_type{CEType::NOT_SET};
299
300 CEState m_state{CEState::NOT_SET};
301
302 int m_unmanagedvCpus{0};
303
304 ComputeResource m_computeResources;
305
306 Aws::String m_serviceRole;
307
309
310 EksConfiguration m_eksConfiguration;
311
312 Aws::String m_context;
313
314 EcsSettings m_ecsSettings;
315 bool m_computeEnvironmentNameHasBeenSet = false;
316 bool m_typeHasBeenSet = false;
317 bool m_stateHasBeenSet = false;
318 bool m_unmanagedvCpusHasBeenSet = false;
319 bool m_computeResourcesHasBeenSet = false;
320 bool m_serviceRoleHasBeenSet = false;
321 bool m_tagsHasBeenSet = false;
322 bool m_eksConfigurationHasBeenSet = false;
323 bool m_contextHasBeenSet = false;
324 bool m_ecsSettingsHasBeenSet = false;
325};
326
327} // namespace Model
328} // namespace Batch
329} // namespace Aws
CreateComputeEnvironmentRequest & WithTags(TagsT &&value)
CreateComputeEnvironmentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateComputeEnvironmentRequest & WithServiceRole(ServiceRoleT &&value)
CreateComputeEnvironmentRequest & WithUnmanagedvCpus(int value)
CreateComputeEnvironmentRequest & WithState(CEState value)
CreateComputeEnvironmentRequest & WithContext(ContextT &&value)
CreateComputeEnvironmentRequest & WithType(CEType value)
CreateComputeEnvironmentRequest & WithEcsSettings(EcsSettingsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateComputeEnvironmentRequest & WithComputeEnvironmentName(ComputeEnvironmentNameT &&value)
CreateComputeEnvironmentRequest & WithComputeResources(ComputeResourcesT &&value)
AWS_BATCH_API Aws::String SerializePayload() const override
CreateComputeEnvironmentRequest & WithEksConfiguration(EksConfigurationT &&value)
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