@Generated(value="software.amazon.awssdk:codegen") public final class CapacityAllocation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CapacityAllocation.Builder,CapacityAllocation>
Information about instance capacity usage for a Capacity Reservation.
Modifier and Type | Class and Description |
---|---|
static interface |
CapacityAllocation.Builder |
Modifier and Type | Method and Description |
---|---|
AllocationType |
allocationType()
The usage type.
|
String |
allocationTypeAsString()
The usage type.
|
static CapacityAllocation.Builder |
builder() |
Integer |
count()
The amount of instance capacity associated with the usage.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends CapacityAllocation.Builder> |
serializableBuilderClass() |
CapacityAllocation.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final AllocationType allocationType()
The usage type. used
indicates that the instance capacity is in use by instances that are running in
the Capacity Reservation.
If the service returns an enum value that is not available in the current SDK version, allocationType
will return AllocationType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from allocationTypeAsString()
.
used
indicates that the instance capacity is in use by instances that are
running in the Capacity Reservation.AllocationType
public final String allocationTypeAsString()
The usage type. used
indicates that the instance capacity is in use by instances that are running in
the Capacity Reservation.
If the service returns an enum value that is not available in the current SDK version, allocationType
will return AllocationType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from allocationTypeAsString()
.
used
indicates that the instance capacity is in use by instances that are
running in the Capacity Reservation.AllocationType
public final Integer count()
The amount of instance capacity associated with the usage. For example a value of 4
indicates that
instance capacity for 4 instances is currently in use.
4
indicates that instance capacity for 4 instances is currently in use.public CapacityAllocation.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<CapacityAllocation.Builder,CapacityAllocation>
public static CapacityAllocation.Builder builder()
public static Class<? extends CapacityAllocation.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2023. All rights reserved.