@Generated(value="software.amazon.awssdk:codegen") public final class GetCapacityReservationUsageResponse extends Ec2Response implements ToCopyableBuilder<GetCapacityReservationUsageResponse.Builder,GetCapacityReservationUsageResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
GetCapacityReservationUsageResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
Integer |
availableInstanceCount()
Returns the value of the AvailableInstanceCount property for this object.
|
static GetCapacityReservationUsageResponse.Builder |
builder() |
String |
capacityReservationId()
Returns the value of the CapacityReservationId property for this object.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
instanceType()
Returns the value of the InstanceType property for this object.
|
List<InstanceUsage> |
instanceUsages()
Returns the value of the InstanceUsages property for this object.
|
String |
nextToken()
Returns the value of the NextToken property for this object.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetCapacityReservationUsageResponse.Builder> |
serializableBuilderClass() |
CapacityReservationState |
state()
Returns the value of the State property for this object.
|
String |
stateAsString()
Returns the value of the State property for this object.
|
GetCapacityReservationUsageResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Integer |
totalInstanceCount()
Returns the value of the TotalInstanceCount property for this object.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String nextToken()
public String capacityReservationId()
public String instanceType()
public Integer totalInstanceCount()
public Integer availableInstanceCount()
public CapacityReservationState state()
If the service returns an enum value that is not available in the current SDK version, state will return
CapacityReservationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
CapacityReservationStatepublic String stateAsString()
If the service returns an enum value that is not available in the current SDK version, state will return
CapacityReservationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
CapacityReservationStatepublic List<InstanceUsage> instanceUsages()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public GetCapacityReservationUsageResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GetCapacityReservationUsageResponse.Builder,GetCapacityReservationUsageResponse>toBuilder in class AwsResponsepublic static GetCapacityReservationUsageResponse.Builder builder()
public static Class<? extends GetCapacityReservationUsageResponse.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsResponsepublic boolean equals(Object obj)
equals in class AwsResponsepublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2019. All rights reserved.