AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetComputeEnvironmentName(const Aws::String& value) { m_computeEnvironmentNameHasBeenSet = true; m_computeEnvironmentName = value; }
53 inline void SetComputeEnvironmentName(Aws::String&& value) { m_computeEnvironmentNameHasBeenSet = true; m_computeEnvironmentName = std::move(value); }
54 inline void SetComputeEnvironmentName(const char* value) { m_computeEnvironmentNameHasBeenSet = true; m_computeEnvironmentName.assign(value); }
59
61
67 inline const CEType& GetType() const{ return m_type; }
68 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
69 inline void SetType(const CEType& value) { m_typeHasBeenSet = true; m_type = value; }
70 inline void SetType(CEType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
71 inline CreateComputeEnvironmentRequest& WithType(const CEType& value) { SetType(value); return *this;}
72 inline CreateComputeEnvironmentRequest& WithType(CEType&& value) { SetType(std::move(value)); return *this;}
74
76
98 inline const CEState& GetState() const{ return m_state; }
99 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
100 inline void SetState(const CEState& value) { m_stateHasBeenSet = true; m_state = value; }
101 inline void SetState(CEState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
102 inline CreateComputeEnvironmentRequest& WithState(const CEState& value) { SetState(value); return *this;}
103 inline CreateComputeEnvironmentRequest& WithState(CEState&& value) { SetState(std::move(value)); return *this;}
105
107
115 inline int GetUnmanagedvCpus() const{ return m_unmanagedvCpus; }
116 inline bool UnmanagedvCpusHasBeenSet() const { return m_unmanagedvCpusHasBeenSet; }
117 inline void SetUnmanagedvCpus(int value) { m_unmanagedvCpusHasBeenSet = true; m_unmanagedvCpus = value; }
118 inline CreateComputeEnvironmentRequest& WithUnmanagedvCpus(int value) { SetUnmanagedvCpus(value); return *this;}
120
122
129 inline const ComputeResource& GetComputeResources() const{ return m_computeResources; }
130 inline bool ComputeResourcesHasBeenSet() const { return m_computeResourcesHasBeenSet; }
131 inline void SetComputeResources(const ComputeResource& value) { m_computeResourcesHasBeenSet = true; m_computeResources = value; }
132 inline void SetComputeResources(ComputeResource&& value) { m_computeResourcesHasBeenSet = true; m_computeResources = std::move(value); }
136
138
162 inline const Aws::String& GetServiceRole() const{ return m_serviceRole; }
163 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
164 inline void SetServiceRole(const Aws::String& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = value; }
165 inline void SetServiceRole(Aws::String&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::move(value); }
166 inline void SetServiceRole(const char* value) { m_serviceRoleHasBeenSet = true; m_serviceRole.assign(value); }
167 inline CreateComputeEnvironmentRequest& WithServiceRole(const Aws::String& value) { SetServiceRole(value); return *this;}
168 inline CreateComputeEnvironmentRequest& WithServiceRole(Aws::String&& value) { SetServiceRole(std::move(value)); return *this;}
169 inline CreateComputeEnvironmentRequest& WithServiceRole(const char* value) { SetServiceRole(value); return *this;}
171
173
186 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
187 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
188 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
189 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
191 inline CreateComputeEnvironmentRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
192 inline CreateComputeEnvironmentRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
193 inline CreateComputeEnvironmentRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
194 inline CreateComputeEnvironmentRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
195 inline CreateComputeEnvironmentRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
196 inline CreateComputeEnvironmentRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
197 inline CreateComputeEnvironmentRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
198 inline CreateComputeEnvironmentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
200
202
206 inline const EksConfiguration& GetEksConfiguration() const{ return m_eksConfiguration; }
207 inline bool EksConfigurationHasBeenSet() const { return m_eksConfigurationHasBeenSet; }
208 inline void SetEksConfiguration(const EksConfiguration& value) { m_eksConfigurationHasBeenSet = true; m_eksConfiguration = value; }
209 inline void SetEksConfiguration(EksConfiguration&& value) { m_eksConfigurationHasBeenSet = true; m_eksConfiguration = std::move(value); }
213
215
218 inline const Aws::String& GetContext() const{ return m_context; }
219 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
220 inline void SetContext(const Aws::String& value) { m_contextHasBeenSet = true; m_context = value; }
221 inline void SetContext(Aws::String&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
222 inline void SetContext(const char* value) { m_contextHasBeenSet = true; m_context.assign(value); }
223 inline CreateComputeEnvironmentRequest& WithContext(const Aws::String& value) { SetContext(value); return *this;}
224 inline CreateComputeEnvironmentRequest& WithContext(Aws::String&& value) { SetContext(std::move(value)); return *this;}
225 inline CreateComputeEnvironmentRequest& WithContext(const char* value) { SetContext(value); return *this;}
227 private:
228
229 Aws::String m_computeEnvironmentName;
230 bool m_computeEnvironmentNameHasBeenSet = false;
231
232 CEType m_type;
233 bool m_typeHasBeenSet = false;
234
235 CEState m_state;
236 bool m_stateHasBeenSet = false;
237
238 int m_unmanagedvCpus;
239 bool m_unmanagedvCpusHasBeenSet = false;
240
241 ComputeResource m_computeResources;
242 bool m_computeResourcesHasBeenSet = false;
243
244 Aws::String m_serviceRole;
245 bool m_serviceRoleHasBeenSet = false;
246
248 bool m_tagsHasBeenSet = false;
249
250 EksConfiguration m_eksConfiguration;
251 bool m_eksConfigurationHasBeenSet = false;
252
253 Aws::String m_context;
254 bool m_contextHasBeenSet = false;
255 };
256
257} // namespace Model
258} // namespace Batch
259} // namespace Aws
CreateComputeEnvironmentRequest & WithContext(const Aws::String &value)
CreateComputeEnvironmentRequest & WithComputeResources(ComputeResource &&value)
CreateComputeEnvironmentRequest & WithEksConfiguration(EksConfiguration &&value)
CreateComputeEnvironmentRequest & WithServiceRole(const char *value)
CreateComputeEnvironmentRequest & WithServiceRole(Aws::String &&value)
CreateComputeEnvironmentRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateComputeEnvironmentRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateComputeEnvironmentRequest & WithUnmanagedvCpus(int value)
CreateComputeEnvironmentRequest & AddTags(Aws::String &&key, const char *value)
CreateComputeEnvironmentRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateComputeEnvironmentRequest & WithComputeEnvironmentName(Aws::String &&value)
CreateComputeEnvironmentRequest & WithComputeEnvironmentName(const char *value)
CreateComputeEnvironmentRequest & AddTags(const char *key, const char *value)
CreateComputeEnvironmentRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateComputeEnvironmentRequest & AddTags(const char *key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateComputeEnvironmentRequest & WithServiceRole(const Aws::String &value)
CreateComputeEnvironmentRequest & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateComputeEnvironmentRequest & WithState(CEState &&value)
CreateComputeEnvironmentRequest & WithComputeResources(const ComputeResource &value)
CreateComputeEnvironmentRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_BATCH_API Aws::String SerializePayload() const override
CreateComputeEnvironmentRequest & WithState(const CEState &value)
CreateComputeEnvironmentRequest & WithContext(Aws::String &&value)
CreateComputeEnvironmentRequest & WithEksConfiguration(const EksConfiguration &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateComputeEnvironmentRequest & WithType(const CEType &value)
CreateComputeEnvironmentRequest & WithContext(const char *value)
CreateComputeEnvironmentRequest & WithComputeEnvironmentName(const Aws::String &value)
CreateComputeEnvironmentRequest & WithType(CEType &&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