AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateComputeEnvironmentRequest.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/BatchRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/batch/model/CEState.h>
11#include <aws/batch/model/ComputeResourceUpdate.h>
12#include <aws/batch/model/UpdatePolicy.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Batch
18{
19namespace Model
20{
21
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "UpdateComputeEnvironment"; }
38
39 AWS_BATCH_API Aws::String SerializePayload() const override;
40
41
43
47 inline const Aws::String& GetComputeEnvironment() const{ return m_computeEnvironment; }
48 inline bool ComputeEnvironmentHasBeenSet() const { return m_computeEnvironmentHasBeenSet; }
49 inline void SetComputeEnvironment(const Aws::String& value) { m_computeEnvironmentHasBeenSet = true; m_computeEnvironment = value; }
50 inline void SetComputeEnvironment(Aws::String&& value) { m_computeEnvironmentHasBeenSet = true; m_computeEnvironment = std::move(value); }
51 inline void SetComputeEnvironment(const char* value) { m_computeEnvironmentHasBeenSet = true; m_computeEnvironment.assign(value); }
54 inline UpdateComputeEnvironmentRequest& WithComputeEnvironment(const char* value) { SetComputeEnvironment(value); return *this;}
56
58
81 inline const CEState& GetState() const{ return m_state; }
82 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
83 inline void SetState(const CEState& value) { m_stateHasBeenSet = true; m_state = value; }
84 inline void SetState(CEState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
85 inline UpdateComputeEnvironmentRequest& WithState(const CEState& value) { SetState(value); return *this;}
86 inline UpdateComputeEnvironmentRequest& WithState(CEState&& value) { SetState(std::move(value)); return *this;}
88
90
97 inline int GetUnmanagedvCpus() const{ return m_unmanagedvCpus; }
98 inline bool UnmanagedvCpusHasBeenSet() const { return m_unmanagedvCpusHasBeenSet; }
99 inline void SetUnmanagedvCpus(int value) { m_unmanagedvCpusHasBeenSet = true; m_unmanagedvCpus = value; }
100 inline UpdateComputeEnvironmentRequest& WithUnmanagedvCpus(int value) { SetUnmanagedvCpus(value); return *this;}
102
104
110 inline const ComputeResourceUpdate& GetComputeResources() const{ return m_computeResources; }
111 inline bool ComputeResourcesHasBeenSet() const { return m_computeResourcesHasBeenSet; }
112 inline void SetComputeResources(const ComputeResourceUpdate& value) { m_computeResourcesHasBeenSet = true; m_computeResources = value; }
113 inline void SetComputeResources(ComputeResourceUpdate&& value) { m_computeResourcesHasBeenSet = true; m_computeResources = std::move(value); }
117
119
142 inline const Aws::String& GetServiceRole() const{ return m_serviceRole; }
143 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
144 inline void SetServiceRole(const Aws::String& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = value; }
145 inline void SetServiceRole(Aws::String&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::move(value); }
146 inline void SetServiceRole(const char* value) { m_serviceRoleHasBeenSet = true; m_serviceRole.assign(value); }
147 inline UpdateComputeEnvironmentRequest& WithServiceRole(const Aws::String& value) { SetServiceRole(value); return *this;}
148 inline UpdateComputeEnvironmentRequest& WithServiceRole(Aws::String&& value) { SetServiceRole(std::move(value)); return *this;}
149 inline UpdateComputeEnvironmentRequest& WithServiceRole(const char* value) { SetServiceRole(value); return *this;}
151
153
159 inline const UpdatePolicy& GetUpdatePolicy() const{ return m_updatePolicy; }
160 inline bool UpdatePolicyHasBeenSet() const { return m_updatePolicyHasBeenSet; }
161 inline void SetUpdatePolicy(const UpdatePolicy& value) { m_updatePolicyHasBeenSet = true; m_updatePolicy = value; }
162 inline void SetUpdatePolicy(UpdatePolicy&& value) { m_updatePolicyHasBeenSet = true; m_updatePolicy = std::move(value); }
164 inline UpdateComputeEnvironmentRequest& WithUpdatePolicy(UpdatePolicy&& value) { SetUpdatePolicy(std::move(value)); return *this;}
166
168
171 inline const Aws::String& GetContext() const{ return m_context; }
172 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
173 inline void SetContext(const Aws::String& value) { m_contextHasBeenSet = true; m_context = value; }
174 inline void SetContext(Aws::String&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
175 inline void SetContext(const char* value) { m_contextHasBeenSet = true; m_context.assign(value); }
176 inline UpdateComputeEnvironmentRequest& WithContext(const Aws::String& value) { SetContext(value); return *this;}
177 inline UpdateComputeEnvironmentRequest& WithContext(Aws::String&& value) { SetContext(std::move(value)); return *this;}
178 inline UpdateComputeEnvironmentRequest& WithContext(const char* value) { SetContext(value); return *this;}
180 private:
181
182 Aws::String m_computeEnvironment;
183 bool m_computeEnvironmentHasBeenSet = false;
184
185 CEState m_state;
186 bool m_stateHasBeenSet = false;
187
188 int m_unmanagedvCpus;
189 bool m_unmanagedvCpusHasBeenSet = false;
190
191 ComputeResourceUpdate m_computeResources;
192 bool m_computeResourcesHasBeenSet = false;
193
194 Aws::String m_serviceRole;
195 bool m_serviceRoleHasBeenSet = false;
196
197 UpdatePolicy m_updatePolicy;
198 bool m_updatePolicyHasBeenSet = false;
199
200 Aws::String m_context;
201 bool m_contextHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace Batch
206} // namespace Aws
UpdateComputeEnvironmentRequest & WithComputeEnvironment(const char *value)
UpdateComputeEnvironmentRequest & WithContext(const char *value)
AWS_BATCH_API Aws::String SerializePayload() const override
UpdateComputeEnvironmentRequest & WithServiceRole(const char *value)
UpdateComputeEnvironmentRequest & WithServiceRole(const Aws::String &value)
UpdateComputeEnvironmentRequest & WithContext(const Aws::String &value)
UpdateComputeEnvironmentRequest & WithServiceRole(Aws::String &&value)
UpdateComputeEnvironmentRequest & WithComputeResources(ComputeResourceUpdate &&value)
UpdateComputeEnvironmentRequest & WithUpdatePolicy(UpdatePolicy &&value)
UpdateComputeEnvironmentRequest & WithContext(Aws::String &&value)
UpdateComputeEnvironmentRequest & WithComputeResources(const ComputeResourceUpdate &value)
UpdateComputeEnvironmentRequest & WithComputeEnvironment(const Aws::String &value)
UpdateComputeEnvironmentRequest & WithUpdatePolicy(const UpdatePolicy &value)
UpdateComputeEnvironmentRequest & WithUnmanagedvCpus(int value)
UpdateComputeEnvironmentRequest & WithComputeEnvironment(Aws::String &&value)
UpdateComputeEnvironmentRequest & WithState(CEState &&value)
UpdateComputeEnvironmentRequest & WithState(const CEState &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String