AWS SDK for C++

AWS SDK for C++ Version 1.11.875

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
242 inline const EksConfiguration& GetEksConfiguration() const { return m_eksConfiguration; }
243 inline bool EksConfigurationHasBeenSet() const { return m_eksConfigurationHasBeenSet; }
244 template <typename EksConfigurationT = EksConfiguration>
245 void SetEksConfiguration(EksConfigurationT&& value) {
246 m_eksConfigurationHasBeenSet = true;
247 m_eksConfiguration = std::forward<EksConfigurationT>(value);
248 }
249 template <typename EksConfigurationT = EksConfiguration>
251 SetEksConfiguration(std::forward<EksConfigurationT>(value));
252 return *this;
253 }
255
257
260 inline const Aws::String& GetContext() const { return m_context; }
261 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
262 template <typename ContextT = Aws::String>
263 void SetContext(ContextT&& value) {
264 m_contextHasBeenSet = true;
265 m_context = std::forward<ContextT>(value);
266 }
267 template <typename ContextT = Aws::String>
269 SetContext(std::forward<ContextT>(value));
270 return *this;
271 }
273
275
279 inline const EcsSettings& GetEcsSettings() const { return m_ecsSettings; }
280 inline bool EcsSettingsHasBeenSet() const { return m_ecsSettingsHasBeenSet; }
281 template <typename EcsSettingsT = EcsSettings>
282 void SetEcsSettings(EcsSettingsT&& value) {
283 m_ecsSettingsHasBeenSet = true;
284 m_ecsSettings = std::forward<EcsSettingsT>(value);
285 }
286 template <typename EcsSettingsT = EcsSettings>
288 SetEcsSettings(std::forward<EcsSettingsT>(value));
289 return *this;
290 }
292 private:
293 Aws::String m_computeEnvironmentName;
294
295 CEType m_type{CEType::NOT_SET};
296
297 CEState m_state{CEState::NOT_SET};
298
299 int m_unmanagedvCpus{0};
300
301 ComputeResource m_computeResources;
302
303 Aws::String m_serviceRole;
304
306
307 EksConfiguration m_eksConfiguration;
308
309 Aws::String m_context;
310
311 EcsSettings m_ecsSettings;
312 bool m_computeEnvironmentNameHasBeenSet = false;
313 bool m_typeHasBeenSet = false;
314 bool m_stateHasBeenSet = false;
315 bool m_unmanagedvCpusHasBeenSet = false;
316 bool m_computeResourcesHasBeenSet = false;
317 bool m_serviceRoleHasBeenSet = false;
318 bool m_tagsHasBeenSet = false;
319 bool m_eksConfigurationHasBeenSet = false;
320 bool m_contextHasBeenSet = false;
321 bool m_ecsSettingsHasBeenSet = false;
322};
323
324} // namespace Model
325} // namespace Batch
326} // 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