@Generated(value="software.amazon.awssdk:codegen") public final class GetReservedInstancesExchangeQuoteResponse extends Ec2Response implements ToCopyableBuilder<GetReservedInstancesExchangeQuoteResponse.Builder,GetReservedInstancesExchangeQuoteResponse>
Contains the output of GetReservedInstancesExchangeQuote.
Modifier and Type | Class and Description |
---|---|
static interface |
GetReservedInstancesExchangeQuoteResponse.Builder |
Modifier and Type | Method and Description |
---|---|
static GetReservedInstancesExchangeQuoteResponse.Builder |
builder() |
String |
currencyCode()
The currency of the transaction.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkResponse . |
int |
hashCode() |
Boolean |
isValidExchange()
If
true , the exchange is valid. |
Instant |
outputReservedInstancesWillExpireAt()
The new end date of the reservation term.
|
String |
paymentDue()
The total true upfront charge for the exchange.
|
ReservationValue |
reservedInstanceValueRollup()
The cost associated with the Reserved Instance.
|
List<ReservedInstanceReservationValue> |
reservedInstanceValueSet()
The configuration of your Convertible Reserved Instances.
|
static Class<? extends GetReservedInstancesExchangeQuoteResponse.Builder> |
serializableBuilderClass() |
ReservationValue |
targetConfigurationValueRollup()
The cost associated with the Reserved Instance.
|
List<TargetReservationValue> |
targetConfigurationValueSet()
The values of the target Convertible Reserved Instances.
|
GetReservedInstancesExchangeQuoteResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
validationFailureReason()
Describes the reason why the exchange cannot be completed.
|
sdkHttpResponse
copy
public String currencyCode()
The currency of the transaction.
public Boolean isValidExchange()
If true
, the exchange is valid. If false
, the exchange cannot be completed.
true
, the exchange is valid. If false
, the exchange cannot be completed.public Instant outputReservedInstancesWillExpireAt()
The new end date of the reservation term.
public String paymentDue()
The total true upfront charge for the exchange.
public ReservationValue reservedInstanceValueRollup()
The cost associated with the Reserved Instance.
public List<ReservedInstanceReservationValue> reservedInstanceValueSet()
The configuration of your Convertible Reserved Instances.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public ReservationValue targetConfigurationValueRollup()
The cost associated with the Reserved Instance.
public List<TargetReservationValue> targetConfigurationValueSet()
The values of the target Convertible Reserved Instances.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String validationFailureReason()
Describes the reason why the exchange cannot be completed.
public GetReservedInstancesExchangeQuoteResponse.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GetReservedInstancesExchangeQuoteResponse.Builder,GetReservedInstancesExchangeQuoteResponse>
toBuilder
in class AwsResponse
public static GetReservedInstancesExchangeQuoteResponse.Builder builder()
public static Class<? extends GetReservedInstancesExchangeQuoteResponse.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkResponse
SdkResponse
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkResponse
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.