@Generated(value="software.amazon.awssdk:codegen") public final class HostOffering extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HostOffering.Builder,HostOffering>
Details about the Dedicated Host Reservation offering.
| Modifier and Type | Class and Description |
|---|---|
static interface |
HostOffering.Builder |
| Modifier and Type | Method and Description |
|---|---|
static HostOffering.Builder |
builder() |
CurrencyCodeValues |
currencyCode()
The currency of the offering.
|
String |
currencyCodeAsString()
The currency of the offering.
|
Integer |
duration()
The duration of the offering (in seconds).
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
hourlyPrice()
The hourly price of the offering.
|
String |
instanceFamily()
The instance family of the offering.
|
String |
offeringId()
The ID of the offering.
|
PaymentOption |
paymentOption()
The available payment option.
|
String |
paymentOptionAsString()
The available payment option.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends HostOffering.Builder> |
serializableBuilderClass() |
HostOffering.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
upfrontPrice()
The upfront price of the offering.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic CurrencyCodeValues currencyCode()
The currency of the offering.
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().
CurrencyCodeValuespublic String currencyCodeAsString()
The currency of the offering.
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().
CurrencyCodeValuespublic Integer duration()
The duration of the offering (in seconds).
public String hourlyPrice()
The hourly price of the offering.
public String instanceFamily()
The instance family of the offering.
public String offeringId()
The ID of the offering.
public PaymentOption paymentOption()
The available payment option.
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 available payment option.
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 upfrontPrice()
The upfront price of the offering. Does not apply to No Upfront offerings.
public HostOffering.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<HostOffering.Builder,HostOffering>public static HostOffering.Builder builder()
public static Class<? extends HostOffering.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2019. All rights reserved.