AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/UpdatePolicy.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Batch {
18namespace Model {
19
27 public:
28 AWS_BATCH_API UpdateComputeEnvironmentRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateComputeEnvironment"; }
35
36 AWS_BATCH_API Aws::String SerializePayload() const override;
37
39
43 inline const Aws::String& GetComputeEnvironment() const { return m_computeEnvironment; }
44 inline bool ComputeEnvironmentHasBeenSet() const { return m_computeEnvironmentHasBeenSet; }
45 template <typename ComputeEnvironmentT = Aws::String>
46 void SetComputeEnvironment(ComputeEnvironmentT&& value) {
47 m_computeEnvironmentHasBeenSet = true;
48 m_computeEnvironment = std::forward<ComputeEnvironmentT>(value);
49 }
50 template <typename ComputeEnvironmentT = Aws::String>
52 SetComputeEnvironment(std::forward<ComputeEnvironmentT>(value));
53 return *this;
54 }
56
58
81 inline CEState GetState() const { return m_state; }
82 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
83 inline void SetState(CEState value) {
84 m_stateHasBeenSet = true;
85 m_state = value;
86 }
88 SetState(value);
89 return *this;
90 }
92
94
101 inline int GetUnmanagedvCpus() const { return m_unmanagedvCpus; }
102 inline bool UnmanagedvCpusHasBeenSet() const { return m_unmanagedvCpusHasBeenSet; }
103 inline void SetUnmanagedvCpus(int value) {
104 m_unmanagedvCpusHasBeenSet = true;
105 m_unmanagedvCpus = value;
106 }
108 SetUnmanagedvCpus(value);
109 return *this;
110 }
112
114
120 inline const ComputeResourceUpdate& GetComputeResources() const { return m_computeResources; }
121 inline bool ComputeResourcesHasBeenSet() const { return m_computeResourcesHasBeenSet; }
122 template <typename ComputeResourcesT = ComputeResourceUpdate>
123 void SetComputeResources(ComputeResourcesT&& value) {
124 m_computeResourcesHasBeenSet = true;
125 m_computeResources = std::forward<ComputeResourcesT>(value);
126 }
127 template <typename ComputeResourcesT = ComputeResourceUpdate>
129 SetComputeResources(std::forward<ComputeResourcesT>(value));
130 return *this;
131 }
133
135
158 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
159 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
160 template <typename ServiceRoleT = Aws::String>
161 void SetServiceRole(ServiceRoleT&& value) {
162 m_serviceRoleHasBeenSet = true;
163 m_serviceRole = std::forward<ServiceRoleT>(value);
164 }
165 template <typename ServiceRoleT = Aws::String>
167 SetServiceRole(std::forward<ServiceRoleT>(value));
168 return *this;
169 }
171
173
179 inline const UpdatePolicy& GetUpdatePolicy() const { return m_updatePolicy; }
180 inline bool UpdatePolicyHasBeenSet() const { return m_updatePolicyHasBeenSet; }
181 template <typename UpdatePolicyT = UpdatePolicy>
182 void SetUpdatePolicy(UpdatePolicyT&& value) {
183 m_updatePolicyHasBeenSet = true;
184 m_updatePolicy = std::forward<UpdatePolicyT>(value);
185 }
186 template <typename UpdatePolicyT = UpdatePolicy>
188 SetUpdatePolicy(std::forward<UpdatePolicyT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::String& GetContext() const { return m_context; }
198 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
199 template <typename ContextT = Aws::String>
200 void SetContext(ContextT&& value) {
201 m_contextHasBeenSet = true;
202 m_context = std::forward<ContextT>(value);
203 }
204 template <typename ContextT = Aws::String>
206 SetContext(std::forward<ContextT>(value));
207 return *this;
208 }
210 private:
211 Aws::String m_computeEnvironment;
212
213 CEState m_state{CEState::NOT_SET};
214
215 int m_unmanagedvCpus{0};
216
217 ComputeResourceUpdate m_computeResources;
218
219 Aws::String m_serviceRole;
220
221 UpdatePolicy m_updatePolicy;
222
223 Aws::String m_context;
224 bool m_computeEnvironmentHasBeenSet = false;
225 bool m_stateHasBeenSet = false;
226 bool m_unmanagedvCpusHasBeenSet = false;
227 bool m_computeResourcesHasBeenSet = false;
228 bool m_serviceRoleHasBeenSet = false;
229 bool m_updatePolicyHasBeenSet = false;
230 bool m_contextHasBeenSet = false;
231};
232
233} // namespace Model
234} // namespace Batch
235} // 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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String