@Generated(value="software.amazon.awssdk:codegen") public final class HostReservation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HostReservation.Builder,HostReservation>
Details about the Dedicated Host Reservation and associated Dedicated Hosts.
| Modifier and Type | Class and Description |
|---|---|
static interface |
HostReservation.Builder |
| Modifier and Type | Method and Description |
|---|---|
static HostReservation.Builder |
builder() |
Integer |
count()
The number of Dedicated Hosts the reservation is associated with.
|
CurrencyCodeValues |
currencyCode()
The currency in which the
upfrontPrice and hourlyPrice amounts are specified. |
String |
currencyCodeAsString()
The currency in which the
upfrontPrice and hourlyPrice amounts are specified. |
Integer |
duration()
The length of the reservation's term, specified in seconds.
|
Instant |
end()
The date and time that the reservation ends.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasHostIdSet()
Returns true if the HostIdSet property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
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.
|
PaymentOption |
paymentOption()
The payment option selected for this reservation.
|
String |
paymentOptionAsString()
The payment option selected for this reservation.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends HostReservation.Builder> |
serializableBuilderClass() |
Instant |
start()
The date and time that the reservation started.
|
ReservationState |
state()
The state of the reservation.
|
String |
stateAsString()
The state of the reservation.
|
List<Tag> |
tags()
Any tags assigned to the Dedicated Host Reservation.
|
HostReservation.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
upfrontPrice()
The upfront price of the reservation.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic Integer count()
The number of Dedicated Hosts the reservation is associated with.
public CurrencyCodeValues currencyCode()
The currency in which the upfrontPrice and hourlyPrice amounts are specified. At this
time, the only supported currency is USD.
If the service returns an enum value that is not available in the current SDK version, currencyCode will
return CurrencyCodeValues.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
currencyCodeAsString().
upfrontPrice and hourlyPrice amounts are specified.
At this time, the only supported currency is USD.CurrencyCodeValuespublic String currencyCodeAsString()
The currency in which the upfrontPrice and hourlyPrice amounts are specified. At this
time, the only supported currency is USD.
If the service returns an enum value that is not available in the current SDK version, currencyCode will
return CurrencyCodeValues.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
currencyCodeAsString().
upfrontPrice and hourlyPrice amounts are specified.
At this time, the only supported currency is USD.CurrencyCodeValuespublic 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 Instant end()
The date and time that the reservation ends.
public boolean hasHostIdSet()
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.
You can use hasHostIdSet() to see if a value was sent in this field.
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 PaymentOption paymentOption()
The payment option selected for this reservation.
If the service returns an enum value that is not available in the current SDK version, paymentOption
will return PaymentOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
paymentOptionAsString().
PaymentOptionpublic String paymentOptionAsString()
The payment option selected for this reservation.
If the service returns an enum value that is not available in the current SDK version, paymentOption
will return PaymentOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
paymentOptionAsString().
PaymentOptionpublic Instant start()
The date and time that the reservation started.
public ReservationState state()
The state of the reservation.
If the service returns an enum value that is not available in the current SDK version, state will return
ReservationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
ReservationStatepublic String stateAsString()
The state of the reservation.
If the service returns an enum value that is not available in the current SDK version, state will return
ReservationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
ReservationStatepublic String upfrontPrice()
The upfront price of the reservation.
public boolean hasTags()
public List<Tag> tags()
Any tags assigned to the Dedicated Host Reservation.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public HostReservation.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<HostReservation.Builder,HostReservation>public static HostReservation.Builder builder()
public static Class<? extends HostReservation.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2019. All rights reserved.