@Generated(value="software.amazon.awssdk:codegen") public final class ComputeResourceUpdate extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ComputeResourceUpdate.Builder,ComputeResourceUpdate>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ComputeResourceUpdate.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ComputeResourceUpdate.Builder |
builder() |
Integer |
desiredvCpus()
The desired number of Amazon EC2 vCPUS in the compute environment.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasSecurityGroupIds()
Returns true if the SecurityGroupIds property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasSubnets()
Returns true if the Subnets property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
Integer |
maxvCpus()
The maximum number of Amazon EC2 vCPUs that an environment can reach.
|
Integer |
minvCpus()
The minimum number of Amazon EC2 vCPUs that an environment should maintain.
|
List<SdkField<?>> |
sdkFields() |
List<String> |
securityGroupIds()
The Amazon EC2 security groups associated with instances launched in the compute environment.
|
static Class<? extends ComputeResourceUpdate.Builder> |
serializableBuilderClass() |
List<String> |
subnets()
The VPC subnets that the compute resources are launched into.
|
ComputeResourceUpdate.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
public final 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 exceed maxvCpus to meet your capacity requirements. In this event, AWS 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, AWS Batch might need to exceed maxvCpus to meet your capacity requirements. In
this event, AWS 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 final 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.
This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
public final boolean hasSubnets()
public final List<String> subnets()
The VPC subnets that the compute resources are launched into. 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasSubnets() to see if a value was sent in this field.
public final boolean hasSecurityGroupIds()
public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasSecurityGroupIds() to see if a value was sent in this field.
public ComputeResourceUpdate.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ComputeResourceUpdate.Builder,ComputeResourceUpdate>public static ComputeResourceUpdate.Builder builder()
public static Class<? extends ComputeResourceUpdate.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.