Class CapacityAllocation
- java.lang.Object
-
- software.amazon.awssdk.services.athena.model.CapacityAllocation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CapacityAllocation.Builder,CapacityAllocation>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCapacityAllocation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CapacityAllocation.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantrequestCompletionTime()The time when the capacity allocation request was completed.InstantrequestTime()The time when the capacity allocation was requested.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends CapacityAllocation.Builder>serializableBuilderClass()CapacityAllocationStatusstatus()The status of the capacity allocation.StringstatusAsString()The status of the capacity allocation.StringstatusMessage()The status message of the capacity allocation.CapacityAllocation.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
-
status
public 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,
statuswill returnCapacityAllocationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the capacity allocation.
- See Also:
CapacityAllocationStatus
-
statusAsString
public 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,
statuswill returnCapacityAllocationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the capacity allocation.
- See Also:
CapacityAllocationStatus
-
statusMessage
public final String statusMessage()
The status message of the capacity allocation.
- Returns:
- The status message of the capacity allocation.
-
requestTime
public final Instant requestTime()
The time when the capacity allocation was requested.
- Returns:
- The time when the capacity allocation was requested.
-
requestCompletionTime
public final Instant requestCompletionTime()
The time when the capacity allocation request was completed.
- Returns:
- The time when the capacity allocation request was completed.
-
toBuilder
public CapacityAllocation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CapacityAllocation.Builder,CapacityAllocation>
-
builder
public static CapacityAllocation.Builder builder()
-
serializableBuilderClass
public static Class<? extends CapacityAllocation.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
-
-