AWS SDK for C++

AWS SDK for C++ Version 1.11.816

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
182 inline CEState GetState() const { return m_state; }
183 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
184 inline void SetState(CEState value) {
185 m_stateHasBeenSet = true;
186 m_state = value;
187 }
189 SetState(value);
190 return *this;
191 }
193
195
199 inline CEStatus GetStatus() const { return m_status; }
200 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
201 inline void SetStatus(CEStatus value) {
202 m_statusHasBeenSet = true;
203 m_status = value;
204 }
206 SetStatus(value);
207 return *this;
208 }
210
212
216 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
217 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
218 template <typename StatusReasonT = Aws::String>
219 void SetStatusReason(StatusReasonT&& value) {
220 m_statusReasonHasBeenSet = true;
221 m_statusReason = std::forward<StatusReasonT>(value);
222 }
223 template <typename StatusReasonT = Aws::String>
225 SetStatusReason(std::forward<StatusReasonT>(value));
226 return *this;
227 }
229
231
237 inline const ComputeResource& GetComputeResources() const { return m_computeResources; }
238 inline bool ComputeResourcesHasBeenSet() const { return m_computeResourcesHasBeenSet; }
239 template <typename ComputeResourcesT = ComputeResource>
240 void SetComputeResources(ComputeResourcesT&& value) {
241 m_computeResourcesHasBeenSet = true;
242 m_computeResources = std::forward<ComputeResourcesT>(value);
243 }
244 template <typename ComputeResourcesT = ComputeResource>
245 ComputeEnvironmentDetail& WithComputeResources(ComputeResourcesT&& value) {
246 SetComputeResources(std::forward<ComputeResourcesT>(value));
247 return *this;
248 }
250
252
259 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
260 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
261 template <typename ServiceRoleT = Aws::String>
262 void SetServiceRole(ServiceRoleT&& value) {
263 m_serviceRoleHasBeenSet = true;
264 m_serviceRole = std::forward<ServiceRoleT>(value);
265 }
266 template <typename ServiceRoleT = Aws::String>
268 SetServiceRole(std::forward<ServiceRoleT>(value));
269 return *this;
270 }
272
274
280 inline const UpdatePolicy& GetUpdatePolicy() const { return m_updatePolicy; }
281 inline bool UpdatePolicyHasBeenSet() const { return m_updatePolicyHasBeenSet; }
282 template <typename UpdatePolicyT = UpdatePolicy>
283 void SetUpdatePolicy(UpdatePolicyT&& value) {
284 m_updatePolicyHasBeenSet = true;
285 m_updatePolicy = std::forward<UpdatePolicyT>(value);
286 }
287 template <typename UpdatePolicyT = UpdatePolicy>
289 SetUpdatePolicy(std::forward<UpdatePolicyT>(value));
290 return *this;
291 }
293
295
300 inline const EksConfiguration& GetEksConfiguration() const { return m_eksConfiguration; }
301 inline bool EksConfigurationHasBeenSet() const { return m_eksConfigurationHasBeenSet; }
302 template <typename EksConfigurationT = EksConfiguration>
303 void SetEksConfiguration(EksConfigurationT&& value) {
304 m_eksConfigurationHasBeenSet = true;
305 m_eksConfiguration = std::forward<EksConfigurationT>(value);
306 }
307 template <typename EksConfigurationT = EksConfiguration>
308 ComputeEnvironmentDetail& WithEksConfiguration(EksConfigurationT&& value) {
309 SetEksConfiguration(std::forward<EksConfigurationT>(value));
310 return *this;
311 }
313
315
319 inline OrchestrationType GetContainerOrchestrationType() const { return m_containerOrchestrationType; }
320 inline bool ContainerOrchestrationTypeHasBeenSet() const { return m_containerOrchestrationTypeHasBeenSet; }
322 m_containerOrchestrationTypeHasBeenSet = true;
323 m_containerOrchestrationType = value;
324 }
327 return *this;
328 }
330
332
335 inline const Aws::String& GetUuid() const { return m_uuid; }
336 inline bool UuidHasBeenSet() const { return m_uuidHasBeenSet; }
337 template <typename UuidT = Aws::String>
338 void SetUuid(UuidT&& value) {
339 m_uuidHasBeenSet = true;
340 m_uuid = std::forward<UuidT>(value);
341 }
342 template <typename UuidT = Aws::String>
344 SetUuid(std::forward<UuidT>(value));
345 return *this;
346 }
348
350
353 inline const Aws::String& GetContext() const { return m_context; }
354 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
355 template <typename ContextT = Aws::String>
356 void SetContext(ContextT&& value) {
357 m_contextHasBeenSet = true;
358 m_context = std::forward<ContextT>(value);
359 }
360 template <typename ContextT = Aws::String>
362 SetContext(std::forward<ContextT>(value));
363 return *this;
364 }
366 private:
367 Aws::String m_computeEnvironmentName;
368
369 Aws::String m_computeEnvironmentArn;
370
371 int m_unmanagedvCpus{0};
372
373 Aws::String m_ecsClusterArn;
374
376
377 CEType m_type{CEType::NOT_SET};
378
379 CEState m_state{CEState::NOT_SET};
380
381 CEStatus m_status{CEStatus::NOT_SET};
382
383 Aws::String m_statusReason;
384
385 ComputeResource m_computeResources;
386
387 Aws::String m_serviceRole;
388
389 UpdatePolicy m_updatePolicy;
390
391 EksConfiguration m_eksConfiguration;
392
393 OrchestrationType m_containerOrchestrationType{OrchestrationType::NOT_SET};
394
395 Aws::String m_uuid;
396
397 Aws::String m_context;
398 bool m_computeEnvironmentNameHasBeenSet = false;
399 bool m_computeEnvironmentArnHasBeenSet = false;
400 bool m_unmanagedvCpusHasBeenSet = false;
401 bool m_ecsClusterArnHasBeenSet = false;
402 bool m_tagsHasBeenSet = false;
403 bool m_typeHasBeenSet = false;
404 bool m_stateHasBeenSet = false;
405 bool m_statusHasBeenSet = false;
406 bool m_statusReasonHasBeenSet = false;
407 bool m_computeResourcesHasBeenSet = false;
408 bool m_serviceRoleHasBeenSet = false;
409 bool m_updatePolicyHasBeenSet = false;
410 bool m_eksConfigurationHasBeenSet = false;
411 bool m_containerOrchestrationTypeHasBeenSet = false;
412 bool m_uuidHasBeenSet = false;
413 bool m_contextHasBeenSet = false;
414};
415
416} // namespace Model
417} // namespace Batch
418} // 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