AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ComputeEnvironmentNameT = Aws::String>
58 void SetComputeEnvironmentName(ComputeEnvironmentNameT&& value) { m_computeEnvironmentNameHasBeenSet = true; m_computeEnvironmentName = std::forward<ComputeEnvironmentNameT>(value); }
59 template<typename ComputeEnvironmentNameT = Aws::String>
60 ComputeEnvironmentDetail& WithComputeEnvironmentName(ComputeEnvironmentNameT&& value) { SetComputeEnvironmentName(std::forward<ComputeEnvironmentNameT>(value)); return *this;}
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) { m_computeEnvironmentArnHasBeenSet = true; m_computeEnvironmentArn = std::forward<ComputeEnvironmentArnT>(value); }
71 template<typename ComputeEnvironmentArnT = Aws::String>
72 ComputeEnvironmentDetail& WithComputeEnvironmentArn(ComputeEnvironmentArnT&& value) { SetComputeEnvironmentArn(std::forward<ComputeEnvironmentArnT>(value)); return *this;}
74
76
80 inline int GetUnmanagedvCpus() const { return m_unmanagedvCpus; }
81 inline bool UnmanagedvCpusHasBeenSet() const { return m_unmanagedvCpusHasBeenSet; }
82 inline void SetUnmanagedvCpus(int value) { m_unmanagedvCpusHasBeenSet = true; m_unmanagedvCpus = value; }
83 inline ComputeEnvironmentDetail& WithUnmanagedvCpus(int value) { SetUnmanagedvCpus(value); return *this;}
85
87
91 inline const Aws::String& GetEcsClusterArn() const { return m_ecsClusterArn; }
92 inline bool EcsClusterArnHasBeenSet() const { return m_ecsClusterArnHasBeenSet; }
93 template<typename EcsClusterArnT = Aws::String>
94 void SetEcsClusterArn(EcsClusterArnT&& value) { m_ecsClusterArnHasBeenSet = true; m_ecsClusterArn = std::forward<EcsClusterArnT>(value); }
95 template<typename EcsClusterArnT = Aws::String>
96 ComputeEnvironmentDetail& WithEcsClusterArn(EcsClusterArnT&& value) { SetEcsClusterArn(std::forward<EcsClusterArnT>(value)); return *this;}
98
100
103 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
104 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
106 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
107 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 ComputeEnvironmentDetail& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
109 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
110 ComputeEnvironmentDetail& AddTags(TagsKeyT&& key, TagsValueT&& value) {
111 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
112 }
114
116
122 inline CEType GetType() const { return m_type; }
123 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
124 inline void SetType(CEType value) { m_typeHasBeenSet = true; m_type = value; }
125 inline ComputeEnvironmentDetail& WithType(CEType value) { SetType(value); return *this;}
127
129
151 inline CEState GetState() const { return m_state; }
152 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
153 inline void SetState(CEState value) { m_stateHasBeenSet = true; m_state = value; }
154 inline ComputeEnvironmentDetail& WithState(CEState value) { SetState(value); return *this;}
156
158
162 inline CEStatus GetStatus() const { return m_status; }
163 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
164 inline void SetStatus(CEStatus value) { m_statusHasBeenSet = true; m_status = value; }
165 inline ComputeEnvironmentDetail& WithStatus(CEStatus value) { SetStatus(value); return *this;}
167
169
173 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
174 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
175 template<typename StatusReasonT = Aws::String>
176 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
177 template<typename StatusReasonT = Aws::String>
178 ComputeEnvironmentDetail& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
180
182
188 inline const ComputeResource& GetComputeResources() const { return m_computeResources; }
189 inline bool ComputeResourcesHasBeenSet() const { return m_computeResourcesHasBeenSet; }
190 template<typename ComputeResourcesT = ComputeResource>
191 void SetComputeResources(ComputeResourcesT&& value) { m_computeResourcesHasBeenSet = true; m_computeResources = std::forward<ComputeResourcesT>(value); }
192 template<typename ComputeResourcesT = ComputeResource>
193 ComputeEnvironmentDetail& WithComputeResources(ComputeResourcesT&& value) { SetComputeResources(std::forward<ComputeResourcesT>(value)); return *this;}
195
197
204 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
205 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
206 template<typename ServiceRoleT = Aws::String>
207 void SetServiceRole(ServiceRoleT&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::forward<ServiceRoleT>(value); }
208 template<typename ServiceRoleT = Aws::String>
209 ComputeEnvironmentDetail& WithServiceRole(ServiceRoleT&& value) { SetServiceRole(std::forward<ServiceRoleT>(value)); return *this;}
211
213
219 inline const UpdatePolicy& GetUpdatePolicy() const { return m_updatePolicy; }
220 inline bool UpdatePolicyHasBeenSet() const { return m_updatePolicyHasBeenSet; }
221 template<typename UpdatePolicyT = UpdatePolicy>
222 void SetUpdatePolicy(UpdatePolicyT&& value) { m_updatePolicyHasBeenSet = true; m_updatePolicy = std::forward<UpdatePolicyT>(value); }
223 template<typename UpdatePolicyT = UpdatePolicy>
224 ComputeEnvironmentDetail& WithUpdatePolicy(UpdatePolicyT&& value) { SetUpdatePolicy(std::forward<UpdatePolicyT>(value)); return *this;}
226
228
233 inline const EksConfiguration& GetEksConfiguration() const { return m_eksConfiguration; }
234 inline bool EksConfigurationHasBeenSet() const { return m_eksConfigurationHasBeenSet; }
235 template<typename EksConfigurationT = EksConfiguration>
236 void SetEksConfiguration(EksConfigurationT&& value) { m_eksConfigurationHasBeenSet = true; m_eksConfiguration = std::forward<EksConfigurationT>(value); }
237 template<typename EksConfigurationT = EksConfiguration>
238 ComputeEnvironmentDetail& WithEksConfiguration(EksConfigurationT&& value) { SetEksConfiguration(std::forward<EksConfigurationT>(value)); return *this;}
240
242
246 inline OrchestrationType GetContainerOrchestrationType() const { return m_containerOrchestrationType; }
247 inline bool ContainerOrchestrationTypeHasBeenSet() const { return m_containerOrchestrationTypeHasBeenSet; }
248 inline void SetContainerOrchestrationType(OrchestrationType value) { m_containerOrchestrationTypeHasBeenSet = true; m_containerOrchestrationType = value; }
251
253
256 inline const Aws::String& GetUuid() const { return m_uuid; }
257 inline bool UuidHasBeenSet() const { return m_uuidHasBeenSet; }
258 template<typename UuidT = Aws::String>
259 void SetUuid(UuidT&& value) { m_uuidHasBeenSet = true; m_uuid = std::forward<UuidT>(value); }
260 template<typename UuidT = Aws::String>
261 ComputeEnvironmentDetail& WithUuid(UuidT&& value) { SetUuid(std::forward<UuidT>(value)); return *this;}
263
265
268 inline const Aws::String& GetContext() const { return m_context; }
269 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
270 template<typename ContextT = Aws::String>
271 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
272 template<typename ContextT = Aws::String>
273 ComputeEnvironmentDetail& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
275 private:
276
277 Aws::String m_computeEnvironmentName;
278 bool m_computeEnvironmentNameHasBeenSet = false;
279
280 Aws::String m_computeEnvironmentArn;
281 bool m_computeEnvironmentArnHasBeenSet = false;
282
283 int m_unmanagedvCpus{0};
284 bool m_unmanagedvCpusHasBeenSet = false;
285
286 Aws::String m_ecsClusterArn;
287 bool m_ecsClusterArnHasBeenSet = false;
288
290 bool m_tagsHasBeenSet = false;
291
292 CEType m_type{CEType::NOT_SET};
293 bool m_typeHasBeenSet = false;
294
295 CEState m_state{CEState::NOT_SET};
296 bool m_stateHasBeenSet = false;
297
298 CEStatus m_status{CEStatus::NOT_SET};
299 bool m_statusHasBeenSet = false;
300
301 Aws::String m_statusReason;
302 bool m_statusReasonHasBeenSet = false;
303
304 ComputeResource m_computeResources;
305 bool m_computeResourcesHasBeenSet = false;
306
307 Aws::String m_serviceRole;
308 bool m_serviceRoleHasBeenSet = false;
309
310 UpdatePolicy m_updatePolicy;
311 bool m_updatePolicyHasBeenSet = false;
312
313 EksConfiguration m_eksConfiguration;
314 bool m_eksConfigurationHasBeenSet = false;
315
316 OrchestrationType m_containerOrchestrationType{OrchestrationType::NOT_SET};
317 bool m_containerOrchestrationTypeHasBeenSet = false;
318
319 Aws::String m_uuid;
320 bool m_uuidHasBeenSet = false;
321
322 Aws::String m_context;
323 bool m_contextHasBeenSet = false;
324 };
325
326} // namespace Model
327} // namespace Batch
328} // 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