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>
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>
67 inline void SetType(
CEType value) { m_typeHasBeenSet =
true; m_type = value; }
96 inline void SetState(
CEState value) { m_stateHasBeenSet =
true; m_state = value; }
111 inline void SetUnmanagedvCpus(
int value) { m_unmanagedvCpusHasBeenSet =
true; m_unmanagedvCpus = value; }
125 template<
typename ComputeResourcesT = ComputeResource>
126 void SetComputeResources(ComputeResourcesT&& value) { m_computeResourcesHasBeenSet =
true; m_computeResources = std::forward<ComputeResourcesT>(value); }
127 template<
typename ComputeResourcesT = ComputeResource>
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>
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>>
184 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
186 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
197 template<
typename EksConfigurationT = EksConfiguration>
198 void SetEksConfiguration(EksConfigurationT&& value) { m_eksConfigurationHasBeenSet =
true; m_eksConfiguration = std::forward<EksConfigurationT>(value); }
199 template<
typename EksConfigurationT = EksConfiguration>
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>
217 bool m_computeEnvironmentNameHasBeenSet =
false;
220 bool m_typeHasBeenSet =
false;
223 bool m_stateHasBeenSet =
false;
225 int m_unmanagedvCpus{0};
226 bool m_unmanagedvCpusHasBeenSet =
false;
228 ComputeResource m_computeResources;
229 bool m_computeResourcesHasBeenSet =
false;
232 bool m_serviceRoleHasBeenSet =
false;
235 bool m_tagsHasBeenSet =
false;
237 EksConfiguration m_eksConfiguration;
238 bool m_eksConfigurationHasBeenSet =
false;
241 bool m_contextHasBeenSet =
false;
CreateComputeEnvironmentRequest & WithTags(TagsT &&value)
CreateComputeEnvironmentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetType(CEType value)
void SetState(CEState value)
CreateComputeEnvironmentRequest & WithServiceRole(ServiceRoleT &&value)
void SetUnmanagedvCpus(int value)
AWS_BATCH_API CreateComputeEnvironmentRequest()=default
void SetComputeResources(ComputeResourcesT &&value)
bool ContextHasBeenSet() const
CreateComputeEnvironmentRequest & WithUnmanagedvCpus(int value)
CreateComputeEnvironmentRequest & WithState(CEState value)
CreateComputeEnvironmentRequest & WithContext(ContextT &&value)
bool EksConfigurationHasBeenSet() const
CreateComputeEnvironmentRequest & WithType(CEType value)
const ComputeResource & GetComputeResources() const
int GetUnmanagedvCpus() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool StateHasBeenSet() const
CreateComputeEnvironmentRequest & WithComputeEnvironmentName(ComputeEnvironmentNameT &&value)
bool TypeHasBeenSet() const
bool ServiceRoleHasBeenSet() const
CreateComputeEnvironmentRequest & WithComputeResources(ComputeResourcesT &&value)
AWS_BATCH_API Aws::String SerializePayload() const override
bool ComputeEnvironmentNameHasBeenSet() const
bool UnmanagedvCpusHasBeenSet() const
const Aws::String & GetServiceRole() const
virtual const char * GetServiceRequestName() const override
void SetTags(TagsT &&value)
void SetEksConfiguration(EksConfigurationT &&value)
void SetComputeEnvironmentName(ComputeEnvironmentNameT &&value)
const EksConfiguration & GetEksConfiguration() const
void SetServiceRole(ServiceRoleT &&value)
const Aws::String & GetContext() const
bool TagsHasBeenSet() const
const Aws::String & GetComputeEnvironmentName() const
CreateComputeEnvironmentRequest & WithEksConfiguration(EksConfigurationT &&value)
void SetContext(ContextT &&value)
bool ComputeResourcesHasBeenSet() const
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