Interface GetReservedInstancesExchangeQuoteResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetReservedInstancesExchangeQuoteResponse.Builder,
,GetReservedInstancesExchangeQuoteResponse> Ec2Response.Builder
,SdkBuilder<GetReservedInstancesExchangeQuoteResponse.Builder,
,GetReservedInstancesExchangeQuoteResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetReservedInstancesExchangeQuoteResponse
-
Method Summary
Modifier and TypeMethodDescriptioncurrencyCode
(String currencyCode) The currency of the transaction.isValidExchange
(Boolean isValidExchange) Iftrue
, the exchange is valid.outputReservedInstancesWillExpireAt
(Instant outputReservedInstancesWillExpireAt) The new end date of the reservation term.paymentDue
(String paymentDue) The total true upfront charge for the exchange.reservedInstanceValueRollup
(Consumer<ReservationValue.Builder> reservedInstanceValueRollup) The cost associated with the Reserved Instance.reservedInstanceValueRollup
(ReservationValue reservedInstanceValueRollup) The cost associated with the Reserved Instance.reservedInstanceValueSet
(Collection<ReservedInstanceReservationValue> reservedInstanceValueSet) The configuration of your Convertible Reserved Instances.reservedInstanceValueSet
(Consumer<ReservedInstanceReservationValue.Builder>... reservedInstanceValueSet) The configuration of your Convertible Reserved Instances.reservedInstanceValueSet
(ReservedInstanceReservationValue... reservedInstanceValueSet) The configuration of your Convertible Reserved Instances.targetConfigurationValueRollup
(Consumer<ReservationValue.Builder> targetConfigurationValueRollup) The cost associated with the Reserved Instance.targetConfigurationValueRollup
(ReservationValue targetConfigurationValueRollup) The cost associated with the Reserved Instance.targetConfigurationValueSet
(Collection<TargetReservationValue> targetConfigurationValueSet) The values of the target Convertible Reserved Instances.targetConfigurationValueSet
(Consumer<TargetReservationValue.Builder>... targetConfigurationValueSet) The values of the target Convertible Reserved Instances.targetConfigurationValueSet
(TargetReservationValue... targetConfigurationValueSet) The values of the target Convertible Reserved Instances.validationFailureReason
(String validationFailureReason) Describes the reason why the exchange cannot be completed.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
currencyCode
The currency of the transaction.
- Parameters:
currencyCode
- The currency of the transaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isValidExchange
If
true
, the exchange is valid. Iffalse
, the exchange cannot be completed.- Parameters:
isValidExchange
- Iftrue
, the exchange is valid. Iffalse
, the exchange cannot be completed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputReservedInstancesWillExpireAt
GetReservedInstancesExchangeQuoteResponse.Builder outputReservedInstancesWillExpireAt(Instant outputReservedInstancesWillExpireAt) The new end date of the reservation term.
- Parameters:
outputReservedInstancesWillExpireAt
- The new end date of the reservation term.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentDue
The total true upfront charge for the exchange.
- Parameters:
paymentDue
- The total true upfront charge for the exchange.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservedInstanceValueRollup
GetReservedInstancesExchangeQuoteResponse.Builder reservedInstanceValueRollup(ReservationValue reservedInstanceValueRollup) The cost associated with the Reserved Instance.
- Parameters:
reservedInstanceValueRollup
- The cost associated with the Reserved Instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservedInstanceValueRollup
default GetReservedInstancesExchangeQuoteResponse.Builder reservedInstanceValueRollup(Consumer<ReservationValue.Builder> reservedInstanceValueRollup) The cost associated with the Reserved Instance.
This is a convenience method that creates an instance of theReservationValue.Builder
avoiding the need to create one manually viaReservationValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toreservedInstanceValueRollup(ReservationValue)
.- Parameters:
reservedInstanceValueRollup
- a consumer that will call methods onReservationValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reservedInstanceValueSet
GetReservedInstancesExchangeQuoteResponse.Builder reservedInstanceValueSet(Collection<ReservedInstanceReservationValue> reservedInstanceValueSet) The configuration of your Convertible Reserved Instances.
- Parameters:
reservedInstanceValueSet
- The configuration of your Convertible Reserved Instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservedInstanceValueSet
GetReservedInstancesExchangeQuoteResponse.Builder reservedInstanceValueSet(ReservedInstanceReservationValue... reservedInstanceValueSet) The configuration of your Convertible Reserved Instances.
- Parameters:
reservedInstanceValueSet
- The configuration of your Convertible Reserved Instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservedInstanceValueSet
GetReservedInstancesExchangeQuoteResponse.Builder reservedInstanceValueSet(Consumer<ReservedInstanceReservationValue.Builder>... reservedInstanceValueSet) The configuration of your Convertible Reserved Instances.
This is a convenience method that creates an instance of theReservedInstanceReservationValue.Builder
avoiding the need to create one manually viaReservedInstanceReservationValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toreservedInstanceValueSet(List<ReservedInstanceReservationValue>)
.- Parameters:
reservedInstanceValueSet
- a consumer that will call methods onReservedInstanceReservationValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
targetConfigurationValueRollup
GetReservedInstancesExchangeQuoteResponse.Builder targetConfigurationValueRollup(ReservationValue targetConfigurationValueRollup) The cost associated with the Reserved Instance.
- Parameters:
targetConfigurationValueRollup
- The cost associated with the Reserved Instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetConfigurationValueRollup
default GetReservedInstancesExchangeQuoteResponse.Builder targetConfigurationValueRollup(Consumer<ReservationValue.Builder> targetConfigurationValueRollup) The cost associated with the Reserved Instance.
This is a convenience method that creates an instance of theReservationValue.Builder
avoiding the need to create one manually viaReservationValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totargetConfigurationValueRollup(ReservationValue)
.- Parameters:
targetConfigurationValueRollup
- a consumer that will call methods onReservationValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
targetConfigurationValueSet
GetReservedInstancesExchangeQuoteResponse.Builder targetConfigurationValueSet(Collection<TargetReservationValue> targetConfigurationValueSet) The values of the target Convertible Reserved Instances.
- Parameters:
targetConfigurationValueSet
- The values of the target Convertible Reserved Instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetConfigurationValueSet
GetReservedInstancesExchangeQuoteResponse.Builder targetConfigurationValueSet(TargetReservationValue... targetConfigurationValueSet) The values of the target Convertible Reserved Instances.
- Parameters:
targetConfigurationValueSet
- The values of the target Convertible Reserved Instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetConfigurationValueSet
GetReservedInstancesExchangeQuoteResponse.Builder targetConfigurationValueSet(Consumer<TargetReservationValue.Builder>... targetConfigurationValueSet) The values of the target Convertible Reserved Instances.
This is a convenience method that creates an instance of theTargetReservationValue.Builder
avoiding the need to create one manually viaTargetReservationValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totargetConfigurationValueSet(List<TargetReservationValue>)
.- Parameters:
targetConfigurationValueSet
- a consumer that will call methods onTargetReservationValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
validationFailureReason
GetReservedInstancesExchangeQuoteResponse.Builder validationFailureReason(String validationFailureReason) Describes the reason why the exchange cannot be completed.
- Parameters:
validationFailureReason
- Describes the reason why the exchange cannot be completed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-