7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/CRType.h>
9#include <aws/batch/model/CRUpdateAllocationStrategy.h>
10#include <aws/batch/model/Ec2Configuration.h>
11#include <aws/batch/model/LaunchTemplateSpecification.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
54 m_minvCpusHasBeenSet =
true;
77 m_maxvCpusHasBeenSet =
true;
105 m_desiredvCpusHasBeenSet =
true;
106 m_desiredvCpus = value;
141 template <
typename SubnetsT = Aws::Vector<Aws::String>>
143 m_subnetsHasBeenSet =
true;
144 m_subnets = std::forward<SubnetsT>(value);
146 template <
typename SubnetsT = Aws::Vector<Aws::String>>
151 template <
typename SubnetsT = Aws::String>
153 m_subnetsHasBeenSet =
true;
154 m_subnets.emplace_back(std::forward<SubnetsT>(value));
175 template <
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
177 m_securityGroupIdsHasBeenSet =
true;
178 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
180 template <
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
185 template <
typename SecurityGroupIdsT = Aws::String>
187 m_securityGroupIdsHasBeenSet =
true;
188 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
232 m_allocationStrategyHasBeenSet =
true;
233 m_allocationStrategy = value;
290 template <
typename InstanceTypesT = Aws::Vector<Aws::String>>
292 m_instanceTypesHasBeenSet =
true;
293 m_instanceTypes = std::forward<InstanceTypesT>(value);
295 template <
typename InstanceTypesT = Aws::Vector<Aws::String>>
300 template <
typename InstanceTypesT = Aws::String>
302 m_instanceTypesHasBeenSet =
true;
303 m_instanceTypes.emplace_back(std::forward<InstanceTypesT>(value));
322 template <
typename Ec2KeyPairT = Aws::String>
324 m_ec2KeyPairHasBeenSet =
true;
325 m_ec2KeyPair = std::forward<Ec2KeyPairT>(value);
327 template <
typename Ec2KeyPairT = Aws::String>
353 template <
typename InstanceRoleT = Aws::String>
355 m_instanceRoleHasBeenSet =
true;
356 m_instanceRole = std::forward<InstanceRoleT>(value);
358 template <
typename InstanceRoleT = Aws::String>
383 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
385 m_tagsHasBeenSet =
true;
386 m_tags = std::forward<TagsT>(value);
388 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
390 SetTags(std::forward<TagsT>(value));
393 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
395 m_tagsHasBeenSet =
true;
396 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
420 template <
typename PlacementGroupT = Aws::String>
422 m_placementGroupHasBeenSet =
true;
423 m_placementGroup = std::forward<PlacementGroupT>(value);
425 template <
typename PlacementGroupT = Aws::String>
450 m_bidPercentageHasBeenSet =
true;
451 m_bidPercentage = value;
481 template <
typename LaunchTemplateT = LaunchTemplateSpecification>
483 m_launchTemplateHasBeenSet =
true;
484 m_launchTemplate = std::forward<LaunchTemplateT>(value);
486 template <
typename LaunchTemplateT = LaunchTemplateSpecification>
509 template <
typename Ec2ConfigurationT = Aws::Vector<Ec2Configuration>>
511 m_ec2ConfigurationHasBeenSet =
true;
512 m_ec2Configuration = std::forward<Ec2ConfigurationT>(value);
514 template <
typename Ec2ConfigurationT = Aws::Vector<Ec2Configuration>>
519 template <
typename Ec2ConfigurationT = Ec2Configuration>
521 m_ec2ConfigurationHasBeenSet =
true;
522 m_ec2Configuration.emplace_back(std::forward<Ec2ConfigurationT>(value));
547 m_updateToLatestImageVersionHasBeenSet =
true;
548 m_updateToLatestImageVersion = value;
574 m_typeHasBeenSet =
true;
606 template <
typename ImageIdT = Aws::String>
608 m_imageIdHasBeenSet =
true;
609 m_imageId = std::forward<ImageIdT>(value);
611 template <
typename ImageIdT = Aws::String>
622 int m_desiredvCpus{0};
640 int m_bidPercentage{0};
642 LaunchTemplateSpecification m_launchTemplate;
646 bool m_updateToLatestImageVersion{
false};
651 bool m_minvCpusHasBeenSet =
false;
652 bool m_maxvCpusHasBeenSet =
false;
653 bool m_desiredvCpusHasBeenSet =
false;
654 bool m_subnetsHasBeenSet =
false;
655 bool m_securityGroupIdsHasBeenSet =
false;
656 bool m_allocationStrategyHasBeenSet =
false;
657 bool m_instanceTypesHasBeenSet =
false;
658 bool m_ec2KeyPairHasBeenSet =
false;
659 bool m_instanceRoleHasBeenSet =
false;
660 bool m_tagsHasBeenSet =
false;
661 bool m_placementGroupHasBeenSet =
false;
662 bool m_bidPercentageHasBeenSet =
false;
663 bool m_launchTemplateHasBeenSet =
false;
664 bool m_ec2ConfigurationHasBeenSet =
false;
665 bool m_updateToLatestImageVersionHasBeenSet =
false;
666 bool m_typeHasBeenSet =
false;
667 bool m_imageIdHasBeenSet =
false;
bool GetUpdateToLatestImageVersion() const
ComputeResourceUpdate & AddSecurityGroupIds(SecurityGroupIdsT &&value)
void SetInstanceRole(InstanceRoleT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ComputeResourceUpdate & WithImageId(ImageIdT &&value)
void SetEc2Configuration(Ec2ConfigurationT &&value)
int GetBidPercentage() const
void SetAllocationStrategy(CRUpdateAllocationStrategy value)
void SetPlacementGroup(PlacementGroupT &&value)
ComputeResourceUpdate & WithType(CRType value)
bool PlacementGroupHasBeenSet() const
void SetLaunchTemplate(LaunchTemplateT &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BATCH_API ComputeResourceUpdate(Aws::Utils::Json::JsonView jsonValue)
bool InstanceRoleHasBeenSet() const
ComputeResourceUpdate & WithInstanceRole(InstanceRoleT &&value)
ComputeResourceUpdate & WithInstanceTypes(InstanceTypesT &&value)
const Aws::String & GetImageId() const
void SetInstanceTypes(InstanceTypesT &&value)
ComputeResourceUpdate & AddEc2Configuration(Ec2ConfigurationT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
ComputeResourceUpdate & AddInstanceTypes(InstanceTypesT &&value)
ComputeResourceUpdate & WithUpdateToLatestImageVersion(bool value)
const LaunchTemplateSpecification & GetLaunchTemplate() const
void SetBidPercentage(int value)
bool AllocationStrategyHasBeenSet() const
ComputeResourceUpdate & WithTags(TagsT &&value)
ComputeResourceUpdate & WithDesiredvCpus(int value)
void SetEc2KeyPair(Ec2KeyPairT &&value)
ComputeResourceUpdate & WithEc2Configuration(Ec2ConfigurationT &&value)
bool LaunchTemplateHasBeenSet() const
const Aws::String & GetPlacementGroup() const
bool Ec2ConfigurationHasBeenSet() const
const Aws::Vector< Aws::String > & GetInstanceTypes() const
bool ImageIdHasBeenSet() const
bool DesiredvCpusHasBeenSet() const
bool BidPercentageHasBeenSet() const
CRUpdateAllocationStrategy GetAllocationStrategy() const
ComputeResourceUpdate & WithEc2KeyPair(Ec2KeyPairT &&value)
bool SecurityGroupIdsHasBeenSet() const
ComputeResourceUpdate & WithSubnets(SubnetsT &&value)
const Aws::Vector< Ec2Configuration > & GetEc2Configuration() const
ComputeResourceUpdate & WithLaunchTemplate(LaunchTemplateT &&value)
ComputeResourceUpdate & AddSubnets(SubnetsT &&value)
ComputeResourceUpdate & WithPlacementGroup(PlacementGroupT &&value)
bool MaxvCpusHasBeenSet() const
const Aws::Vector< Aws::String > & GetSubnets() const
bool UpdateToLatestImageVersionHasBeenSet() const
bool Ec2KeyPairHasBeenSet() const
void SetType(CRType value)
void SetSubnets(SubnetsT &&value)
const Aws::String & GetEc2KeyPair() const
int GetDesiredvCpus() const
bool SubnetsHasBeenSet() const
void SetMinvCpus(int value)
void SetMaxvCpus(int value)
AWS_BATCH_API ComputeResourceUpdate()=default
AWS_BATCH_API ComputeResourceUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
ComputeResourceUpdate & WithSecurityGroupIds(SecurityGroupIdsT &&value)
ComputeResourceUpdate & WithAllocationStrategy(CRUpdateAllocationStrategy value)
const Aws::String & GetInstanceRole() const
void SetTags(TagsT &&value)
void SetImageId(ImageIdT &&value)
ComputeResourceUpdate & WithBidPercentage(int value)
bool InstanceTypesHasBeenSet() const
void SetUpdateToLatestImageVersion(bool value)
bool MinvCpusHasBeenSet() const
ComputeResourceUpdate & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetDesiredvCpus(int value)
ComputeResourceUpdate & WithMinvCpus(int value)
bool TypeHasBeenSet() const
bool TagsHasBeenSet() const
ComputeResourceUpdate & WithMaxvCpus(int value)
CRUpdateAllocationStrategy
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue