AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateComputeEnvironmentRequest.h
1
6#pragma once
7#include <aws/batch/BatchRequest.h>
8#include <aws/batch/Batch_EXPORTS.h>
9#include <aws/batch/model/CEState.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/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Batch {
20namespace Model {
21
29 public:
30 AWS_BATCH_API CreateComputeEnvironmentRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateComputeEnvironment"; }
37
38 AWS_BATCH_API Aws::String SerializePayload() const override;
39
41
46 inline const Aws::String& GetComputeEnvironmentName() const { return m_computeEnvironmentName; }
47 inline bool ComputeEnvironmentNameHasBeenSet() const { return m_computeEnvironmentNameHasBeenSet; }
48 template <typename ComputeEnvironmentNameT = Aws::String>
49 void SetComputeEnvironmentName(ComputeEnvironmentNameT&& value) {
50 m_computeEnvironmentNameHasBeenSet = true;
51 m_computeEnvironmentName = std::forward<ComputeEnvironmentNameT>(value);
52 }
53 template <typename ComputeEnvironmentNameT = Aws::String>
55 SetComputeEnvironmentName(std::forward<ComputeEnvironmentNameT>(value));
56 return *this;
57 }
59
61
67 inline CEType GetType() const { return m_type; }
68 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
69 inline void SetType(CEType value) {
70 m_typeHasBeenSet = true;
71 m_type = value;
72 }
74 SetType(value);
75 return *this;
76 }
78
80
102 inline CEState GetState() const { return m_state; }
103 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
104 inline void SetState(CEState value) {
105 m_stateHasBeenSet = true;
106 m_state = value;
107 }
109 SetState(value);
110 return *this;
111 }
113
115
123 inline int GetUnmanagedvCpus() const { return m_unmanagedvCpus; }
124 inline bool UnmanagedvCpusHasBeenSet() const { return m_unmanagedvCpusHasBeenSet; }
125 inline void SetUnmanagedvCpus(int value) {
126 m_unmanagedvCpusHasBeenSet = true;
127 m_unmanagedvCpus = value;
128 }
130 SetUnmanagedvCpus(value);
131 return *this;
132 }
134
136
143 inline const ComputeResource& GetComputeResources() const { return m_computeResources; }
144 inline bool ComputeResourcesHasBeenSet() const { return m_computeResourcesHasBeenSet; }
145 template <typename ComputeResourcesT = ComputeResource>
146 void SetComputeResources(ComputeResourcesT&& value) {
147 m_computeResourcesHasBeenSet = true;
148 m_computeResources = std::forward<ComputeResourcesT>(value);
149 }
150 template <typename ComputeResourcesT = ComputeResource>
152 SetComputeResources(std::forward<ComputeResourcesT>(value));
153 return *this;
154 }
156
158
182 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
183 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
184 template <typename ServiceRoleT = Aws::String>
185 void SetServiceRole(ServiceRoleT&& value) {
186 m_serviceRoleHasBeenSet = true;
187 m_serviceRole = std::forward<ServiceRoleT>(value);
188 }
189 template <typename ServiceRoleT = Aws::String>
191 SetServiceRole(std::forward<ServiceRoleT>(value));
192 return *this;
193 }
195
197
210 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
211 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
212 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
213 void SetTags(TagsT&& value) {
214 m_tagsHasBeenSet = true;
215 m_tags = std::forward<TagsT>(value);
216 }
217 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
219 SetTags(std::forward<TagsT>(value));
220 return *this;
221 }
222 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
223 CreateComputeEnvironmentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
224 m_tagsHasBeenSet = true;
225 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
226 return *this;
227 }
229
231
237 inline const EksConfiguration& GetEksConfiguration() const { return m_eksConfiguration; }
238 inline bool EksConfigurationHasBeenSet() const { return m_eksConfigurationHasBeenSet; }
239 template <typename EksConfigurationT = EksConfiguration>
240 void SetEksConfiguration(EksConfigurationT&& value) {
241 m_eksConfigurationHasBeenSet = true;
242 m_eksConfiguration = std::forward<EksConfigurationT>(value);
243 }
244 template <typename EksConfigurationT = EksConfiguration>
246 SetEksConfiguration(std::forward<EksConfigurationT>(value));
247 return *this;
248 }
250
252
255 inline const Aws::String& GetContext() const { return m_context; }
256 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
257 template <typename ContextT = Aws::String>
258 void SetContext(ContextT&& value) {
259 m_contextHasBeenSet = true;
260 m_context = std::forward<ContextT>(value);
261 }
262 template <typename ContextT = Aws::String>
264 SetContext(std::forward<ContextT>(value));
265 return *this;
266 }
268 private:
269 Aws::String m_computeEnvironmentName;
270
271 CEType m_type{CEType::NOT_SET};
272
273 CEState m_state{CEState::NOT_SET};
274
275 int m_unmanagedvCpus{0};
276
277 ComputeResource m_computeResources;
278
279 Aws::String m_serviceRole;
280
282
283 EksConfiguration m_eksConfiguration;
284
285 Aws::String m_context;
286 bool m_computeEnvironmentNameHasBeenSet = false;
287 bool m_typeHasBeenSet = false;
288 bool m_stateHasBeenSet = false;
289 bool m_unmanagedvCpusHasBeenSet = false;
290 bool m_computeResourcesHasBeenSet = false;
291 bool m_serviceRoleHasBeenSet = false;
292 bool m_tagsHasBeenSet = false;
293 bool m_eksConfigurationHasBeenSet = false;
294 bool m_contextHasBeenSet = false;
295};
296
297} // namespace Model
298} // namespace Batch
299} // namespace Aws
CreateComputeEnvironmentRequest & WithTags(TagsT &&value)
CreateComputeEnvironmentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateComputeEnvironmentRequest & WithServiceRole(ServiceRoleT &&value)
CreateComputeEnvironmentRequest & WithUnmanagedvCpus(int value)
CreateComputeEnvironmentRequest & WithState(CEState value)
CreateComputeEnvironmentRequest & WithContext(ContextT &&value)
CreateComputeEnvironmentRequest & WithType(CEType value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateComputeEnvironmentRequest & WithComputeEnvironmentName(ComputeEnvironmentNameT &&value)
CreateComputeEnvironmentRequest & WithComputeResources(ComputeResourcesT &&value)
AWS_BATCH_API Aws::String SerializePayload() const override
CreateComputeEnvironmentRequest & WithEksConfiguration(EksConfigurationT &&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