@Generated(value="software.amazon.awssdk:codegen") public final class TargetCapacitySpecification extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TargetCapacitySpecification.Builder,TargetCapacitySpecification>
The number of units to request. You can choose to set the target capacity in terms of instances or a performance
characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is
maintain
, you can specify a target capacity of 0 and add capacity later.
Modifier and Type | Class and Description |
---|---|
static interface |
TargetCapacitySpecification.Builder |
Modifier and Type | Method and Description |
---|---|
static TargetCapacitySpecification.Builder |
builder() |
DefaultTargetCapacityType |
defaultTargetCapacityType()
The default
TotalTargetCapacity , which is either Spot or On-Demand . |
String |
defaultTargetCapacityTypeAsString()
The default
TotalTargetCapacity , which is either Spot or On-Demand . |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
onDemandTargetCapacity()
The number of On-Demand units to request.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends TargetCapacitySpecification.Builder> |
serializableBuilderClass() |
Integer |
spotTargetCapacity()
The maximum number of Spot units to launch.
|
TargetCapacitySpecification.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Integer |
totalTargetCapacity()
The number of units to request, filled using
DefaultTargetCapacityType . |
copy
public Integer totalTargetCapacity()
The number of units to request, filled using DefaultTargetCapacityType
.
DefaultTargetCapacityType
.public Integer onDemandTargetCapacity()
The number of On-Demand units to request.
public Integer spotTargetCapacity()
The maximum number of Spot units to launch.
public DefaultTargetCapacityType defaultTargetCapacityType()
The default TotalTargetCapacity
, which is either Spot
or On-Demand
.
If the service returns an enum value that is not available in the current SDK version,
defaultTargetCapacityType
will return DefaultTargetCapacityType.UNKNOWN_TO_SDK_VERSION
. The raw
value returned by the service is available from defaultTargetCapacityTypeAsString()
.
TotalTargetCapacity
, which is either Spot
or On-Demand
.DefaultTargetCapacityType
public String defaultTargetCapacityTypeAsString()
The default TotalTargetCapacity
, which is either Spot
or On-Demand
.
If the service returns an enum value that is not available in the current SDK version,
defaultTargetCapacityType
will return DefaultTargetCapacityType.UNKNOWN_TO_SDK_VERSION
. The raw
value returned by the service is available from defaultTargetCapacityTypeAsString()
.
TotalTargetCapacity
, which is either Spot
or On-Demand
.DefaultTargetCapacityType
public TargetCapacitySpecification.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<TargetCapacitySpecification.Builder,TargetCapacitySpecification>
public static TargetCapacitySpecification.Builder builder()
public static Class<? extends TargetCapacitySpecification.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.