AWS SDK for C++

AWS SDK for C++ Version 1.11.875

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/UpdatePolicy.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Batch {
19namespace Model {
20
28 public:
29 AWS_BATCH_API UpdateComputeEnvironmentRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateComputeEnvironment"; }
36
37 AWS_BATCH_API Aws::String SerializePayload() const override;
38
40
44 inline const Aws::String& GetComputeEnvironment() const { return m_computeEnvironment; }
45 inline bool ComputeEnvironmentHasBeenSet() const { return m_computeEnvironmentHasBeenSet; }
46 template <typename ComputeEnvironmentT = Aws::String>
47 void SetComputeEnvironment(ComputeEnvironmentT&& value) {
48 m_computeEnvironmentHasBeenSet = true;
49 m_computeEnvironment = std::forward<ComputeEnvironmentT>(value);
50 }
51 template <typename ComputeEnvironmentT = Aws::String>
53 SetComputeEnvironment(std::forward<ComputeEnvironmentT>(value));
54 return *this;
55 }
57
59
82 inline CEState GetState() const { return m_state; }
83 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
84 inline void SetState(CEState value) {
85 m_stateHasBeenSet = true;
86 m_state = value;
87 }
89 SetState(value);
90 return *this;
91 }
93
95
102 inline int GetUnmanagedvCpus() const { return m_unmanagedvCpus; }
103 inline bool UnmanagedvCpusHasBeenSet() const { return m_unmanagedvCpusHasBeenSet; }
104 inline void SetUnmanagedvCpus(int value) {
105 m_unmanagedvCpusHasBeenSet = true;
106 m_unmanagedvCpus = value;
107 }
109 SetUnmanagedvCpus(value);
110 return *this;
111 }
113
115
121 inline const ComputeResourceUpdate& GetComputeResources() const { return m_computeResources; }
122 inline bool ComputeResourcesHasBeenSet() const { return m_computeResourcesHasBeenSet; }
123 template <typename ComputeResourcesT = ComputeResourceUpdate>
124 void SetComputeResources(ComputeResourcesT&& value) {
125 m_computeResourcesHasBeenSet = true;
126 m_computeResources = std::forward<ComputeResourcesT>(value);
127 }
128 template <typename ComputeResourcesT = ComputeResourceUpdate>
130 SetComputeResources(std::forward<ComputeResourcesT>(value));
131 return *this;
132 }
134
136
159 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
160 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
161 template <typename ServiceRoleT = Aws::String>
162 void SetServiceRole(ServiceRoleT&& value) {
163 m_serviceRoleHasBeenSet = true;
164 m_serviceRole = std::forward<ServiceRoleT>(value);
165 }
166 template <typename ServiceRoleT = Aws::String>
168 SetServiceRole(std::forward<ServiceRoleT>(value));
169 return *this;
170 }
172
174
180 inline const UpdatePolicy& GetUpdatePolicy() const { return m_updatePolicy; }
181 inline bool UpdatePolicyHasBeenSet() const { return m_updatePolicyHasBeenSet; }
182 template <typename UpdatePolicyT = UpdatePolicy>
183 void SetUpdatePolicy(UpdatePolicyT&& value) {
184 m_updatePolicyHasBeenSet = true;
185 m_updatePolicy = std::forward<UpdatePolicyT>(value);
186 }
187 template <typename UpdatePolicyT = UpdatePolicy>
189 SetUpdatePolicy(std::forward<UpdatePolicyT>(value));
190 return *this;
191 }
193
195
198 inline const Aws::String& GetContext() const { return m_context; }
199 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
200 template <typename ContextT = Aws::String>
201 void SetContext(ContextT&& value) {
202 m_contextHasBeenSet = true;
203 m_context = std::forward<ContextT>(value);
204 }
205 template <typename ContextT = Aws::String>
207 SetContext(std::forward<ContextT>(value));
208 return *this;
209 }
211
213
217 inline const EcsSettings& GetEcsSettings() const { return m_ecsSettings; }
218 inline bool EcsSettingsHasBeenSet() const { return m_ecsSettingsHasBeenSet; }
219 template <typename EcsSettingsT = EcsSettings>
220 void SetEcsSettings(EcsSettingsT&& value) {
221 m_ecsSettingsHasBeenSet = true;
222 m_ecsSettings = std::forward<EcsSettingsT>(value);
223 }
224 template <typename EcsSettingsT = EcsSettings>
226 SetEcsSettings(std::forward<EcsSettingsT>(value));
227 return *this;
228 }
230 private:
231 Aws::String m_computeEnvironment;
232
233 CEState m_state{CEState::NOT_SET};
234
235 int m_unmanagedvCpus{0};
236
237 ComputeResourceUpdate m_computeResources;
238
239 Aws::String m_serviceRole;
240
241 UpdatePolicy m_updatePolicy;
242
243 Aws::String m_context;
244
245 EcsSettings m_ecsSettings;
246 bool m_computeEnvironmentHasBeenSet = false;
247 bool m_stateHasBeenSet = false;
248 bool m_unmanagedvCpusHasBeenSet = false;
249 bool m_computeResourcesHasBeenSet = false;
250 bool m_serviceRoleHasBeenSet = false;
251 bool m_updatePolicyHasBeenSet = false;
252 bool m_contextHasBeenSet = false;
253 bool m_ecsSettingsHasBeenSet = false;
254};
255
256} // namespace Model
257} // namespace Batch
258} // 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 & WithUnmanagedvCpus(int value)
UpdateComputeEnvironmentRequest & WithUpdatePolicy(UpdatePolicyT &&value)
UpdateComputeEnvironmentRequest & WithEcsSettings(EcsSettingsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String