@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 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 where the compute resources are launched. | 
| 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 where the compute resources are launched. | 
| 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 where the compute resources are launched. | 
| ComputeResourceUpdate | withSubnets(String... subnets)
 The VPC subnets where the compute resources are launched. | 
public void setMinvCpus(Integer minvCpus)
The minimum number of Amazon EC2 vCPUs that an environment should maintain.
This parameter isn't applicable to jobs that are 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 that are 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 that are running on Fargate resources, and shouldn't be specified.
This parameter isn't applicable to jobs that are 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 that are 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 that are 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, Batch
 might need to exceed maxvCpus to meet your capacity requirements. In this event, Batch never exceeds
 maxvCpus by more than a single instance. That is, 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, Batch might need to exceed maxvCpus to meet your capacity requirements. In this
        event, Batch never exceeds maxvCpus by more than a single instance. That is, 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, Batch
 might need to exceed maxvCpus to meet your capacity requirements. In this event, Batch never exceeds
 maxvCpus by more than a single instance. That is, 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, Batch might need to exceed maxvCpus to meet your capacity requirements. In this
         event, Batch never exceeds maxvCpus by more than a single instance. That is, 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, Batch
 might need to exceed maxvCpus to meet your capacity requirements. In this event, Batch never exceeds
 maxvCpus by more than a single instance. That is, 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, Batch might need to exceed maxvCpus to meet your capacity requirements. In this
        event, Batch never exceeds maxvCpus by more than a single instance. That is, 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 that are 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 that are 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 that are running on Fargate resources, and shouldn't be specified.
This parameter isn't applicable to jobs that are 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 that are 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 that are running on Fargate resources, and shouldn't be specified.
public List<String> getSubnets()
The VPC subnets where the compute resources are launched. Fargate compute resources can contain up to 16 subnets. Providing an empty list will be handled as if this parameter wasn't specified and no change is made. This can't be specified for EC2 compute resources. For more information, see VPCs and Subnets in the Amazon VPC User Guide.
public void setSubnets(Collection<String> subnets)
The VPC subnets where the compute resources are launched. Fargate compute resources can contain up to 16 subnets. Providing an empty list will be handled as if this parameter wasn't specified and no change is made. This can't be specified for EC2 compute resources. For more information, see VPCs and Subnets in the Amazon VPC User Guide.
subnets - The VPC subnets where the compute resources are launched. Fargate compute resources can contain up to 16
        subnets. Providing an empty list will be handled as if this parameter wasn't specified and no change is
        made. This can't be specified for EC2 compute resources. For more information, see VPCs and Subnets in the
        Amazon VPC User Guide.public ComputeResourceUpdate withSubnets(String... subnets)
The VPC subnets where the compute resources are launched. Fargate compute resources can contain up to 16 subnets. Providing an empty list will be handled as if this parameter wasn't specified and no change is made. This can't be specified for EC2 compute resources. For more information, see VPCs and Subnets in the Amazon VPC User Guide.
 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 where the compute resources are launched. Fargate compute resources can contain up to 16
        subnets. Providing an empty list will be handled as if this parameter wasn't specified and no change is
        made. This can't be specified for EC2 compute resources. For more information, see VPCs and Subnets in the
        Amazon VPC User Guide.public ComputeResourceUpdate withSubnets(Collection<String> subnets)
The VPC subnets where the compute resources are launched. Fargate compute resources can contain up to 16 subnets. Providing an empty list will be handled as if this parameter wasn't specified and no change is made. This can't be specified for EC2 compute resources. For more information, see VPCs and Subnets in the Amazon VPC User Guide.
subnets - The VPC subnets where the compute resources are launched. Fargate compute resources can contain up to 16
        subnets. Providing an empty list will be handled as if this parameter wasn't specified and no change is
        made. This can't be specified for EC2 compute resources. For more information, see VPCs and Subnets in the
        Amazon VPC User Guide.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 ObjectObject.toString()public ComputeResourceUpdate clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.