@Generated(value="software.amazon.awssdk:codegen") public class Purchase extends Object implements software.amazon.awssdk.utils.builder.ToCopyableBuilder<Purchase.Builder,Purchase>
Describes the result of the purchase.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Purchase.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Purchase.Builder |
builder() |
String |
currencyCode()
The currency in which the
UpfrontPrice and HourlyPrice amounts are specified. |
Integer |
duration()
The duration of the reservation's term in seconds.
|
boolean |
equals(Object obj) |
int |
hashCode() |
List<String> |
hostIdSet()
The IDs of the Dedicated Hosts associated with the reservation.
|
String |
hostReservationId()
The ID of the reservation.
|
String |
hourlyPrice()
The hourly price of the reservation per hour.
|
String |
instanceFamily()
The instance family on the Dedicated Host that the reservation can be associated with.
|
String |
paymentOption()
The payment option for the reservation.
|
static Class<? extends Purchase.Builder> |
serializableBuilderClass() |
Purchase.Builder |
toBuilder() |
String |
toString() |
String |
upfrontPrice()
The upfront price of the reservation.
|
public String currencyCode()
The currency in which the UpfrontPrice and HourlyPrice amounts are specified. At this
time, the only supported currency is USD.
UpfrontPrice and HourlyPrice amounts are specified.
At this time, the only supported currency is USD.CurrencyCodeValuespublic Integer duration()
The duration of the reservation's term in seconds.
public List<String> hostIdSet()
The IDs of the Dedicated Hosts associated with the reservation.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String hostReservationId()
The ID of the reservation.
public String hourlyPrice()
The hourly price of the reservation per hour.
public String instanceFamily()
The instance family on the Dedicated Host that the reservation can be associated with.
public String paymentOption()
The payment option for the reservation.
PaymentOptionpublic String upfrontPrice()
The upfront price of the reservation.
public Purchase.Builder toBuilder()
toBuilder in interface software.amazon.awssdk.utils.builder.ToCopyableBuilder<Purchase.Builder,Purchase>public static Purchase.Builder builder()
public static Class<? extends Purchase.Builder> serializableBuilderClass()
Copyright © 2017. All rights reserved.