AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/EksConfiguration.h>
13#include <aws/batch/model/OrchestrationType.h>
14#include <aws/batch/model/UpdatePolicy.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Batch {
28namespace Model {
29
37 public:
38 AWS_BATCH_API ComputeEnvironmentDetail() = default;
41 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
49 inline const Aws::String& GetComputeEnvironmentName() const { return m_computeEnvironmentName; }
50 inline bool ComputeEnvironmentNameHasBeenSet() const { return m_computeEnvironmentNameHasBeenSet; }
51 template <typename ComputeEnvironmentNameT = Aws::String>
52 void SetComputeEnvironmentName(ComputeEnvironmentNameT&& value) {
53 m_computeEnvironmentNameHasBeenSet = true;
54 m_computeEnvironmentName = std::forward<ComputeEnvironmentNameT>(value);
55 }
56 template <typename ComputeEnvironmentNameT = Aws::String>
57 ComputeEnvironmentDetail& WithComputeEnvironmentName(ComputeEnvironmentNameT&& value) {
58 SetComputeEnvironmentName(std::forward<ComputeEnvironmentNameT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetComputeEnvironmentArn() const { return m_computeEnvironmentArn; }
68 inline bool ComputeEnvironmentArnHasBeenSet() const { return m_computeEnvironmentArnHasBeenSet; }
69 template <typename ComputeEnvironmentArnT = Aws::String>
70 void SetComputeEnvironmentArn(ComputeEnvironmentArnT&& value) {
71 m_computeEnvironmentArnHasBeenSet = true;
72 m_computeEnvironmentArn = std::forward<ComputeEnvironmentArnT>(value);
73 }
74 template <typename ComputeEnvironmentArnT = Aws::String>
75 ComputeEnvironmentDetail& WithComputeEnvironmentArn(ComputeEnvironmentArnT&& value) {
76 SetComputeEnvironmentArn(std::forward<ComputeEnvironmentArnT>(value));
77 return *this;
78 }
80
82
86 inline int GetUnmanagedvCpus() const { return m_unmanagedvCpus; }
87 inline bool UnmanagedvCpusHasBeenSet() const { return m_unmanagedvCpusHasBeenSet; }
88 inline void SetUnmanagedvCpus(int value) {
89 m_unmanagedvCpusHasBeenSet = true;
90 m_unmanagedvCpus = value;
91 }
93 SetUnmanagedvCpus(value);
94 return *this;
95 }
97
99
103 inline const Aws::String& GetEcsClusterArn() const { return m_ecsClusterArn; }
104 inline bool EcsClusterArnHasBeenSet() const { return m_ecsClusterArnHasBeenSet; }
105 template <typename EcsClusterArnT = Aws::String>
106 void SetEcsClusterArn(EcsClusterArnT&& value) {
107 m_ecsClusterArnHasBeenSet = true;
108 m_ecsClusterArn = std::forward<EcsClusterArnT>(value);
109 }
110 template <typename EcsClusterArnT = Aws::String>
112 SetEcsClusterArn(std::forward<EcsClusterArnT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
122 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
123 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
124 void SetTags(TagsT&& value) {
125 m_tagsHasBeenSet = true;
126 m_tags = std::forward<TagsT>(value);
127 }
128 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
130 SetTags(std::forward<TagsT>(value));
131 return *this;
132 }
133 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
134 ComputeEnvironmentDetail& AddTags(TagsKeyT&& key, TagsValueT&& value) {
135 m_tagsHasBeenSet = true;
136 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
137 return *this;
138 }
140
142
148 inline CEType GetType() const { return m_type; }
149 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
150 inline void SetType(CEType value) {
151 m_typeHasBeenSet = true;
152 m_type = value;
153 }
155 SetType(value);
156 return *this;
157 }
159
161
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 private:
368 Aws::String m_computeEnvironmentName;
369
370 Aws::String m_computeEnvironmentArn;
371
372 int m_unmanagedvCpus{0};
373
374 Aws::String m_ecsClusterArn;
375
377
378 CEType m_type{CEType::NOT_SET};
379
380 CEState m_state{CEState::NOT_SET};
381
382 CEStatus m_status{CEStatus::NOT_SET};
383
384 Aws::String m_statusReason;
385
386 ComputeResource m_computeResources;
387
388 Aws::String m_serviceRole;
389
390 UpdatePolicy m_updatePolicy;
391
392 EksConfiguration m_eksConfiguration;
393
394 OrchestrationType m_containerOrchestrationType{OrchestrationType::NOT_SET};
395
396 Aws::String m_uuid;
397
398 Aws::String m_context;
399 bool m_computeEnvironmentNameHasBeenSet = false;
400 bool m_computeEnvironmentArnHasBeenSet = false;
401 bool m_unmanagedvCpusHasBeenSet = false;
402 bool m_ecsClusterArnHasBeenSet = false;
403 bool m_tagsHasBeenSet = false;
404 bool m_typeHasBeenSet = false;
405 bool m_stateHasBeenSet = false;
406 bool m_statusHasBeenSet = false;
407 bool m_statusReasonHasBeenSet = false;
408 bool m_computeResourcesHasBeenSet = false;
409 bool m_serviceRoleHasBeenSet = false;
410 bool m_updatePolicyHasBeenSet = false;
411 bool m_eksConfigurationHasBeenSet = false;
412 bool m_containerOrchestrationTypeHasBeenSet = false;
413 bool m_uuidHasBeenSet = false;
414 bool m_contextHasBeenSet = false;
415};
416
417} // namespace Model
418} // namespace Batch
419} // 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 & 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