ToCopyableBuilder<HostReservation.Builder,HostReservation>
@Generated("software.amazon.awssdk:codegen") public class HostReservation extends Object implements ToCopyableBuilder<HostReservation.Builder,HostReservation>
Details about the Dedicated Host Reservation and associated Dedicated Hosts.
Modifier and Type | Class | Description |
---|---|---|
static interface |
HostReservation.Builder |
Modifier and Type | Method | Description |
---|---|---|
static HostReservation.Builder |
builder() |
|
Integer |
count() |
The number of Dedicated Hosts the reservation is associated with.
|
String |
currencyCode() |
The currency in which the
upfrontPrice and hourlyPrice amounts are specified. |
Integer |
duration() |
The length of the reservation's term, specified in seconds.
|
Date |
end() |
The date and time that the reservation ends.
|
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 that specifies the associated Dedicated Hosts.
|
String |
hourlyPrice() |
The hourly price of the reservation.
|
String |
instanceFamily() |
The instance family of the Dedicated Host Reservation.
|
String |
offeringId() |
The ID of the reservation.
|
String |
paymentOption() |
The payment option selected for this reservation.
|
static Class<? extends HostReservation.Builder> |
serializableBuilderClass() |
|
Date |
start() |
The date and time that the reservation started.
|
String |
state() |
The state of the reservation.
|
HostReservation.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 Integer count()
The number of Dedicated Hosts the reservation is associated with.
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 length of the reservation's term, specified in seconds. Can be 31536000 (1 year)
|
94608000 (3 years)
.
31536000 (1 year)
|
94608000 (3 years)
.public Date end()
The date and time that the reservation ends.
public List<String> hostIdSet()
The IDs of the Dedicated Hosts associated with the reservation.
public String hostReservationId()
The ID of the reservation that specifies the associated Dedicated Hosts.
public String hourlyPrice()
The hourly price of the reservation.
public String instanceFamily()
The instance family of the Dedicated Host Reservation. The instance family on the Dedicated Host must be the same in order for it to benefit from the reservation.
public String offeringId()
The ID of the reservation. This remains the same regardless of which Dedicated Hosts are associated with it.
public String paymentOption()
The payment option selected for this reservation.
PaymentOption
public Date start()
The date and time that the reservation started.
public String state()
The state of the reservation.
ReservationState
public String upfrontPrice()
The upfront price of the reservation.
public HostReservation.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<HostReservation.Builder,HostReservation>
public static HostReservation.Builder builder()
public static Class<? extends HostReservation.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.