AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
ComputeEnvironmentDetail.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/CEState.h>
9#include <aws/batch/model/CEStatus.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/batch/model/OrchestrationType.h>
15#include <aws/batch/model/UpdatePolicy.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
17#include <aws/core/utils/memory/stl/AWSString.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Batch {
29namespace Model {
30
38 public:
39 AWS_BATCH_API ComputeEnvironmentDetail() = default;
42 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
50 inline const Aws::String& GetComputeEnvironmentName() const { return m_computeEnvironmentName; }
51 inline bool ComputeEnvironmentNameHasBeenSet() const { return m_computeEnvironmentNameHasBeenSet; }
52 template <typename ComputeEnvironmentNameT = Aws::String>
53 void SetComputeEnvironmentName(ComputeEnvironmentNameT&& value) {
54 m_computeEnvironmentNameHasBeenSet = true;
55 m_computeEnvironmentName = std::forward<ComputeEnvironmentNameT>(value);
56 }
57 template <typename ComputeEnvironmentNameT = Aws::String>
58 ComputeEnvironmentDetail& WithComputeEnvironmentName(ComputeEnvironmentNameT&& value) {
59 SetComputeEnvironmentName(std::forward<ComputeEnvironmentNameT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetComputeEnvironmentArn() const { return m_computeEnvironmentArn; }
69 inline bool ComputeEnvironmentArnHasBeenSet() const { return m_computeEnvironmentArnHasBeenSet; }
70 template <typename ComputeEnvironmentArnT = Aws::String>
71 void SetComputeEnvironmentArn(ComputeEnvironmentArnT&& value) {
72 m_computeEnvironmentArnHasBeenSet = true;
73 m_computeEnvironmentArn = std::forward<ComputeEnvironmentArnT>(value);
74 }
75 template <typename ComputeEnvironmentArnT = Aws::String>
76 ComputeEnvironmentDetail& WithComputeEnvironmentArn(ComputeEnvironmentArnT&& value) {
77 SetComputeEnvironmentArn(std::forward<ComputeEnvironmentArnT>(value));
78 return *this;
79 }
81
83
87 inline int GetUnmanagedvCpus() const { return m_unmanagedvCpus; }
88 inline bool UnmanagedvCpusHasBeenSet() const { return m_unmanagedvCpusHasBeenSet; }
89 inline void SetUnmanagedvCpus(int value) {
90 m_unmanagedvCpusHasBeenSet = true;
91 m_unmanagedvCpus = value;
92 }
94 SetUnmanagedvCpus(value);
95 return *this;
96 }
98
100
104 inline const Aws::String& GetEcsClusterArn() const { return m_ecsClusterArn; }
105 inline bool EcsClusterArnHasBeenSet() const { return m_ecsClusterArnHasBeenSet; }
106 template <typename EcsClusterArnT = Aws::String>
107 void SetEcsClusterArn(EcsClusterArnT&& value) {
108 m_ecsClusterArnHasBeenSet = true;
109 m_ecsClusterArn = std::forward<EcsClusterArnT>(value);
110 }
111 template <typename EcsClusterArnT = Aws::String>
113 SetEcsClusterArn(std::forward<EcsClusterArnT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
123 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
124 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
125 void SetTags(TagsT&& value) {
126 m_tagsHasBeenSet = true;
127 m_tags = std::forward<TagsT>(value);
128 }
129 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
131 SetTags(std::forward<TagsT>(value));
132 return *this;
133 }
134 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
135 ComputeEnvironmentDetail& AddTags(TagsKeyT&& key, TagsValueT&& value) {
136 m_tagsHasBeenSet = true;
137 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
138 return *this;
139 }
141
143
149 inline CEType GetType() const { return m_type; }
150 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
151 inline void SetType(CEType value) {
152 m_typeHasBeenSet = true;
153 m_type = value;
154 }
156 SetType(value);
157 return *this;
158 }
160
162
183 inline CEState GetState() const { return m_state; }
184 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
185 inline void SetState(CEState value) {
186 m_stateHasBeenSet = true;
187 m_state = value;
188 }
190 SetState(value);
191 return *this;
192 }
194
196
200 inline CEStatus GetStatus() const { return m_status; }
201 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
202 inline void SetStatus(CEStatus value) {
203 m_statusHasBeenSet = true;
204 m_status = value;
205 }
207 SetStatus(value);
208 return *this;
209 }
211
213
217 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
218 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
219 template <typename StatusReasonT = Aws::String>
220 void SetStatusReason(StatusReasonT&& value) {
221 m_statusReasonHasBeenSet = true;
222 m_statusReason = std::forward<StatusReasonT>(value);
223 }
224 template <typename StatusReasonT = Aws::String>
226 SetStatusReason(std::forward<StatusReasonT>(value));
227 return *this;
228 }
230
232
238 inline const ComputeResource& GetComputeResources() const { return m_computeResources; }
239 inline bool ComputeResourcesHasBeenSet() const { return m_computeResourcesHasBeenSet; }
240 template <typename ComputeResourcesT = ComputeResource>
241 void SetComputeResources(ComputeResourcesT&& value) {
242 m_computeResourcesHasBeenSet = true;
243 m_computeResources = std::forward<ComputeResourcesT>(value);
244 }
245 template <typename ComputeResourcesT = ComputeResource>
246 ComputeEnvironmentDetail& WithComputeResources(ComputeResourcesT&& value) {
247 SetComputeResources(std::forward<ComputeResourcesT>(value));
248 return *this;
249 }
251
253
260 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
261 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
262 template <typename ServiceRoleT = Aws::String>
263 void SetServiceRole(ServiceRoleT&& value) {
264 m_serviceRoleHasBeenSet = true;
265 m_serviceRole = std::forward<ServiceRoleT>(value);
266 }
267 template <typename ServiceRoleT = Aws::String>
269 SetServiceRole(std::forward<ServiceRoleT>(value));
270 return *this;
271 }
273
275
281 inline const UpdatePolicy& GetUpdatePolicy() const { return m_updatePolicy; }
282 inline bool UpdatePolicyHasBeenSet() const { return m_updatePolicyHasBeenSet; }
283 template <typename UpdatePolicyT = UpdatePolicy>
284 void SetUpdatePolicy(UpdatePolicyT&& value) {
285 m_updatePolicyHasBeenSet = true;
286 m_updatePolicy = std::forward<UpdatePolicyT>(value);
287 }
288 template <typename UpdatePolicyT = UpdatePolicy>
290 SetUpdatePolicy(std::forward<UpdatePolicyT>(value));
291 return *this;
292 }
294
296
301 inline const EksConfiguration& GetEksConfiguration() const { return m_eksConfiguration; }
302 inline bool EksConfigurationHasBeenSet() const { return m_eksConfigurationHasBeenSet; }
303 template <typename EksConfigurationT = EksConfiguration>
304 void SetEksConfiguration(EksConfigurationT&& value) {
305 m_eksConfigurationHasBeenSet = true;
306 m_eksConfiguration = std::forward<EksConfigurationT>(value);
307 }
308 template <typename EksConfigurationT = EksConfiguration>
309 ComputeEnvironmentDetail& WithEksConfiguration(EksConfigurationT&& value) {
310 SetEksConfiguration(std::forward<EksConfigurationT>(value));
311 return *this;
312 }
314
316
320 inline OrchestrationType GetContainerOrchestrationType() const { return m_containerOrchestrationType; }
321 inline bool ContainerOrchestrationTypeHasBeenSet() const { return m_containerOrchestrationTypeHasBeenSet; }
323 m_containerOrchestrationTypeHasBeenSet = true;
324 m_containerOrchestrationType = value;
325 }
328 return *this;
329 }
331
333
336 inline const Aws::String& GetUuid() const { return m_uuid; }
337 inline bool UuidHasBeenSet() const { return m_uuidHasBeenSet; }
338 template <typename UuidT = Aws::String>
339 void SetUuid(UuidT&& value) {
340 m_uuidHasBeenSet = true;
341 m_uuid = std::forward<UuidT>(value);
342 }
343 template <typename UuidT = Aws::String>
345 SetUuid(std::forward<UuidT>(value));
346 return *this;
347 }
349
351
354 inline const Aws::String& GetContext() const { return m_context; }
355 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
356 template <typename ContextT = Aws::String>
357 void SetContext(ContextT&& value) {
358 m_contextHasBeenSet = true;
359 m_context = std::forward<ContextT>(value);
360 }
361 template <typename ContextT = Aws::String>
363 SetContext(std::forward<ContextT>(value));
364 return *this;
365 }
367
369
373 inline const EcsSettings& GetEcsSettings() const { return m_ecsSettings; }
374 inline bool EcsSettingsHasBeenSet() const { return m_ecsSettingsHasBeenSet; }
375 template <typename EcsSettingsT = EcsSettings>
376 void SetEcsSettings(EcsSettingsT&& value) {
377 m_ecsSettingsHasBeenSet = true;
378 m_ecsSettings = std::forward<EcsSettingsT>(value);
379 }
380 template <typename EcsSettingsT = EcsSettings>
382 SetEcsSettings(std::forward<EcsSettingsT>(value));
383 return *this;
384 }
386 private:
387 Aws::String m_computeEnvironmentName;
388
389 Aws::String m_computeEnvironmentArn;
390
391 int m_unmanagedvCpus{0};
392
393 Aws::String m_ecsClusterArn;
394
396
397 CEType m_type{CEType::NOT_SET};
398
399 CEState m_state{CEState::NOT_SET};
400
401 CEStatus m_status{CEStatus::NOT_SET};
402
403 Aws::String m_statusReason;
404
405 ComputeResource m_computeResources;
406
407 Aws::String m_serviceRole;
408
409 UpdatePolicy m_updatePolicy;
410
411 EksConfiguration m_eksConfiguration;
412
413 OrchestrationType m_containerOrchestrationType{OrchestrationType::NOT_SET};
414
415 Aws::String m_uuid;
416
417 Aws::String m_context;
418
419 EcsSettings m_ecsSettings;
420 bool m_computeEnvironmentNameHasBeenSet = false;
421 bool m_computeEnvironmentArnHasBeenSet = false;
422 bool m_unmanagedvCpusHasBeenSet = false;
423 bool m_ecsClusterArnHasBeenSet = false;
424 bool m_tagsHasBeenSet = false;
425 bool m_typeHasBeenSet = false;
426 bool m_stateHasBeenSet = false;
427 bool m_statusHasBeenSet = false;
428 bool m_statusReasonHasBeenSet = false;
429 bool m_computeResourcesHasBeenSet = false;
430 bool m_serviceRoleHasBeenSet = false;
431 bool m_updatePolicyHasBeenSet = false;
432 bool m_eksConfigurationHasBeenSet = false;
433 bool m_containerOrchestrationTypeHasBeenSet = false;
434 bool m_uuidHasBeenSet = false;
435 bool m_contextHasBeenSet = false;
436 bool m_ecsSettingsHasBeenSet = false;
437};
438
439} // namespace Model
440} // namespace Batch
441} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ComputeEnvironmentDetail & WithContext(ContextT &&value)
ComputeEnvironmentDetail & WithState(CEState value)
const EksConfiguration & GetEksConfiguration() const
AWS_BATCH_API ComputeEnvironmentDetail(Aws::Utils::Json::JsonView jsonValue)
ComputeEnvironmentDetail & WithContainerOrchestrationType(OrchestrationType value)
AWS_BATCH_API ComputeEnvironmentDetail()=default
ComputeEnvironmentDetail & WithComputeEnvironmentArn(ComputeEnvironmentArnT &&value)
ComputeEnvironmentDetail & AddTags(TagsKeyT &&key, TagsValueT &&value)
ComputeEnvironmentDetail & WithEcsSettings(EcsSettingsT &&value)
ComputeEnvironmentDetail & WithServiceRole(ServiceRoleT &&value)
ComputeEnvironmentDetail & WithStatusReason(StatusReasonT &&value)
ComputeEnvironmentDetail & WithType(CEType value)
AWS_BATCH_API ComputeEnvironmentDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetComputeEnvironmentName(ComputeEnvironmentNameT &&value)
ComputeEnvironmentDetail & WithUuid(UuidT &&value)
void SetComputeEnvironmentArn(ComputeEnvironmentArnT &&value)
ComputeEnvironmentDetail & WithTags(TagsT &&value)
ComputeEnvironmentDetail & WithUnmanagedvCpus(int value)
void SetContainerOrchestrationType(OrchestrationType value)
ComputeEnvironmentDetail & WithComputeResources(ComputeResourcesT &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
ComputeEnvironmentDetail & WithEksConfiguration(EksConfigurationT &&value)
ComputeEnvironmentDetail & WithComputeEnvironmentName(ComputeEnvironmentNameT &&value)
ComputeEnvironmentDetail & WithStatus(CEStatus value)
ComputeEnvironmentDetail & WithUpdatePolicy(UpdatePolicyT &&value)
ComputeEnvironmentDetail & WithEcsClusterArn(EcsClusterArnT &&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
Aws::Utils::Json::JsonValue JsonValue