@Generated(value="software.amazon.awssdk:codegen") public class HostOffering extends Object implements 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) |
<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.
|
static Class<? extends HostOffering.Builder> |
serializableBuilderClass() |
HostOffering.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 offering.
|
copypublic 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()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<HostOffering.Builder,HostOffering>public static HostOffering.Builder builder()
public static Class<? extends HostOffering.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.