AWS SDK for C++

AWS SDK for C++ Version 1.11.813

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
103 inline CEState GetState() const { return m_state; }
104 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
105 inline void SetState(CEState value) {
106 m_stateHasBeenSet = true;
107 m_state = value;
108 }
110 SetState(value);
111 return *this;
112 }
114
116
124 inline int GetUnmanagedvCpus() const { return m_unmanagedvCpus; }
125 inline bool UnmanagedvCpusHasBeenSet() const { return m_unmanagedvCpusHasBeenSet; }
126 inline void SetUnmanagedvCpus(int value) {
127 m_unmanagedvCpusHasBeenSet = true;
128 m_unmanagedvCpus = value;
129 }
131 SetUnmanagedvCpus(value);
132 return *this;
133 }
135
137
144 inline const ComputeResource& GetComputeResources() const { return m_computeResources; }
145 inline bool ComputeResourcesHasBeenSet() const { return m_computeResourcesHasBeenSet; }
146 template <typename ComputeResourcesT = ComputeResource>
147 void SetComputeResources(ComputeResourcesT&& value) {
148 m_computeResourcesHasBeenSet = true;
149 m_computeResources = std::forward<ComputeResourcesT>(value);
150 }
151 template <typename ComputeResourcesT = ComputeResource>
153 SetComputeResources(std::forward<ComputeResourcesT>(value));
154 return *this;
155 }
157
159
186 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
187 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
188 template <typename ServiceRoleT = Aws::String>
189 void SetServiceRole(ServiceRoleT&& value) {
190 m_serviceRoleHasBeenSet = true;
191 m_serviceRole = std::forward<ServiceRoleT>(value);
192 }
193 template <typename ServiceRoleT = Aws::String>
195 SetServiceRole(std::forward<ServiceRoleT>(value));
196 return *this;
197 }
199
201
214 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
215 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
216 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
217 void SetTags(TagsT&& value) {
218 m_tagsHasBeenSet = true;
219 m_tags = std::forward<TagsT>(value);
220 }
221 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
223 SetTags(std::forward<TagsT>(value));
224 return *this;
225 }
226 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
227 CreateComputeEnvironmentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
228 m_tagsHasBeenSet = true;
229 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
230 return *this;
231 }
233
235
241 inline const EksConfiguration& GetEksConfiguration() const { return m_eksConfiguration; }
242 inline bool EksConfigurationHasBeenSet() const { return m_eksConfigurationHasBeenSet; }
243 template <typename EksConfigurationT = EksConfiguration>
244 void SetEksConfiguration(EksConfigurationT&& value) {
245 m_eksConfigurationHasBeenSet = true;
246 m_eksConfiguration = std::forward<EksConfigurationT>(value);
247 }
248 template <typename EksConfigurationT = EksConfiguration>
250 SetEksConfiguration(std::forward<EksConfigurationT>(value));
251 return *this;
252 }
254
256
259 inline const Aws::String& GetContext() const { return m_context; }
260 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
261 template <typename ContextT = Aws::String>
262 void SetContext(ContextT&& value) {
263 m_contextHasBeenSet = true;
264 m_context = std::forward<ContextT>(value);
265 }
266 template <typename ContextT = Aws::String>
268 SetContext(std::forward<ContextT>(value));
269 return *this;
270 }
272 private:
273 Aws::String m_computeEnvironmentName;
274
275 CEType m_type{CEType::NOT_SET};
276
277 CEState m_state{CEState::NOT_SET};
278
279 int m_unmanagedvCpus{0};
280
281 ComputeResource m_computeResources;
282
283 Aws::String m_serviceRole;
284
286
287 EksConfiguration m_eksConfiguration;
288
289 Aws::String m_context;
290 bool m_computeEnvironmentNameHasBeenSet = false;
291 bool m_typeHasBeenSet = false;
292 bool m_stateHasBeenSet = false;
293 bool m_unmanagedvCpusHasBeenSet = false;
294 bool m_computeResourcesHasBeenSet = false;
295 bool m_serviceRoleHasBeenSet = false;
296 bool m_tagsHasBeenSet = false;
297 bool m_eksConfigurationHasBeenSet = false;
298 bool m_contextHasBeenSet = false;
299};
300
301} // namespace Model
302} // namespace Batch
303} // 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