Class InterruptibleCapacityAllocation
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.InterruptibleCapacityAllocation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InterruptibleCapacityAllocation.Builder,InterruptibleCapacityAllocation>
@Generated("software.amazon.awssdk:codegen") public final class InterruptibleCapacityAllocation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InterruptibleCapacityAllocation.Builder,InterruptibleCapacityAllocation>
Represents the allocation of capacity from a source reservation to an interruptible reservation, tracking current and target instance counts for allocation management.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInterruptibleCapacityAllocation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InterruptibleCapacityAllocation.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegerinstanceCount()The current number of instances allocated to the interruptible reservation.StringinterruptibleCapacityReservationId()The ID of the interruptible Capacity Reservation created from the allocation.InterruptionTypeinterruptionType()The type of interruption policy applied to the interruptible reservation.StringinterruptionTypeAsString()The type of interruption policy applied to the interruptible reservation.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends InterruptibleCapacityAllocation.Builder>serializableBuilderClass()InterruptibleCapacityReservationAllocationStatusstatus()The current status of the allocation (updating during reclamation, active when complete).StringstatusAsString()The current status of the allocation (updating during reclamation, active when complete).IntegertargetInstanceCount()After your modify request, the requested number of instances allocated to interruptible reservation.InterruptibleCapacityAllocation.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
instanceCount
public final Integer instanceCount()
The current number of instances allocated to the interruptible reservation.
- Returns:
- The current number of instances allocated to the interruptible reservation.
-
targetInstanceCount
public final Integer targetInstanceCount()
After your modify request, the requested number of instances allocated to interruptible reservation.
- Returns:
- After your modify request, the requested number of instances allocated to interruptible reservation.
-
status
public final InterruptibleCapacityReservationAllocationStatus status()
The current status of the allocation (updating during reclamation, active when complete).
If the service returns an enum value that is not available in the current SDK version,
statuswill returnInterruptibleCapacityReservationAllocationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the allocation (updating during reclamation, active when complete).
- See Also:
InterruptibleCapacityReservationAllocationStatus
-
statusAsString
public final String statusAsString()
The current status of the allocation (updating during reclamation, active when complete).
If the service returns an enum value that is not available in the current SDK version,
statuswill returnInterruptibleCapacityReservationAllocationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the allocation (updating during reclamation, active when complete).
- See Also:
InterruptibleCapacityReservationAllocationStatus
-
interruptibleCapacityReservationId
public final String interruptibleCapacityReservationId()
The ID of the interruptible Capacity Reservation created from the allocation.
- Returns:
- The ID of the interruptible Capacity Reservation created from the allocation.
-
interruptionType
public final InterruptionType interruptionType()
The type of interruption policy applied to the interruptible reservation.
If the service returns an enum value that is not available in the current SDK version,
interruptionTypewill returnInterruptionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominterruptionTypeAsString().- Returns:
- The type of interruption policy applied to the interruptible reservation.
- See Also:
InterruptionType
-
interruptionTypeAsString
public final String interruptionTypeAsString()
The type of interruption policy applied to the interruptible reservation.
If the service returns an enum value that is not available in the current SDK version,
interruptionTypewill returnInterruptionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominterruptionTypeAsString().- Returns:
- The type of interruption policy applied to the interruptible reservation.
- See Also:
InterruptionType
-
toBuilder
public InterruptibleCapacityAllocation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<InterruptibleCapacityAllocation.Builder,InterruptibleCapacityAllocation>
-
builder
public static InterruptibleCapacityAllocation.Builder builder()
-
serializableBuilderClass
public static Class<? extends InterruptibleCapacityAllocation.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-