@Generated(value="software.amazon.awssdk:codegen") public final class ReservedInstancesListing extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ReservedInstancesListing.Builder,ReservedInstancesListing>
Describes a Reserved Instance listing.
Modifier and Type | Class and Description |
---|---|
static interface |
ReservedInstancesListing.Builder |
Modifier and Type | Method and Description |
---|---|
static ReservedInstancesListing.Builder |
builder() |
String |
clientToken()
A unique, case-sensitive key supplied by the client to ensure that the request is idempotent.
|
Instant |
createDate()
The time the listing was created.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<InstanceCount> |
instanceCounts()
The number of instances in this state.
|
List<PriceSchedule> |
priceSchedules()
The price of the Reserved Instance listing.
|
String |
reservedInstancesId()
The ID of the Reserved Instance.
|
String |
reservedInstancesListingId()
The ID of the Reserved Instance listing.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ReservedInstancesListing.Builder> |
serializableBuilderClass() |
ListingStatus |
status()
The status of the Reserved Instance listing.
|
String |
statusAsString()
The status of the Reserved Instance listing.
|
String |
statusMessage()
The reason for the current status of the Reserved Instance listing.
|
List<Tag> |
tags()
Any tags assigned to the resource.
|
ReservedInstancesListing.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Instant |
updateDate()
The last modified timestamp of the listing.
|
copy
public String clientToken()
A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.
public Instant createDate()
The time the listing was created.
public List<InstanceCount> instanceCounts()
The number of instances in this state.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<PriceSchedule> priceSchedules()
The price of the Reserved Instance listing.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String reservedInstancesId()
The ID of the Reserved Instance.
public String reservedInstancesListingId()
The ID of the Reserved Instance listing.
public ListingStatus status()
The status of the Reserved Instance listing.
If the service returns an enum value that is not available in the current SDK version, status
will
return ListingStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
ListingStatus
public String statusAsString()
The status of the Reserved Instance listing.
If the service returns an enum value that is not available in the current SDK version, status
will
return ListingStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
ListingStatus
public String statusMessage()
The reason for the current status of the Reserved Instance listing. The response can be blank.
public List<Tag> tags()
Any tags assigned to the resource.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Instant updateDate()
The last modified timestamp of the listing.
public ReservedInstancesListing.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ReservedInstancesListing.Builder,ReservedInstancesListing>
public static ReservedInstancesListing.Builder builder()
public static Class<? extends ReservedInstancesListing.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.