AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
31 AWS_BATCH_API UpdateComputeEnvironmentRequest() = default;
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 template<typename ComputeEnvironmentT = Aws::String>
50 void SetComputeEnvironment(ComputeEnvironmentT&& value) { m_computeEnvironmentHasBeenSet = true; m_computeEnvironment = std::forward<ComputeEnvironmentT>(value); }
51 template<typename ComputeEnvironmentT = Aws::String>
52 UpdateComputeEnvironmentRequest& WithComputeEnvironment(ComputeEnvironmentT&& value) { SetComputeEnvironment(std::forward<ComputeEnvironmentT>(value)); return *this;}
54
56
79 inline CEState GetState() const { return m_state; }
80 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
81 inline void SetState(CEState value) { m_stateHasBeenSet = true; m_state = value; }
82 inline UpdateComputeEnvironmentRequest& WithState(CEState value) { SetState(value); return *this;}
84
86
93 inline int GetUnmanagedvCpus() const { return m_unmanagedvCpus; }
94 inline bool UnmanagedvCpusHasBeenSet() const { return m_unmanagedvCpusHasBeenSet; }
95 inline void SetUnmanagedvCpus(int value) { m_unmanagedvCpusHasBeenSet = true; m_unmanagedvCpus = value; }
96 inline UpdateComputeEnvironmentRequest& WithUnmanagedvCpus(int value) { SetUnmanagedvCpus(value); return *this;}
98
100
106 inline const ComputeResourceUpdate& GetComputeResources() const { return m_computeResources; }
107 inline bool ComputeResourcesHasBeenSet() const { return m_computeResourcesHasBeenSet; }
108 template<typename ComputeResourcesT = ComputeResourceUpdate>
109 void SetComputeResources(ComputeResourcesT&& value) { m_computeResourcesHasBeenSet = true; m_computeResources = std::forward<ComputeResourcesT>(value); }
110 template<typename ComputeResourcesT = ComputeResourceUpdate>
111 UpdateComputeEnvironmentRequest& WithComputeResources(ComputeResourcesT&& value) { SetComputeResources(std::forward<ComputeResourcesT>(value)); return *this;}
113
115
138 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
139 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
140 template<typename ServiceRoleT = Aws::String>
141 void SetServiceRole(ServiceRoleT&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::forward<ServiceRoleT>(value); }
142 template<typename ServiceRoleT = Aws::String>
143 UpdateComputeEnvironmentRequest& WithServiceRole(ServiceRoleT&& value) { SetServiceRole(std::forward<ServiceRoleT>(value)); return *this;}
145
147
153 inline const UpdatePolicy& GetUpdatePolicy() const { return m_updatePolicy; }
154 inline bool UpdatePolicyHasBeenSet() const { return m_updatePolicyHasBeenSet; }
155 template<typename UpdatePolicyT = UpdatePolicy>
156 void SetUpdatePolicy(UpdatePolicyT&& value) { m_updatePolicyHasBeenSet = true; m_updatePolicy = std::forward<UpdatePolicyT>(value); }
157 template<typename UpdatePolicyT = UpdatePolicy>
158 UpdateComputeEnvironmentRequest& WithUpdatePolicy(UpdatePolicyT&& value) { SetUpdatePolicy(std::forward<UpdatePolicyT>(value)); return *this;}
160
162
165 inline const Aws::String& GetContext() const { return m_context; }
166 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
167 template<typename ContextT = Aws::String>
168 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
169 template<typename ContextT = Aws::String>
170 UpdateComputeEnvironmentRequest& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
172 private:
173
174 Aws::String m_computeEnvironment;
175 bool m_computeEnvironmentHasBeenSet = false;
176
177 CEState m_state{CEState::NOT_SET};
178 bool m_stateHasBeenSet = false;
179
180 int m_unmanagedvCpus{0};
181 bool m_unmanagedvCpusHasBeenSet = false;
182
183 ComputeResourceUpdate m_computeResources;
184 bool m_computeResourcesHasBeenSet = false;
185
186 Aws::String m_serviceRole;
187 bool m_serviceRoleHasBeenSet = false;
188
189 UpdatePolicy m_updatePolicy;
190 bool m_updatePolicyHasBeenSet = false;
191
192 Aws::String m_context;
193 bool m_contextHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace Batch
198} // 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