7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/batch/model/CRUpdateAllocationStrategy.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/batch/model/LaunchTemplateSpecification.h>
13#include <aws/batch/model/CRType.h>
14#include <aws/batch/model/Ec2Configuration.h>
59 inline void SetMinvCpus(
int value) { m_minvCpusHasBeenSet =
true; m_minvCpus = value; }
76 inline void SetMaxvCpus(
int value) { m_maxvCpusHasBeenSet =
true; m_maxvCpus = value; }
98 inline void SetDesiredvCpus(
int value) { m_desiredvCpusHasBeenSet =
true; m_desiredvCpus = value; }
255 inline void SetEc2KeyPair(
const char* value) { m_ec2KeyPairHasBeenSet =
true; m_ec2KeyPair.assign(value); }
282 inline void SetInstanceRole(
const char* value) { m_instanceRoleHasBeenSet =
true; m_instanceRole.assign(value); }
340 inline void SetPlacementGroup(
const char* value) { m_placementGroupHasBeenSet =
true; m_placementGroup.assign(value); }
363 inline void SetBidPercentage(
int value) { m_bidPercentageHasBeenSet =
true; m_bidPercentage = value; }
459 inline void SetType(
const CRType& value) { m_typeHasBeenSet =
true; m_type = value; }
460 inline void SetType(
CRType&& value) { m_typeHasBeenSet =
true; m_type = std::move(value); }
490 inline void SetImageId(
const char* value) { m_imageIdHasBeenSet =
true; m_imageId.assign(value); }
498 bool m_minvCpusHasBeenSet =
false;
501 bool m_maxvCpusHasBeenSet =
false;
504 bool m_desiredvCpusHasBeenSet =
false;
507 bool m_subnetsHasBeenSet =
false;
510 bool m_securityGroupIdsHasBeenSet =
false;
513 bool m_allocationStrategyHasBeenSet =
false;
516 bool m_instanceTypesHasBeenSet =
false;
519 bool m_ec2KeyPairHasBeenSet =
false;
522 bool m_instanceRoleHasBeenSet =
false;
525 bool m_tagsHasBeenSet =
false;
528 bool m_placementGroupHasBeenSet =
false;
531 bool m_bidPercentageHasBeenSet =
false;
534 bool m_launchTemplateHasBeenSet =
false;
537 bool m_ec2ConfigurationHasBeenSet =
false;
539 bool m_updateToLatestImageVersion;
540 bool m_updateToLatestImageVersionHasBeenSet =
false;
543 bool m_typeHasBeenSet =
false;
546 bool m_imageIdHasBeenSet =
false;
bool GetUpdateToLatestImageVersion() const
ComputeResourceUpdate & WithEc2Configuration(const Aws::Vector< Ec2Configuration > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ComputeResourceUpdate & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
ComputeResourceUpdate & AddTags(Aws::String &&key, const Aws::String &value)
ComputeResourceUpdate & AddSecurityGroupIds(const Aws::String &value)
ComputeResourceUpdate & WithImageId(const char *value)
ComputeResourceUpdate & AddTags(Aws::String &&key, const char *value)
const CRUpdateAllocationStrategy & GetAllocationStrategy() const
int GetBidPercentage() const
void SetInstanceTypes(Aws::Vector< Aws::String > &&value)
bool PlacementGroupHasBeenSet() const
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetInstanceRole(const char *value)
void SetEc2KeyPair(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetSubnets(const Aws::Vector< Aws::String > &value)
AWS_BATCH_API ComputeResourceUpdate()
const CRType & GetType() const
ComputeResourceUpdate & WithInstanceRole(Aws::String &&value)
AWS_BATCH_API ComputeResourceUpdate(Aws::Utils::Json::JsonView jsonValue)
ComputeResourceUpdate & WithAllocationStrategy(CRUpdateAllocationStrategy &&value)
bool InstanceRoleHasBeenSet() const
ComputeResourceUpdate & WithPlacementGroup(Aws::String &&value)
ComputeResourceUpdate & WithPlacementGroup(const char *value)
ComputeResourceUpdate & AddTags(const char *key, const char *value)
const Aws::String & GetImageId() const
ComputeResourceUpdate & WithEc2KeyPair(Aws::String &&value)
ComputeResourceUpdate & AddSecurityGroupIds(const char *value)
ComputeResourceUpdate & AddSubnets(const Aws::String &value)
ComputeResourceUpdate & WithImageId(const Aws::String &value)
ComputeResourceUpdate & WithUpdateToLatestImageVersion(bool value)
const LaunchTemplateSpecification & GetLaunchTemplate() const
void SetBidPercentage(int value)
bool AllocationStrategyHasBeenSet() const
ComputeResourceUpdate & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
ComputeResourceUpdate & WithDesiredvCpus(int value)
bool LaunchTemplateHasBeenSet() const
const Aws::String & GetPlacementGroup() const
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
bool Ec2ConfigurationHasBeenSet() const
const Aws::Vector< Aws::String > & GetInstanceTypes() const
ComputeResourceUpdate & WithEc2KeyPair(const Aws::String &value)
bool ImageIdHasBeenSet() const
bool DesiredvCpusHasBeenSet() const
bool BidPercentageHasBeenSet() const
void SetInstanceTypes(const Aws::Vector< Aws::String > &value)
ComputeResourceUpdate & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
ComputeResourceUpdate & AddSecurityGroupIds(Aws::String &&value)
ComputeResourceUpdate & WithLaunchTemplate(const LaunchTemplateSpecification &value)
ComputeResourceUpdate & WithInstanceRole(const Aws::String &value)
ComputeResourceUpdate & WithAllocationStrategy(const CRUpdateAllocationStrategy &value)
void SetPlacementGroup(Aws::String &&value)
void SetEc2Configuration(const Aws::Vector< Ec2Configuration > &value)
bool SecurityGroupIdsHasBeenSet() const
ComputeResourceUpdate & AddEc2Configuration(Ec2Configuration &&value)
void SetPlacementGroup(const Aws::String &value)
ComputeResourceUpdate & WithLaunchTemplate(LaunchTemplateSpecification &&value)
ComputeResourceUpdate & AddSubnets(Aws::String &&value)
const Aws::Vector< Ec2Configuration > & GetEc2Configuration() const
ComputeResourceUpdate & AddTags(Aws::String &&key, Aws::String &&value)
void SetType(CRType &&value)
ComputeResourceUpdate & WithInstanceTypes(const Aws::Vector< Aws::String > &value)
ComputeResourceUpdate & WithInstanceRole(const char *value)
ComputeResourceUpdate & AddInstanceTypes(const Aws::String &value)
void SetInstanceRole(Aws::String &&value)
bool MaxvCpusHasBeenSet() const
void SetSubnets(Aws::Vector< Aws::String > &&value)
ComputeResourceUpdate & AddTags(const char *key, Aws::String &&value)
void SetEc2KeyPair(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSubnets() const
void SetInstanceRole(const Aws::String &value)
void SetEc2KeyPair(const char *value)
bool UpdateToLatestImageVersionHasBeenSet() const
bool Ec2KeyPairHasBeenSet() const
const Aws::String & GetEc2KeyPair() const
ComputeResourceUpdate & WithSubnets(Aws::Vector< Aws::String > &&value)
int GetDesiredvCpus() const
bool SubnetsHasBeenSet() const
ComputeResourceUpdate & AddTags(const Aws::String &key, Aws::String &&value)
void SetMinvCpus(int value)
ComputeResourceUpdate & WithType(const CRType &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetMaxvCpus(int value)
AWS_BATCH_API ComputeResourceUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
ComputeResourceUpdate & WithSubnets(const Aws::Vector< Aws::String > &value)
ComputeResourceUpdate & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
void SetLaunchTemplate(const LaunchTemplateSpecification &value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
void SetImageId(const Aws::String &value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
ComputeResourceUpdate & WithInstanceTypes(Aws::Vector< Aws::String > &&value)
ComputeResourceUpdate & AddEc2Configuration(const Ec2Configuration &value)
ComputeResourceUpdate & AddInstanceTypes(const char *value)
const Aws::String & GetInstanceRole() const
ComputeResourceUpdate & AddTags(const Aws::String &key, const Aws::String &value)
void SetPlacementGroup(const char *value)
ComputeResourceUpdate & WithPlacementGroup(const Aws::String &value)
ComputeResourceUpdate & WithBidPercentage(int value)
void SetImageId(const char *value)
bool InstanceTypesHasBeenSet() const
ComputeResourceUpdate & WithImageId(Aws::String &&value)
void SetEc2Configuration(Aws::Vector< Ec2Configuration > &&value)
ComputeResourceUpdate & AddInstanceTypes(Aws::String &&value)
void SetUpdateToLatestImageVersion(bool value)
ComputeResourceUpdate & WithEc2KeyPair(const char *value)
bool MinvCpusHasBeenSet() const
void SetAllocationStrategy(CRUpdateAllocationStrategy &&value)
void SetDesiredvCpus(int value)
void SetImageId(Aws::String &&value)
void SetType(const CRType &value)
ComputeResourceUpdate & WithEc2Configuration(Aws::Vector< Ec2Configuration > &&value)
void SetLaunchTemplate(LaunchTemplateSpecification &&value)
ComputeResourceUpdate & WithMinvCpus(int value)
bool TypeHasBeenSet() const
bool TagsHasBeenSet() const
void SetAllocationStrategy(const CRUpdateAllocationStrategy &value)
ComputeResourceUpdate & AddSubnets(const char *value)
ComputeResourceUpdate & WithType(CRType &&value)
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