AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ComputeEnvironmentDetail.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/batch/model/CEType.h>
11#include <aws/batch/model/CEState.h>
12#include <aws/batch/model/CEStatus.h>
13#include <aws/batch/model/ComputeResource.h>
14#include <aws/batch/model/UpdatePolicy.h>
15#include <aws/batch/model/EksConfiguration.h>
16#include <aws/batch/model/OrchestrationType.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace Batch
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_BATCH_API ComputeEnvironmentDetail();
46 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
55 inline const Aws::String& GetComputeEnvironmentName() const{ return m_computeEnvironmentName; }
56 inline bool ComputeEnvironmentNameHasBeenSet() const { return m_computeEnvironmentNameHasBeenSet; }
57 inline void SetComputeEnvironmentName(const Aws::String& value) { m_computeEnvironmentNameHasBeenSet = true; m_computeEnvironmentName = value; }
58 inline void SetComputeEnvironmentName(Aws::String&& value) { m_computeEnvironmentNameHasBeenSet = true; m_computeEnvironmentName = std::move(value); }
59 inline void SetComputeEnvironmentName(const char* value) { m_computeEnvironmentNameHasBeenSet = true; m_computeEnvironmentName.assign(value); }
62 inline ComputeEnvironmentDetail& WithComputeEnvironmentName(const char* value) { SetComputeEnvironmentName(value); return *this;}
64
66
69 inline const Aws::String& GetComputeEnvironmentArn() const{ return m_computeEnvironmentArn; }
70 inline bool ComputeEnvironmentArnHasBeenSet() const { return m_computeEnvironmentArnHasBeenSet; }
71 inline void SetComputeEnvironmentArn(const Aws::String& value) { m_computeEnvironmentArnHasBeenSet = true; m_computeEnvironmentArn = value; }
72 inline void SetComputeEnvironmentArn(Aws::String&& value) { m_computeEnvironmentArnHasBeenSet = true; m_computeEnvironmentArn = std::move(value); }
73 inline void SetComputeEnvironmentArn(const char* value) { m_computeEnvironmentArnHasBeenSet = true; m_computeEnvironmentArn.assign(value); }
76 inline ComputeEnvironmentDetail& WithComputeEnvironmentArn(const char* value) { SetComputeEnvironmentArn(value); return *this;}
78
80
84 inline int GetUnmanagedvCpus() const{ return m_unmanagedvCpus; }
85 inline bool UnmanagedvCpusHasBeenSet() const { return m_unmanagedvCpusHasBeenSet; }
86 inline void SetUnmanagedvCpus(int value) { m_unmanagedvCpusHasBeenSet = true; m_unmanagedvCpus = value; }
87 inline ComputeEnvironmentDetail& WithUnmanagedvCpus(int value) { SetUnmanagedvCpus(value); return *this;}
89
91
95 inline const Aws::String& GetEcsClusterArn() const{ return m_ecsClusterArn; }
96 inline bool EcsClusterArnHasBeenSet() const { return m_ecsClusterArnHasBeenSet; }
97 inline void SetEcsClusterArn(const Aws::String& value) { m_ecsClusterArnHasBeenSet = true; m_ecsClusterArn = value; }
98 inline void SetEcsClusterArn(Aws::String&& value) { m_ecsClusterArnHasBeenSet = true; m_ecsClusterArn = std::move(value); }
99 inline void SetEcsClusterArn(const char* value) { m_ecsClusterArnHasBeenSet = true; m_ecsClusterArn.assign(value); }
100 inline ComputeEnvironmentDetail& WithEcsClusterArn(const Aws::String& value) { SetEcsClusterArn(value); return *this;}
101 inline ComputeEnvironmentDetail& WithEcsClusterArn(Aws::String&& value) { SetEcsClusterArn(std::move(value)); return *this;}
102 inline ComputeEnvironmentDetail& WithEcsClusterArn(const char* value) { SetEcsClusterArn(value); return *this;}
104
106
109 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
110 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
111 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
112 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
114 inline ComputeEnvironmentDetail& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
115 inline ComputeEnvironmentDetail& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
116 inline ComputeEnvironmentDetail& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
117 inline ComputeEnvironmentDetail& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
118 inline ComputeEnvironmentDetail& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
119 inline ComputeEnvironmentDetail& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
120 inline ComputeEnvironmentDetail& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
121 inline ComputeEnvironmentDetail& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
123
125
131 inline const CEType& GetType() const{ return m_type; }
132 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
133 inline void SetType(const CEType& value) { m_typeHasBeenSet = true; m_type = value; }
134 inline void SetType(CEType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
135 inline ComputeEnvironmentDetail& WithType(const CEType& value) { SetType(value); return *this;}
136 inline ComputeEnvironmentDetail& WithType(CEType&& value) { SetType(std::move(value)); return *this;}
138
140
162 inline const CEState& GetState() const{ return m_state; }
163 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
164 inline void SetState(const CEState& value) { m_stateHasBeenSet = true; m_state = value; }
165 inline void SetState(CEState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
166 inline ComputeEnvironmentDetail& WithState(const CEState& value) { SetState(value); return *this;}
167 inline ComputeEnvironmentDetail& WithState(CEState&& value) { SetState(std::move(value)); return *this;}
169
171
175 inline const CEStatus& GetStatus() const{ return m_status; }
176 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
177 inline void SetStatus(const CEStatus& value) { m_statusHasBeenSet = true; m_status = value; }
178 inline void SetStatus(CEStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
179 inline ComputeEnvironmentDetail& WithStatus(const CEStatus& value) { SetStatus(value); return *this;}
180 inline ComputeEnvironmentDetail& WithStatus(CEStatus&& value) { SetStatus(std::move(value)); return *this;}
182
184
188 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
189 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
190 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
191 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
192 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
193 inline ComputeEnvironmentDetail& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
194 inline ComputeEnvironmentDetail& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
195 inline ComputeEnvironmentDetail& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
197
199
205 inline const ComputeResource& GetComputeResources() const{ return m_computeResources; }
206 inline bool ComputeResourcesHasBeenSet() const { return m_computeResourcesHasBeenSet; }
207 inline void SetComputeResources(const ComputeResource& value) { m_computeResourcesHasBeenSet = true; m_computeResources = value; }
208 inline void SetComputeResources(ComputeResource&& value) { m_computeResourcesHasBeenSet = true; m_computeResources = std::move(value); }
210 inline ComputeEnvironmentDetail& WithComputeResources(ComputeResource&& value) { SetComputeResources(std::move(value)); return *this;}
212
214
221 inline const Aws::String& GetServiceRole() const{ return m_serviceRole; }
222 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
223 inline void SetServiceRole(const Aws::String& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = value; }
224 inline void SetServiceRole(Aws::String&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::move(value); }
225 inline void SetServiceRole(const char* value) { m_serviceRoleHasBeenSet = true; m_serviceRole.assign(value); }
226 inline ComputeEnvironmentDetail& WithServiceRole(const Aws::String& value) { SetServiceRole(value); return *this;}
227 inline ComputeEnvironmentDetail& WithServiceRole(Aws::String&& value) { SetServiceRole(std::move(value)); return *this;}
228 inline ComputeEnvironmentDetail& WithServiceRole(const char* value) { SetServiceRole(value); return *this;}
230
232
238 inline const UpdatePolicy& GetUpdatePolicy() const{ return m_updatePolicy; }
239 inline bool UpdatePolicyHasBeenSet() const { return m_updatePolicyHasBeenSet; }
240 inline void SetUpdatePolicy(const UpdatePolicy& value) { m_updatePolicyHasBeenSet = true; m_updatePolicy = value; }
241 inline void SetUpdatePolicy(UpdatePolicy&& value) { m_updatePolicyHasBeenSet = true; m_updatePolicy = std::move(value); }
242 inline ComputeEnvironmentDetail& WithUpdatePolicy(const UpdatePolicy& value) { SetUpdatePolicy(value); return *this;}
243 inline ComputeEnvironmentDetail& WithUpdatePolicy(UpdatePolicy&& value) { SetUpdatePolicy(std::move(value)); return *this;}
245
247
252 inline const EksConfiguration& GetEksConfiguration() const{ return m_eksConfiguration; }
253 inline bool EksConfigurationHasBeenSet() const { return m_eksConfigurationHasBeenSet; }
254 inline void SetEksConfiguration(const EksConfiguration& value) { m_eksConfigurationHasBeenSet = true; m_eksConfiguration = value; }
255 inline void SetEksConfiguration(EksConfiguration&& value) { m_eksConfigurationHasBeenSet = true; m_eksConfiguration = std::move(value); }
257 inline ComputeEnvironmentDetail& WithEksConfiguration(EksConfiguration&& value) { SetEksConfiguration(std::move(value)); return *this;}
259
261
265 inline const OrchestrationType& GetContainerOrchestrationType() const{ return m_containerOrchestrationType; }
266 inline bool ContainerOrchestrationTypeHasBeenSet() const { return m_containerOrchestrationTypeHasBeenSet; }
267 inline void SetContainerOrchestrationType(const OrchestrationType& value) { m_containerOrchestrationTypeHasBeenSet = true; m_containerOrchestrationType = value; }
268 inline void SetContainerOrchestrationType(OrchestrationType&& value) { m_containerOrchestrationTypeHasBeenSet = true; m_containerOrchestrationType = std::move(value); }
272
274
277 inline const Aws::String& GetUuid() const{ return m_uuid; }
278 inline bool UuidHasBeenSet() const { return m_uuidHasBeenSet; }
279 inline void SetUuid(const Aws::String& value) { m_uuidHasBeenSet = true; m_uuid = value; }
280 inline void SetUuid(Aws::String&& value) { m_uuidHasBeenSet = true; m_uuid = std::move(value); }
281 inline void SetUuid(const char* value) { m_uuidHasBeenSet = true; m_uuid.assign(value); }
282 inline ComputeEnvironmentDetail& WithUuid(const Aws::String& value) { SetUuid(value); return *this;}
283 inline ComputeEnvironmentDetail& WithUuid(Aws::String&& value) { SetUuid(std::move(value)); return *this;}
284 inline ComputeEnvironmentDetail& WithUuid(const char* value) { SetUuid(value); return *this;}
286
288
291 inline const Aws::String& GetContext() const{ return m_context; }
292 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
293 inline void SetContext(const Aws::String& value) { m_contextHasBeenSet = true; m_context = value; }
294 inline void SetContext(Aws::String&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
295 inline void SetContext(const char* value) { m_contextHasBeenSet = true; m_context.assign(value); }
296 inline ComputeEnvironmentDetail& WithContext(const Aws::String& value) { SetContext(value); return *this;}
297 inline ComputeEnvironmentDetail& WithContext(Aws::String&& value) { SetContext(std::move(value)); return *this;}
298 inline ComputeEnvironmentDetail& WithContext(const char* value) { SetContext(value); return *this;}
300 private:
301
302 Aws::String m_computeEnvironmentName;
303 bool m_computeEnvironmentNameHasBeenSet = false;
304
305 Aws::String m_computeEnvironmentArn;
306 bool m_computeEnvironmentArnHasBeenSet = false;
307
308 int m_unmanagedvCpus;
309 bool m_unmanagedvCpusHasBeenSet = false;
310
311 Aws::String m_ecsClusterArn;
312 bool m_ecsClusterArnHasBeenSet = false;
313
315 bool m_tagsHasBeenSet = false;
316
317 CEType m_type;
318 bool m_typeHasBeenSet = false;
319
320 CEState m_state;
321 bool m_stateHasBeenSet = false;
322
323 CEStatus m_status;
324 bool m_statusHasBeenSet = false;
325
326 Aws::String m_statusReason;
327 bool m_statusReasonHasBeenSet = false;
328
329 ComputeResource m_computeResources;
330 bool m_computeResourcesHasBeenSet = false;
331
332 Aws::String m_serviceRole;
333 bool m_serviceRoleHasBeenSet = false;
334
335 UpdatePolicy m_updatePolicy;
336 bool m_updatePolicyHasBeenSet = false;
337
338 EksConfiguration m_eksConfiguration;
339 bool m_eksConfigurationHasBeenSet = false;
340
341 OrchestrationType m_containerOrchestrationType;
342 bool m_containerOrchestrationTypeHasBeenSet = false;
343
344 Aws::String m_uuid;
345 bool m_uuidHasBeenSet = false;
346
347 Aws::String m_context;
348 bool m_contextHasBeenSet = false;
349 };
350
351} // namespace Model
352} // namespace Batch
353} // namespace Aws
ComputeEnvironmentDetail & WithEcsClusterArn(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ComputeEnvironmentDetail & WithType(CEType &&value)
void SetContainerOrchestrationType(const OrchestrationType &value)
ComputeEnvironmentDetail & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
ComputeEnvironmentDetail & WithComputeEnvironmentArn(Aws::String &&value)
void SetContainerOrchestrationType(OrchestrationType &&value)
ComputeEnvironmentDetail & WithComputeEnvironmentArn(const char *value)
void SetComputeEnvironmentArn(const Aws::String &value)
ComputeEnvironmentDetail & AddTags(const char *key, const char *value)
const EksConfiguration & GetEksConfiguration() const
AWS_BATCH_API ComputeEnvironmentDetail(Aws::Utils::Json::JsonView jsonValue)
ComputeEnvironmentDetail & AddTags(const char *key, Aws::String &&value)
ComputeEnvironmentDetail & WithUuid(const char *value)
void SetComputeResources(const ComputeResource &value)
ComputeEnvironmentDetail & WithComputeEnvironmentName(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
ComputeEnvironmentDetail & WithServiceRole(const Aws::String &value)
ComputeEnvironmentDetail & WithUpdatePolicy(UpdatePolicy &&value)
ComputeEnvironmentDetail & WithComputeResources(const ComputeResource &value)
ComputeEnvironmentDetail & WithComputeEnvironmentName(Aws::String &&value)
ComputeEnvironmentDetail & WithUuid(const Aws::String &value)
ComputeEnvironmentDetail & WithContext(const Aws::String &value)
ComputeEnvironmentDetail & AddTags(Aws::String &&key, Aws::String &&value)
ComputeEnvironmentDetail & WithEksConfiguration(const EksConfiguration &value)
ComputeEnvironmentDetail & WithStatus(CEStatus &&value)
ComputeEnvironmentDetail & WithComputeResources(ComputeResource &&value)
ComputeEnvironmentDetail & WithContext(Aws::String &&value)
ComputeEnvironmentDetail & WithContainerOrchestrationType(const OrchestrationType &value)
AWS_BATCH_API ComputeEnvironmentDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ComputeEnvironmentDetail & WithEcsClusterArn(Aws::String &&value)
ComputeEnvironmentDetail & WithUuid(Aws::String &&value)
ComputeEnvironmentDetail & WithType(const CEType &value)
ComputeEnvironmentDetail & AddTags(Aws::String &&key, const Aws::String &value)
ComputeEnvironmentDetail & WithState(const CEState &value)
ComputeEnvironmentDetail & AddTags(const Aws::String &key, Aws::String &&value)
ComputeEnvironmentDetail & AddTags(Aws::String &&key, const char *value)
ComputeEnvironmentDetail & WithContext(const char *value)
ComputeEnvironmentDetail & WithEksConfiguration(EksConfiguration &&value)
ComputeEnvironmentDetail & WithUnmanagedvCpus(int value)
ComputeEnvironmentDetail & WithServiceRole(const char *value)
ComputeEnvironmentDetail & WithState(CEState &&value)
void SetEksConfiguration(const EksConfiguration &value)
ComputeEnvironmentDetail & WithEcsClusterArn(const char *value)
ComputeEnvironmentDetail & AddTags(const Aws::String &key, const Aws::String &value)
ComputeEnvironmentDetail & WithUpdatePolicy(const UpdatePolicy &value)
ComputeEnvironmentDetail & WithServiceRole(Aws::String &&value)
ComputeEnvironmentDetail & WithStatusReason(Aws::String &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetComputeEnvironmentName(const Aws::String &value)
ComputeEnvironmentDetail & WithStatusReason(const Aws::String &value)
ComputeEnvironmentDetail & WithComputeEnvironmentArn(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
ComputeEnvironmentDetail & WithStatusReason(const char *value)
ComputeEnvironmentDetail & WithComputeEnvironmentName(const Aws::String &value)
ComputeEnvironmentDetail & WithStatus(const CEStatus &value)
ComputeEnvironmentDetail & WithContainerOrchestrationType(OrchestrationType &&value)
ComputeEnvironmentDetail & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const OrchestrationType & GetContainerOrchestrationType() const
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