@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ComputeResourceUpdate extends Object implements Serializable, Cloneable, StructuredPojo
An object representing the attributes of a compute environment that can be updated. For more information, see Compute Environments in the AWS Batch User Guide.
Constructor and Description |
---|
ComputeResourceUpdate() |
Modifier and Type | Method and Description |
---|---|
ComputeResourceUpdate |
clone() |
boolean |
equals(Object obj) |
Integer |
getDesiredvCpus()
The desired number of Amazon EC2 vCPUS in the compute environment.
|
Integer |
getMaxvCpus()
The maximum number of Amazon EC2 vCPUs that an environment can reach.
|
Integer |
getMinvCpus()
The minimum number of Amazon EC2 vCPUs that an environment should maintain.
|
List<String> |
getSecurityGroupIds()
The Amazon EC2 security groups associated with instances launched in the compute environment.
|
List<String> |
getSubnets()
The VPC subnets that the compute resources are launched into.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDesiredvCpus(Integer desiredvCpus)
The desired number of Amazon EC2 vCPUS in the compute environment.
|
void |
setMaxvCpus(Integer maxvCpus)
The maximum number of Amazon EC2 vCPUs that an environment can reach.
|
void |
setMinvCpus(Integer minvCpus)
The minimum number of Amazon EC2 vCPUs that an environment should maintain.
|
void |
setSecurityGroupIds(Collection<String> securityGroupIds)
The Amazon EC2 security groups associated with instances launched in the compute environment.
|
void |
setSubnets(Collection<String> subnets)
The VPC subnets that the compute resources are launched into.
|
String |
toString()
Returns a string representation of this object.
|
ComputeResourceUpdate |
withDesiredvCpus(Integer desiredvCpus)
The desired number of Amazon EC2 vCPUS in the compute environment.
|
ComputeResourceUpdate |
withMaxvCpus(Integer maxvCpus)
The maximum number of Amazon EC2 vCPUs that an environment can reach.
|
ComputeResourceUpdate |
withMinvCpus(Integer minvCpus)
The minimum number of Amazon EC2 vCPUs that an environment should maintain.
|
ComputeResourceUpdate |
withSecurityGroupIds(Collection<String> securityGroupIds)
The Amazon EC2 security groups associated with instances launched in the compute environment.
|
ComputeResourceUpdate |
withSecurityGroupIds(String... securityGroupIds)
The Amazon EC2 security groups associated with instances launched in the compute environment.
|
ComputeResourceUpdate |
withSubnets(Collection<String> subnets)
The VPC subnets that the compute resources are launched into.
|
ComputeResourceUpdate |
withSubnets(String... subnets)
The VPC subnets that the compute resources are launched into.
|
public void setMinvCpus(Integer minvCpus)
The minimum number of Amazon EC2 vCPUs that an environment should maintain.
This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
minvCpus
- The minimum number of Amazon EC2 vCPUs that an environment should maintain. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
public Integer getMinvCpus()
The minimum number of Amazon EC2 vCPUs that an environment should maintain.
This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
public ComputeResourceUpdate withMinvCpus(Integer minvCpus)
The minimum number of Amazon EC2 vCPUs that an environment should maintain.
This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
minvCpus
- The minimum number of Amazon EC2 vCPUs that an environment should maintain. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
public void setMaxvCpus(Integer maxvCpus)
The maximum number of Amazon EC2 vCPUs that an environment can reach.
With both BEST_FIT_PROGRESSIVE
and SPOT_CAPACITY_OPTIMIZED
allocation strategies, AWS
Batch might need to go above maxvCpus
to meet your capacity requirements. In this event, AWS Batch
will never go above maxvCpus
by more than a single instance (e.g., no more than a single instance
from among those specified in your compute environment).
maxvCpus
- The maximum number of Amazon EC2 vCPUs that an environment can reach.
With both BEST_FIT_PROGRESSIVE
and SPOT_CAPACITY_OPTIMIZED
allocation
strategies, AWS Batch might need to go above maxvCpus
to meet your capacity requirements. In
this event, AWS Batch will never go above maxvCpus
by more than a single instance (e.g., no
more than a single instance from among those specified in your compute environment).
public Integer getMaxvCpus()
The maximum number of Amazon EC2 vCPUs that an environment can reach.
With both BEST_FIT_PROGRESSIVE
and SPOT_CAPACITY_OPTIMIZED
allocation strategies, AWS
Batch might need to go above maxvCpus
to meet your capacity requirements. In this event, AWS Batch
will never go above maxvCpus
by more than a single instance (e.g., no more than a single instance
from among those specified in your compute environment).
With both BEST_FIT_PROGRESSIVE
and SPOT_CAPACITY_OPTIMIZED
allocation
strategies, AWS Batch might need to go above maxvCpus
to meet your capacity requirements. In
this event, AWS Batch will never go above maxvCpus
by more than a single instance (e.g., no
more than a single instance from among those specified in your compute environment).
public ComputeResourceUpdate withMaxvCpus(Integer maxvCpus)
The maximum number of Amazon EC2 vCPUs that an environment can reach.
With both BEST_FIT_PROGRESSIVE
and SPOT_CAPACITY_OPTIMIZED
allocation strategies, AWS
Batch might need to go above maxvCpus
to meet your capacity requirements. In this event, AWS Batch
will never go above maxvCpus
by more than a single instance (e.g., no more than a single instance
from among those specified in your compute environment).
maxvCpus
- The maximum number of Amazon EC2 vCPUs that an environment can reach.
With both BEST_FIT_PROGRESSIVE
and SPOT_CAPACITY_OPTIMIZED
allocation
strategies, AWS Batch might need to go above maxvCpus
to meet your capacity requirements. In
this event, AWS Batch will never go above maxvCpus
by more than a single instance (e.g., no
more than a single instance from among those specified in your compute environment).
public void setDesiredvCpus(Integer desiredvCpus)
The desired number of Amazon EC2 vCPUS in the compute environment.
This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
desiredvCpus
- The desired number of Amazon EC2 vCPUS in the compute environment. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
public Integer getDesiredvCpus()
The desired number of Amazon EC2 vCPUS in the compute environment.
This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
public ComputeResourceUpdate withDesiredvCpus(Integer desiredvCpus)
The desired number of Amazon EC2 vCPUS in the compute environment.
This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
desiredvCpus
- The desired number of Amazon EC2 vCPUS in the compute environment. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
public List<String> getSubnets()
The VPC subnets that the compute resources are launched into. This parameter is required for jobs running on Fargate compute resources, where it can contain up to 16 subnets. For more information, see VPCs and Subnets in the Amazon VPC User Guide. This can't be specified for EC2 compute resources. Providing an empty list will be handled as if this parameter wasn't specified and no change is made.
public void setSubnets(Collection<String> subnets)
The VPC subnets that the compute resources are launched into. This parameter is required for jobs running on Fargate compute resources, where it can contain up to 16 subnets. For more information, see VPCs and Subnets in the Amazon VPC User Guide. This can't be specified for EC2 compute resources. Providing an empty list will be handled as if this parameter wasn't specified and no change is made.
subnets
- The VPC subnets that the compute resources are launched into. This parameter is required for jobs running
on Fargate compute resources, where it can contain up to 16 subnets. For more information, see VPCs and Subnets in the
Amazon VPC User Guide. This can't be specified for EC2 compute resources. Providing an empty list
will be handled as if this parameter wasn't specified and no change is made.public ComputeResourceUpdate withSubnets(String... subnets)
The VPC subnets that the compute resources are launched into. This parameter is required for jobs running on Fargate compute resources, where it can contain up to 16 subnets. For more information, see VPCs and Subnets in the Amazon VPC User Guide. This can't be specified for EC2 compute resources. Providing an empty list will be handled as if this parameter wasn't specified and no change is made.
NOTE: This method appends the values to the existing list (if any). Use
setSubnets(java.util.Collection)
or withSubnets(java.util.Collection)
if you want to override
the existing values.
subnets
- The VPC subnets that the compute resources are launched into. This parameter is required for jobs running
on Fargate compute resources, where it can contain up to 16 subnets. For more information, see VPCs and Subnets in the
Amazon VPC User Guide. This can't be specified for EC2 compute resources. Providing an empty list
will be handled as if this parameter wasn't specified and no change is made.public ComputeResourceUpdate withSubnets(Collection<String> subnets)
The VPC subnets that the compute resources are launched into. This parameter is required for jobs running on Fargate compute resources, where it can contain up to 16 subnets. For more information, see VPCs and Subnets in the Amazon VPC User Guide. This can't be specified for EC2 compute resources. Providing an empty list will be handled as if this parameter wasn't specified and no change is made.
subnets
- The VPC subnets that the compute resources are launched into. This parameter is required for jobs running
on Fargate compute resources, where it can contain up to 16 subnets. For more information, see VPCs and Subnets in the
Amazon VPC User Guide. This can't be specified for EC2 compute resources. Providing an empty list
will be handled as if this parameter wasn't specified and no change is made.public List<String> getSecurityGroupIds()
The Amazon EC2 security groups associated with instances launched in the compute environment. This parameter is required for Fargate compute resources, where it can contain up to 5 security groups. This can't be specified for EC2 compute resources. Providing an empty list is handled as if this parameter wasn't specified and no change is made.
public void setSecurityGroupIds(Collection<String> securityGroupIds)
The Amazon EC2 security groups associated with instances launched in the compute environment. This parameter is required for Fargate compute resources, where it can contain up to 5 security groups. This can't be specified for EC2 compute resources. Providing an empty list is handled as if this parameter wasn't specified and no change is made.
securityGroupIds
- The Amazon EC2 security groups associated with instances launched in the compute environment. This
parameter is required for Fargate compute resources, where it can contain up to 5 security groups. This
can't be specified for EC2 compute resources. Providing an empty list is handled as if this parameter
wasn't specified and no change is made.public ComputeResourceUpdate withSecurityGroupIds(String... securityGroupIds)
The Amazon EC2 security groups associated with instances launched in the compute environment. This parameter is required for Fargate compute resources, where it can contain up to 5 security groups. This can't be specified for EC2 compute resources. Providing an empty list is handled as if this parameter wasn't specified and no change is made.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroupIds(java.util.Collection)
or withSecurityGroupIds(java.util.Collection)
if you
want to override the existing values.
securityGroupIds
- The Amazon EC2 security groups associated with instances launched in the compute environment. This
parameter is required for Fargate compute resources, where it can contain up to 5 security groups. This
can't be specified for EC2 compute resources. Providing an empty list is handled as if this parameter
wasn't specified and no change is made.public ComputeResourceUpdate withSecurityGroupIds(Collection<String> securityGroupIds)
The Amazon EC2 security groups associated with instances launched in the compute environment. This parameter is required for Fargate compute resources, where it can contain up to 5 security groups. This can't be specified for EC2 compute resources. Providing an empty list is handled as if this parameter wasn't specified and no change is made.
securityGroupIds
- The Amazon EC2 security groups associated with instances launched in the compute environment. This
parameter is required for Fargate compute resources, where it can contain up to 5 security groups. This
can't be specified for EC2 compute resources. Providing an empty list is handled as if this parameter
wasn't specified and no change is made.public String toString()
toString
in class Object
Object.toString()
public ComputeResourceUpdate clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.