@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, wait
copy
public final 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()
.
CurrencyCodeValues
public final 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()
.
CurrencyCodeValues
public final Integer duration()
The duration of the offering (in seconds).
public final String hourlyPrice()
The hourly price of the offering.
public final String instanceFamily()
The instance family of the offering.
public final String offeringId()
The ID of the offering.
public final 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()
.
PaymentOption
public final 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()
.
PaymentOption
public final 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 final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2022. All rights reserved.