AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateComputeEnvironmentRequest.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/CEType.h>
11#include <aws/batch/model/CEState.h>
12#include <aws/batch/model/ComputeResource.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/batch/model/EksConfiguration.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Batch
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_BATCH_API CreateComputeEnvironmentRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateComputeEnvironment"; }
40
41 AWS_BATCH_API Aws::String SerializePayload() const override;
42
43
45
50 inline const Aws::String& GetComputeEnvironmentName() const { return m_computeEnvironmentName; }
51 inline bool ComputeEnvironmentNameHasBeenSet() const { return m_computeEnvironmentNameHasBeenSet; }
52 template<typename ComputeEnvironmentNameT = Aws::String>
53 void SetComputeEnvironmentName(ComputeEnvironmentNameT&& value) { m_computeEnvironmentNameHasBeenSet = true; m_computeEnvironmentName = std::forward<ComputeEnvironmentNameT>(value); }
54 template<typename ComputeEnvironmentNameT = Aws::String>
55 CreateComputeEnvironmentRequest& WithComputeEnvironmentName(ComputeEnvironmentNameT&& value) { SetComputeEnvironmentName(std::forward<ComputeEnvironmentNameT>(value)); return *this;}
57
59
65 inline CEType GetType() const { return m_type; }
66 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
67 inline void SetType(CEType value) { m_typeHasBeenSet = true; m_type = value; }
68 inline CreateComputeEnvironmentRequest& WithType(CEType value) { SetType(value); return *this;}
70
72
94 inline CEState GetState() const { return m_state; }
95 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
96 inline void SetState(CEState value) { m_stateHasBeenSet = true; m_state = value; }
97 inline CreateComputeEnvironmentRequest& WithState(CEState value) { SetState(value); return *this;}
99
101
109 inline int GetUnmanagedvCpus() const { return m_unmanagedvCpus; }
110 inline bool UnmanagedvCpusHasBeenSet() const { return m_unmanagedvCpusHasBeenSet; }
111 inline void SetUnmanagedvCpus(int value) { m_unmanagedvCpusHasBeenSet = true; m_unmanagedvCpus = value; }
112 inline CreateComputeEnvironmentRequest& WithUnmanagedvCpus(int value) { SetUnmanagedvCpus(value); return *this;}
114
116
123 inline const ComputeResource& GetComputeResources() const { return m_computeResources; }
124 inline bool ComputeResourcesHasBeenSet() const { return m_computeResourcesHasBeenSet; }
125 template<typename ComputeResourcesT = ComputeResource>
126 void SetComputeResources(ComputeResourcesT&& value) { m_computeResourcesHasBeenSet = true; m_computeResources = std::forward<ComputeResourcesT>(value); }
127 template<typename ComputeResourcesT = ComputeResource>
128 CreateComputeEnvironmentRequest& WithComputeResources(ComputeResourcesT&& value) { SetComputeResources(std::forward<ComputeResourcesT>(value)); return *this;}
130
132
156 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
157 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
158 template<typename ServiceRoleT = Aws::String>
159 void SetServiceRole(ServiceRoleT&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::forward<ServiceRoleT>(value); }
160 template<typename ServiceRoleT = Aws::String>
161 CreateComputeEnvironmentRequest& WithServiceRole(ServiceRoleT&& value) { SetServiceRole(std::forward<ServiceRoleT>(value)); return *this;}
163
165
178 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
179 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
180 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
181 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
182 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
183 CreateComputeEnvironmentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
184 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
185 CreateComputeEnvironmentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
186 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
187 }
189
191
195 inline const EksConfiguration& GetEksConfiguration() const { return m_eksConfiguration; }
196 inline bool EksConfigurationHasBeenSet() const { return m_eksConfigurationHasBeenSet; }
197 template<typename EksConfigurationT = EksConfiguration>
198 void SetEksConfiguration(EksConfigurationT&& value) { m_eksConfigurationHasBeenSet = true; m_eksConfiguration = std::forward<EksConfigurationT>(value); }
199 template<typename EksConfigurationT = EksConfiguration>
200 CreateComputeEnvironmentRequest& WithEksConfiguration(EksConfigurationT&& value) { SetEksConfiguration(std::forward<EksConfigurationT>(value)); return *this;}
202
204
207 inline const Aws::String& GetContext() const { return m_context; }
208 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
209 template<typename ContextT = Aws::String>
210 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
211 template<typename ContextT = Aws::String>
212 CreateComputeEnvironmentRequest& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
214 private:
215
216 Aws::String m_computeEnvironmentName;
217 bool m_computeEnvironmentNameHasBeenSet = false;
218
219 CEType m_type{CEType::NOT_SET};
220 bool m_typeHasBeenSet = false;
221
222 CEState m_state{CEState::NOT_SET};
223 bool m_stateHasBeenSet = false;
224
225 int m_unmanagedvCpus{0};
226 bool m_unmanagedvCpusHasBeenSet = false;
227
228 ComputeResource m_computeResources;
229 bool m_computeResourcesHasBeenSet = false;
230
231 Aws::String m_serviceRole;
232 bool m_serviceRoleHasBeenSet = false;
233
235 bool m_tagsHasBeenSet = false;
236
237 EksConfiguration m_eksConfiguration;
238 bool m_eksConfigurationHasBeenSet = false;
239
240 Aws::String m_context;
241 bool m_contextHasBeenSet = false;
242 };
243
244} // namespace Model
245} // namespace Batch
246} // namespace Aws
CreateComputeEnvironmentRequest & WithTags(TagsT &&value)
CreateComputeEnvironmentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateComputeEnvironmentRequest & WithServiceRole(ServiceRoleT &&value)
CreateComputeEnvironmentRequest & WithUnmanagedvCpus(int value)
CreateComputeEnvironmentRequest & WithState(CEState value)
CreateComputeEnvironmentRequest & WithContext(ContextT &&value)
CreateComputeEnvironmentRequest & WithType(CEType value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateComputeEnvironmentRequest & WithComputeEnvironmentName(ComputeEnvironmentNameT &&value)
CreateComputeEnvironmentRequest & WithComputeResources(ComputeResourcesT &&value)
AWS_BATCH_API Aws::String SerializePayload() const override
CreateComputeEnvironmentRequest & WithEksConfiguration(EksConfigurationT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String