AWS SDK for C++

AWS SDK for C++ Version 1.11.904

Loading...
Searching...
No Matches
UpdateComputeEnvironmentRequest.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/ComputeResourceUpdate.h>
11#include <aws/batch/model/EcsSettings.h>
12#include <aws/batch/model/EksConfigurationUpdate.h>
13#include <aws/batch/model/UpdatePolicy.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 UpdateComputeEnvironmentRequest() = 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 "UpdateComputeEnvironment"; }
37
38 AWS_BATCH_API Aws::String SerializePayload() const override;
39
41
45 inline const Aws::String& GetComputeEnvironment() const { return m_computeEnvironment; }
46 inline bool ComputeEnvironmentHasBeenSet() const { return m_computeEnvironmentHasBeenSet; }
47 template <typename ComputeEnvironmentT = Aws::String>
48 void SetComputeEnvironment(ComputeEnvironmentT&& value) {
49 m_computeEnvironmentHasBeenSet = true;
50 m_computeEnvironment = std::forward<ComputeEnvironmentT>(value);
51 }
52 template <typename ComputeEnvironmentT = Aws::String>
54 SetComputeEnvironment(std::forward<ComputeEnvironmentT>(value));
55 return *this;
56 }
58
60
83 inline CEState GetState() const { return m_state; }
84 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
85 inline void SetState(CEState value) {
86 m_stateHasBeenSet = true;
87 m_state = value;
88 }
90 SetState(value);
91 return *this;
92 }
94
96
103 inline int GetUnmanagedvCpus() const { return m_unmanagedvCpus; }
104 inline bool UnmanagedvCpusHasBeenSet() const { return m_unmanagedvCpusHasBeenSet; }
105 inline void SetUnmanagedvCpus(int value) {
106 m_unmanagedvCpusHasBeenSet = true;
107 m_unmanagedvCpus = value;
108 }
110 SetUnmanagedvCpus(value);
111 return *this;
112 }
114
116
122 inline const ComputeResourceUpdate& GetComputeResources() const { return m_computeResources; }
123 inline bool ComputeResourcesHasBeenSet() const { return m_computeResourcesHasBeenSet; }
124 template <typename ComputeResourcesT = ComputeResourceUpdate>
125 void SetComputeResources(ComputeResourcesT&& value) {
126 m_computeResourcesHasBeenSet = true;
127 m_computeResources = std::forward<ComputeResourcesT>(value);
128 }
129 template <typename ComputeResourcesT = ComputeResourceUpdate>
131 SetComputeResources(std::forward<ComputeResourcesT>(value));
132 return *this;
133 }
135
137
160 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
161 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
162 template <typename ServiceRoleT = Aws::String>
163 void SetServiceRole(ServiceRoleT&& value) {
164 m_serviceRoleHasBeenSet = true;
165 m_serviceRole = std::forward<ServiceRoleT>(value);
166 }
167 template <typename ServiceRoleT = Aws::String>
169 SetServiceRole(std::forward<ServiceRoleT>(value));
170 return *this;
171 }
173
175
181 inline const UpdatePolicy& GetUpdatePolicy() const { return m_updatePolicy; }
182 inline bool UpdatePolicyHasBeenSet() const { return m_updatePolicyHasBeenSet; }
183 template <typename UpdatePolicyT = UpdatePolicy>
184 void SetUpdatePolicy(UpdatePolicyT&& value) {
185 m_updatePolicyHasBeenSet = true;
186 m_updatePolicy = std::forward<UpdatePolicyT>(value);
187 }
188 template <typename UpdatePolicyT = UpdatePolicy>
190 SetUpdatePolicy(std::forward<UpdatePolicyT>(value));
191 return *this;
192 }
194
196
199 inline const Aws::String& GetContext() const { return m_context; }
200 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
201 template <typename ContextT = Aws::String>
202 void SetContext(ContextT&& value) {
203 m_contextHasBeenSet = true;
204 m_context = std::forward<ContextT>(value);
205 }
206 template <typename ContextT = Aws::String>
208 SetContext(std::forward<ContextT>(value));
209 return *this;
210 }
212
214
218 inline const EcsSettings& GetEcsSettings() const { return m_ecsSettings; }
219 inline bool EcsSettingsHasBeenSet() const { return m_ecsSettingsHasBeenSet; }
220 template <typename EcsSettingsT = EcsSettings>
221 void SetEcsSettings(EcsSettingsT&& value) {
222 m_ecsSettingsHasBeenSet = true;
223 m_ecsSettings = std::forward<EcsSettingsT>(value);
224 }
225 template <typename EcsSettingsT = EcsSettings>
227 SetEcsSettings(std::forward<EcsSettingsT>(value));
228 return *this;
229 }
231
233
243 inline const EksConfigurationUpdate& GetEksConfiguration() const { return m_eksConfiguration; }
244 inline bool EksConfigurationHasBeenSet() const { return m_eksConfigurationHasBeenSet; }
245 template <typename EksConfigurationT = EksConfigurationUpdate>
246 void SetEksConfiguration(EksConfigurationT&& value) {
247 m_eksConfigurationHasBeenSet = true;
248 m_eksConfiguration = std::forward<EksConfigurationT>(value);
249 }
250 template <typename EksConfigurationT = EksConfigurationUpdate>
252 SetEksConfiguration(std::forward<EksConfigurationT>(value));
253 return *this;
254 }
256 private:
257 Aws::String m_computeEnvironment;
258
259 CEState m_state{CEState::NOT_SET};
260
261 int m_unmanagedvCpus{0};
262
263 ComputeResourceUpdate m_computeResources;
264
265 Aws::String m_serviceRole;
266
267 UpdatePolicy m_updatePolicy;
268
269 Aws::String m_context;
270
271 EcsSettings m_ecsSettings;
272
273 EksConfigurationUpdate m_eksConfiguration;
274 bool m_computeEnvironmentHasBeenSet = false;
275 bool m_stateHasBeenSet = false;
276 bool m_unmanagedvCpusHasBeenSet = false;
277 bool m_computeResourcesHasBeenSet = false;
278 bool m_serviceRoleHasBeenSet = false;
279 bool m_updatePolicyHasBeenSet = false;
280 bool m_contextHasBeenSet = false;
281 bool m_ecsSettingsHasBeenSet = false;
282 bool m_eksConfigurationHasBeenSet = false;
283};
284
285} // namespace Model
286} // namespace Batch
287} // namespace Aws
UpdateComputeEnvironmentRequest & WithState(CEState value)
UpdateComputeEnvironmentRequest & WithContext(ContextT &&value)
UpdateComputeEnvironmentRequest & WithServiceRole(ServiceRoleT &&value)
AWS_BATCH_API Aws::String SerializePayload() const override
UpdateComputeEnvironmentRequest & WithComputeEnvironment(ComputeEnvironmentT &&value)
UpdateComputeEnvironmentRequest & WithComputeResources(ComputeResourcesT &&value)
UpdateComputeEnvironmentRequest & WithEksConfiguration(EksConfigurationT &&value)
UpdateComputeEnvironmentRequest & WithUnmanagedvCpus(int value)
UpdateComputeEnvironmentRequest & WithUpdatePolicy(UpdatePolicyT &&value)
UpdateComputeEnvironmentRequest & WithEcsSettings(EcsSettingsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String