ToCopyableBuilder<Purchase.Builder,Purchase>
@Generated("software.amazon.awssdk:codegen") public class Purchase extends Object implements ToCopyableBuilder<Purchase.Builder,Purchase>
Describes the result of the purchase.
Modifier and Type | Class | Description |
---|---|---|
static interface |
Purchase.Builder |
Modifier and Type | Method | 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() |
Take this object and create a builder that contains all of the current property values of this object.
|
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
.CurrencyCodeValues
public 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.
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.
PaymentOption
public String upfrontPrice()
The upfront price of the reservation.
public Purchase.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Purchase.Builder,Purchase>
public static Purchase.Builder builder()
public static Class<? extends Purchase.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.