7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/CRAllocationStrategy.h>
9#include <aws/batch/model/CRType.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/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
59 m_typeHasBeenSet =
true;
150 m_allocationStrategyHasBeenSet =
true;
151 m_allocationStrategy = value;
169 m_minvCpusHasBeenSet =
true;
189 m_maxvCpusHasBeenSet =
true;
208 m_desiredvCpusHasBeenSet =
true;
209 m_desiredvCpus = value;
259 template <
typename InstanceTypesT = Aws::Vector<Aws::String>>
261 m_instanceTypesHasBeenSet =
true;
262 m_instanceTypes = std::forward<InstanceTypesT>(value);
264 template <
typename InstanceTypesT = Aws::Vector<Aws::String>>
269 template <
typename InstanceTypesT = Aws::String>
271 m_instanceTypesHasBeenSet =
true;
272 m_instanceTypes.emplace_back(std::forward<InstanceTypesT>(value));
300 template <
typename SubnetsT = Aws::Vector<Aws::String>>
302 m_subnetsHasBeenSet =
true;
303 m_subnets = std::forward<SubnetsT>(value);
305 template <
typename SubnetsT = Aws::Vector<Aws::String>>
310 template <
typename SubnetsT = Aws::String>
312 m_subnetsHasBeenSet =
true;
313 m_subnets.emplace_back(std::forward<SubnetsT>(value));
331 template <
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
333 m_securityGroupIdsHasBeenSet =
true;
334 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
336 template <
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
341 template <
typename SecurityGroupIdsT = Aws::String>
343 m_securityGroupIdsHasBeenSet =
true;
344 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
358 template <
typename Ec2KeyPairT = Aws::String>
360 m_ec2KeyPairHasBeenSet =
true;
361 m_ec2KeyPair = std::forward<Ec2KeyPairT>(value);
363 template <
typename Ec2KeyPairT = Aws::String>
385 template <
typename InstanceRoleT = Aws::String>
387 m_instanceRoleHasBeenSet =
true;
388 m_instanceRole = std::forward<InstanceRoleT>(value);
390 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));
447 template <
typename PlacementGroupT = Aws::String>
449 m_placementGroupHasBeenSet =
true;
450 m_placementGroup = std::forward<PlacementGroupT>(value);
452 template <
typename PlacementGroupT = Aws::String>
474 m_bidPercentageHasBeenSet =
true;
475 m_bidPercentage = value;
503 template <
typename SpotIamFleetRoleT = Aws::String>
505 m_spotIamFleetRoleHasBeenSet =
true;
506 m_spotIamFleetRole = std::forward<SpotIamFleetRoleT>(value);
508 template <
typename SpotIamFleetRoleT = Aws::String>
530 template <
typename LaunchTemplateT = LaunchTemplateSpecification>
532 m_launchTemplateHasBeenSet =
true;
533 m_launchTemplate = std::forward<LaunchTemplateT>(value);
535 template <
typename LaunchTemplateT = LaunchTemplateSpecification>
554 template <
typename Ec2ConfigurationT = Aws::Vector<Ec2Configuration>>
556 m_ec2ConfigurationHasBeenSet =
true;
557 m_ec2Configuration = std::forward<Ec2ConfigurationT>(value);
559 template <
typename Ec2ConfigurationT = Aws::Vector<Ec2Configuration>>
564 template <
typename Ec2ConfigurationT = Ec2Configuration>
566 m_ec2ConfigurationHasBeenSet =
true;
567 m_ec2Configuration.emplace_back(std::forward<Ec2ConfigurationT>(value));
580 template <
typename ScalingPolicyT = ComputeScalingPolicy>
582 m_scalingPolicyHasBeenSet =
true;
583 m_scalingPolicy = std::forward<ScalingPolicyT>(value);
585 template <
typename ScalingPolicyT = ComputeScalingPolicy>
600 int m_desiredvCpus{0};
616 int m_bidPercentage{0};
620 LaunchTemplateSpecification m_launchTemplate;
624 ComputeScalingPolicy m_scalingPolicy;
625 bool m_typeHasBeenSet =
false;
626 bool m_allocationStrategyHasBeenSet =
false;
627 bool m_minvCpusHasBeenSet =
false;
628 bool m_maxvCpusHasBeenSet =
false;
629 bool m_desiredvCpusHasBeenSet =
false;
630 bool m_instanceTypesHasBeenSet =
false;
631 bool m_subnetsHasBeenSet =
false;
632 bool m_securityGroupIdsHasBeenSet =
false;
633 bool m_ec2KeyPairHasBeenSet =
false;
634 bool m_instanceRoleHasBeenSet =
false;
635 bool m_tagsHasBeenSet =
false;
636 bool m_placementGroupHasBeenSet =
false;
637 bool m_bidPercentageHasBeenSet =
false;
638 bool m_spotIamFleetRoleHasBeenSet =
false;
639 bool m_launchTemplateHasBeenSet =
false;
640 bool m_ec2ConfigurationHasBeenSet =
false;
641 bool m_scalingPolicyHasBeenSet =
false;
ComputeResource & AddSubnets(SubnetsT &&value)
bool LaunchTemplateHasBeenSet() const
void SetInstanceTypes(InstanceTypesT &&value)
bool SubnetsHasBeenSet() const
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
ComputeResource & WithMaxvCpus(int value)
void SetPlacementGroup(PlacementGroupT &&value)
bool InstanceRoleHasBeenSet() const
ComputeResource & AddEc2Configuration(Ec2ConfigurationT &&value)
ComputeResource & WithScalingPolicy(ScalingPolicyT &&value)
ComputeResource & WithSecurityGroupIds(SecurityGroupIdsT &&value)
void SetSubnets(SubnetsT &&value)
ComputeResource & WithSpotIamFleetRole(SpotIamFleetRoleT &&value)
bool SecurityGroupIdsHasBeenSet() const
void SetMinvCpus(int value)
AWS_BATCH_API ComputeResource(Aws::Utils::Json::JsonView jsonValue)
void SetType(CRType value)
void SetTags(TagsT &&value)
ComputeResource & AddTags(TagsKeyT &&key, TagsValueT &&value)
bool TypeHasBeenSet() const
CRAllocationStrategy GetAllocationStrategy() const
const Aws::String & GetInstanceRole() const
void SetSpotIamFleetRole(SpotIamFleetRoleT &&value)
void SetMaxvCpus(int value)
void SetInstanceRole(InstanceRoleT &&value)
bool Ec2KeyPairHasBeenSet() const
bool BidPercentageHasBeenSet() const
void SetEc2Configuration(Ec2ConfigurationT &&value)
const LaunchTemplateSpecification & GetLaunchTemplate() const
ComputeResource & AddSecurityGroupIds(SecurityGroupIdsT &&value)
ComputeResource & WithMinvCpus(int value)
ComputeResource & WithInstanceRole(InstanceRoleT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
ComputeResource & WithBidPercentage(int value)
void SetAllocationStrategy(CRAllocationStrategy value)
ComputeResource & AddInstanceTypes(InstanceTypesT &&value)
ComputeResource & WithDesiredvCpus(int value)
void SetDesiredvCpus(int value)
bool TagsHasBeenSet() const
bool ScalingPolicyHasBeenSet() const
bool DesiredvCpusHasBeenSet() const
void SetEc2KeyPair(Ec2KeyPairT &&value)
ComputeResource & WithEc2KeyPair(Ec2KeyPairT &&value)
void SetScalingPolicy(ScalingPolicyT &&value)
ComputeResource & WithType(CRType value)
ComputeResource & WithAllocationStrategy(CRAllocationStrategy value)
AWS_BATCH_API ComputeResource()=default
bool MaxvCpusHasBeenSet() const
void SetLaunchTemplate(LaunchTemplateT &&value)
const Aws::String & GetEc2KeyPair() const
const ComputeScalingPolicy & GetScalingPolicy() const
bool PlacementGroupHasBeenSet() const
void SetBidPercentage(int value)
bool SpotIamFleetRoleHasBeenSet() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
ComputeResource & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool AllocationStrategyHasBeenSet() const
AWS_BATCH_API ComputeResource & operator=(Aws::Utils::Json::JsonView jsonValue)
int GetBidPercentage() const
const Aws::Vector< Ec2Configuration > & GetEc2Configuration() const
bool MinvCpusHasBeenSet() const
ComputeResource & WithPlacementGroup(PlacementGroupT &&value)
const Aws::String & GetSpotIamFleetRole() const
ComputeResource & WithSubnets(SubnetsT &&value)
const Aws::Vector< Aws::String > & GetSubnets() const
const Aws::Vector< Aws::String > & GetInstanceTypes() const
const Aws::String & GetPlacementGroup() const
ComputeResource & WithInstanceTypes(InstanceTypesT &&value)
int GetDesiredvCpus() const
ComputeResource & WithEc2Configuration(Ec2ConfigurationT &&value)
ComputeResource & WithLaunchTemplate(LaunchTemplateT &&value)
bool InstanceTypesHasBeenSet() const
bool Ec2ConfigurationHasBeenSet() 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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue