@Generated(value="software.amazon.awssdk:codegen") public final class CapacityAllocation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CapacityAllocation.Builder,CapacityAllocation>
Contains the submission time of a single allocation request for a capacity reservation and the most recent status of the attempted allocation.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CapacityAllocation.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CapacityAllocation.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Instant |
requestCompletionTime()
The time when the capacity allocation request was completed.
|
Instant |
requestTime()
The time when the capacity allocation was requested.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CapacityAllocation.Builder> |
serializableBuilderClass() |
CapacityAllocationStatus |
status()
The status of the capacity allocation.
|
String |
statusAsString()
The status of the capacity allocation.
|
String |
statusMessage()
The status message of the capacity allocation.
|
CapacityAllocation.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final CapacityAllocationStatus status()
The status of the capacity allocation.
If the service returns an enum value that is not available in the current SDK version, status will
return CapacityAllocationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from statusAsString().
CapacityAllocationStatuspublic final String statusAsString()
The status of the capacity allocation.
If the service returns an enum value that is not available in the current SDK version, status will
return CapacityAllocationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from statusAsString().
CapacityAllocationStatuspublic final String statusMessage()
The status message of the capacity allocation.
public final Instant requestTime()
The time when the capacity allocation was requested.
public final Instant requestCompletionTime()
The time when the capacity allocation request was completed.
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 SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.