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/ComputeScalingPolicy.h>
11#include <aws/batch/model/Ec2Configuration.h>
12#include <aws/batch/model/LaunchTemplateSpecification.h>
13#include <aws/batch/model/UpdateManagedInstancesProviderConfiguration.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
56 m_minvCpusHasBeenSet =
true;
76 m_maxvCpusHasBeenSet =
true;
104 m_desiredvCpusHasBeenSet =
true;
105 m_desiredvCpus = value;
140 template <
typename SubnetsT = Aws::Vector<Aws::String>>
142 m_subnetsHasBeenSet =
true;
143 m_subnets = std::forward<SubnetsT>(value);
145 template <
typename SubnetsT = Aws::Vector<Aws::String>>
150 template <
typename SubnetsT = Aws::String>
152 m_subnetsHasBeenSet =
true;
153 m_subnets.emplace_back(std::forward<SubnetsT>(value));
174 template <
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
176 m_securityGroupIdsHasBeenSet =
true;
177 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
179 template <
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
184 template <
typename SecurityGroupIdsT = Aws::String>
186 m_securityGroupIdsHasBeenSet =
true;
187 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
263 m_allocationStrategyHasBeenSet =
true;
264 m_allocationStrategy = value;
321 template <
typename InstanceTypesT = Aws::Vector<Aws::String>>
323 m_instanceTypesHasBeenSet =
true;
324 m_instanceTypes = std::forward<InstanceTypesT>(value);
326 template <
typename InstanceTypesT = Aws::Vector<Aws::String>>
331 template <
typename InstanceTypesT = Aws::String>
333 m_instanceTypesHasBeenSet =
true;
334 m_instanceTypes.emplace_back(std::forward<InstanceTypesT>(value));
353 template <
typename Ec2KeyPairT = Aws::String>
355 m_ec2KeyPairHasBeenSet =
true;
356 m_ec2KeyPair = std::forward<Ec2KeyPairT>(value);
358 template <
typename Ec2KeyPairT = Aws::String>
384 template <
typename InstanceRoleT = Aws::String>
386 m_instanceRoleHasBeenSet =
true;
387 m_instanceRole = std::forward<InstanceRoleT>(value);
389 template <
typename InstanceRoleT = Aws::String>
414 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
416 m_tagsHasBeenSet =
true;
417 m_tags = std::forward<TagsT>(value);
419 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
421 SetTags(std::forward<TagsT>(value));
424 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
426 m_tagsHasBeenSet =
true;
427 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
451 template <
typename PlacementGroupT = Aws::String>
453 m_placementGroupHasBeenSet =
true;
454 m_placementGroup = std::forward<PlacementGroupT>(value);
456 template <
typename PlacementGroupT = Aws::String>
481 m_bidPercentageHasBeenSet =
true;
482 m_bidPercentage = value;
512 template <
typename LaunchTemplateT = LaunchTemplateSpecification>
514 m_launchTemplateHasBeenSet =
true;
515 m_launchTemplate = std::forward<LaunchTemplateT>(value);
517 template <
typename LaunchTemplateT = LaunchTemplateSpecification>
541 template <
typename Ec2ConfigurationT = Aws::Vector<Ec2Configuration>>
543 m_ec2ConfigurationHasBeenSet =
true;
544 m_ec2Configuration = std::forward<Ec2ConfigurationT>(value);
546 template <
typename Ec2ConfigurationT = Aws::Vector<Ec2Configuration>>
551 template <
typename Ec2ConfigurationT = Ec2Configuration>
553 m_ec2ConfigurationHasBeenSet =
true;
554 m_ec2Configuration.emplace_back(std::forward<Ec2ConfigurationT>(value));
579 m_updateToLatestImageVersionHasBeenSet =
true;
580 m_updateToLatestImageVersion = value;
608 m_typeHasBeenSet =
true;
640 template <
typename ImageIdT = Aws::String>
642 m_imageIdHasBeenSet =
true;
643 m_imageId = std::forward<ImageIdT>(value);
645 template <
typename ImageIdT = Aws::String>
660 template <
typename ScalingPolicyT = ComputeScalingPolicy>
662 m_scalingPolicyHasBeenSet =
true;
663 m_scalingPolicy = std::forward<ScalingPolicyT>(value);
665 template <
typename ScalingPolicyT = ComputeScalingPolicy>
681 template <
typename ManagedInstancesProv
iderT = UpdateManagedInstancesProv
iderConfiguration>
683 m_managedInstancesProviderHasBeenSet =
true;
684 m_managedInstancesProvider = std::forward<ManagedInstancesProviderT>(value);
686 template <
typename ManagedInstancesProv
iderT = UpdateManagedInstancesProv
iderConfiguration>
702 template <
typename CapacityTagsT = Aws::Map<Aws::String, Aws::String>>
704 m_capacityTagsHasBeenSet =
true;
705 m_capacityTags = std::forward<CapacityTagsT>(value);
707 template <
typename CapacityTagsT = Aws::Map<Aws::String, Aws::String>>
712 template <
typename CapacityTagsKeyT = Aws::String,
typename CapacityTagsValueT = Aws::String>
714 m_capacityTagsHasBeenSet =
true;
715 m_capacityTags.emplace(std::forward<CapacityTagsKeyT>(key), std::forward<CapacityTagsValueT>(value));
724 int m_desiredvCpus{0};
742 int m_bidPercentage{0};
744 LaunchTemplateSpecification m_launchTemplate;
748 bool m_updateToLatestImageVersion{
false};
754 ComputeScalingPolicy m_scalingPolicy;
756 UpdateManagedInstancesProviderConfiguration m_managedInstancesProvider;
759 bool m_minvCpusHasBeenSet =
false;
760 bool m_maxvCpusHasBeenSet =
false;
761 bool m_desiredvCpusHasBeenSet =
false;
762 bool m_subnetsHasBeenSet =
false;
763 bool m_securityGroupIdsHasBeenSet =
false;
764 bool m_allocationStrategyHasBeenSet =
false;
765 bool m_instanceTypesHasBeenSet =
false;
766 bool m_ec2KeyPairHasBeenSet =
false;
767 bool m_instanceRoleHasBeenSet =
false;
768 bool m_tagsHasBeenSet =
false;
769 bool m_placementGroupHasBeenSet =
false;
770 bool m_bidPercentageHasBeenSet =
false;
771 bool m_launchTemplateHasBeenSet =
false;
772 bool m_ec2ConfigurationHasBeenSet =
false;
773 bool m_updateToLatestImageVersionHasBeenSet =
false;
774 bool m_typeHasBeenSet =
false;
775 bool m_imageIdHasBeenSet =
false;
776 bool m_scalingPolicyHasBeenSet =
false;
777 bool m_managedInstancesProviderHasBeenSet =
false;
778 bool m_capacityTagsHasBeenSet =
false;
void SetManagedInstancesProvider(ManagedInstancesProviderT &&value)
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
void SetCapacityTags(CapacityTagsT &&value)
ComputeResourceUpdate & WithManagedInstancesProvider(ManagedInstancesProviderT &&value)
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)
const ComputeScalingPolicy & GetScalingPolicy() const
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
ComputeResourceUpdate & WithScalingPolicy(ScalingPolicyT &&value)
CRUpdateAllocationStrategy GetAllocationStrategy() const
ComputeResourceUpdate & WithEc2KeyPair(Ec2KeyPairT &&value)
bool SecurityGroupIdsHasBeenSet() const
bool ScalingPolicyHasBeenSet() 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
ComputeResourceUpdate & AddCapacityTags(CapacityTagsKeyT &&key, CapacityTagsValueT &&value)
int GetDesiredvCpus() const
bool SubnetsHasBeenSet() const
bool CapacityTagsHasBeenSet() const
void SetMinvCpus(int value)
void SetScalingPolicy(ScalingPolicyT &&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 & WithCapacityTags(CapacityTagsT &&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
const Aws::Map< Aws::String, Aws::String > & GetCapacityTags() const
bool TagsHasBeenSet() const
bool ManagedInstancesProviderHasBeenSet() const
ComputeResourceUpdate & WithMaxvCpus(int value)
const UpdateManagedInstancesProviderConfiguration & GetManagedInstancesProvider() const
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