7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/CRType.h>
9#include <aws/batch/model/CRAllocationStrategy.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/batch/model/LaunchTemplateSpecification.h>
14#include <aws/batch/model/Ec2Configuration.h>
62 inline void SetType(
const CRType& value) { m_typeHasBeenSet =
true; m_type = value; }
63 inline void SetType(
CRType&& value) { m_typeHasBeenSet =
true; m_type = std::move(value); }
129 inline void SetMinvCpus(
int value) { m_minvCpusHasBeenSet =
true; m_minvCpus = value; }
146 inline void SetMaxvCpus(
int value) { m_maxvCpusHasBeenSet =
true; m_maxvCpus = value; }
159 inline void SetDesiredvCpus(
int value) { m_desiredvCpusHasBeenSet =
true; m_desiredvCpus = value; }
254 inline void SetEc2KeyPair(
const char* value) { m_ec2KeyPairHasBeenSet =
true; m_ec2KeyPair.assign(value); }
277 inline void SetInstanceRole(
const char* value) { m_instanceRoleHasBeenSet =
true; m_instanceRole.assign(value); }
310 inline ComputeResource&
AddTags(
const char* key,
const char* value) { m_tagsHasBeenSet =
true; m_tags.emplace(key, value);
return *
this; }
330 inline void SetPlacementGroup(
const char* value) { m_placementGroupHasBeenSet =
true; m_placementGroup.assign(value); }
350 inline void SetBidPercentage(
int value) { m_bidPercentageHasBeenSet =
true; m_bidPercentage = value; }
376 inline void SetSpotIamFleetRole(
const char* value) { m_spotIamFleetRoleHasBeenSet =
true; m_spotIamFleetRole.assign(value); }
424 bool m_typeHasBeenSet =
false;
427 bool m_allocationStrategyHasBeenSet =
false;
430 bool m_minvCpusHasBeenSet =
false;
433 bool m_maxvCpusHasBeenSet =
false;
436 bool m_desiredvCpusHasBeenSet =
false;
439 bool m_instanceTypesHasBeenSet =
false;
442 bool m_subnetsHasBeenSet =
false;
445 bool m_securityGroupIdsHasBeenSet =
false;
448 bool m_ec2KeyPairHasBeenSet =
false;
451 bool m_instanceRoleHasBeenSet =
false;
454 bool m_tagsHasBeenSet =
false;
457 bool m_placementGroupHasBeenSet =
false;
460 bool m_bidPercentageHasBeenSet =
false;
463 bool m_spotIamFleetRoleHasBeenSet =
false;
466 bool m_launchTemplateHasBeenSet =
false;
469 bool m_ec2ConfigurationHasBeenSet =
false;
ComputeResource & AddEc2Configuration(const Ec2Configuration &value)
ComputeResource & WithAllocationStrategy(CRAllocationStrategy &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
ComputeResource & WithInstanceRole(const Aws::String &value)
bool LaunchTemplateHasBeenSet() const
ComputeResource & AddSubnets(const Aws::String &value)
ComputeResource & WithSpotIamFleetRole(const char *value)
void SetLaunchTemplate(const LaunchTemplateSpecification &value)
bool SubnetsHasBeenSet() const
ComputeResource & WithEc2KeyPair(const char *value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSpotIamFleetRole(Aws::String &&value)
ComputeResource & WithMaxvCpus(int value)
void SetInstanceTypes(const Aws::Vector< Aws::String > &value)
ComputeResource & WithSpotIamFleetRole(const Aws::String &value)
const CRType & GetType() const
bool InstanceRoleHasBeenSet() const
ComputeResource & WithEc2KeyPair(Aws::String &&value)
ComputeResource & WithInstanceRole(Aws::String &&value)
ComputeResource & WithPlacementGroup(Aws::String &&value)
bool SecurityGroupIdsHasBeenSet() const
ComputeResource & WithSpotIamFleetRole(Aws::String &&value)
void SetMinvCpus(int value)
AWS_BATCH_API ComputeResource(Aws::Utils::Json::JsonView jsonValue)
bool TypeHasBeenSet() const
void SetLaunchTemplate(LaunchTemplateSpecification &&value)
const Aws::String & GetInstanceRole() const
void SetSpotIamFleetRole(const Aws::String &value)
void SetInstanceRole(Aws::String &&value)
ComputeResource & AddTags(const char *key, Aws::String &&value)
ComputeResource & WithEc2Configuration(Aws::Vector< Ec2Configuration > &&value)
void SetAllocationStrategy(const CRAllocationStrategy &value)
void SetMaxvCpus(int value)
void SetPlacementGroup(const Aws::String &value)
ComputeResource & AddInstanceTypes(const Aws::String &value)
bool Ec2KeyPairHasBeenSet() const
bool BidPercentageHasBeenSet() const
const LaunchTemplateSpecification & GetLaunchTemplate() const
ComputeResource & WithMinvCpus(int value)
void SetPlacementGroup(const char *value)
void SetEc2KeyPair(const char *value)
ComputeResource & AddTags(Aws::String &&key, const char *value)
ComputeResource & WithAllocationStrategy(const CRAllocationStrategy &value)
ComputeResource & WithBidPercentage(int value)
ComputeResource & AddEc2Configuration(Ec2Configuration &&value)
ComputeResource & AddSecurityGroupIds(const char *value)
ComputeResource & WithPlacementGroup(const char *value)
void SetSubnets(const Aws::Vector< Aws::String > &value)
ComputeResource & AddTags(Aws::String &&key, const Aws::String &value)
void SetType(CRType &&value)
ComputeResource & AddTags(const char *key, const char *value)
ComputeResource & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
ComputeResource & AddSecurityGroupIds(Aws::String &&value)
void SetInstanceRole(const char *value)
void SetInstanceRole(const Aws::String &value)
ComputeResource & WithDesiredvCpus(int value)
void SetDesiredvCpus(int value)
void SetEc2KeyPair(const Aws::String &value)
void SetSpotIamFleetRole(const char *value)
bool TagsHasBeenSet() const
bool DesiredvCpusHasBeenSet() const
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
ComputeResource & AddSubnets(const char *value)
ComputeResource & WithSubnets(Aws::Vector< Aws::String > &&value)
void SetSubnets(Aws::Vector< Aws::String > &&value)
ComputeResource & WithType(const CRType &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetEc2Configuration(Aws::Vector< Ec2Configuration > &&value)
const CRAllocationStrategy & GetAllocationStrategy() const
bool MaxvCpusHasBeenSet() const
ComputeResource & WithType(CRType &&value)
const Aws::String & GetEc2KeyPair() const
void SetInstanceTypes(Aws::Vector< Aws::String > &&value)
ComputeResource & WithLaunchTemplate(const LaunchTemplateSpecification &value)
bool PlacementGroupHasBeenSet() const
ComputeResource & AddTags(Aws::String &&key, Aws::String &&value)
void SetBidPercentage(int value)
ComputeResource & WithEc2KeyPair(const Aws::String &value)
bool SpotIamFleetRoleHasBeenSet() const
ComputeResource & AddSecurityGroupIds(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
ComputeResource & WithLaunchTemplate(LaunchTemplateSpecification &&value)
ComputeResource & AddTags(const Aws::String &key, Aws::String &&value)
ComputeResource & WithSubnets(const Aws::Vector< Aws::String > &value)
ComputeResource & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
ComputeResource & WithInstanceTypes(const Aws::Vector< Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetType(const CRType &value)
ComputeResource & WithInstanceRole(const char *value)
ComputeResource & AddSubnets(Aws::String &&value)
bool AllocationStrategyHasBeenSet() const
ComputeResource & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_BATCH_API ComputeResource & operator=(Aws::Utils::Json::JsonView jsonValue)
int GetBidPercentage() const
const Aws::Vector< Ec2Configuration > & GetEc2Configuration() const
bool MinvCpusHasBeenSet() const
ComputeResource & WithEc2Configuration(const Aws::Vector< Ec2Configuration > &value)
const Aws::String & GetSpotIamFleetRole() const
const Aws::Vector< Aws::String > & GetSubnets() const
void SetPlacementGroup(Aws::String &&value)
const Aws::Vector< Aws::String > & GetInstanceTypes() const
const Aws::String & GetPlacementGroup() const
void SetEc2KeyPair(Aws::String &&value)
void SetEc2Configuration(const Aws::Vector< Ec2Configuration > &value)
int GetDesiredvCpus() const
ComputeResource & WithPlacementGroup(const Aws::String &value)
void SetAllocationStrategy(CRAllocationStrategy &&value)
ComputeResource & AddInstanceTypes(const char *value)
ComputeResource & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
AWS_BATCH_API ComputeResource()
ComputeResource & AddTags(const Aws::String &key, const Aws::String &value)
ComputeResource & WithInstanceTypes(Aws::Vector< Aws::String > &&value)
ComputeResource & AddInstanceTypes(Aws::String &&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