Class HostOffering
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.HostOffering
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<HostOffering.Builder,HostOffering>
@Generated("software.amazon.awssdk:codegen") public final class HostOffering extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HostOffering.Builder,HostOffering>
Details about the Dedicated Host Reservation offering.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHostOffering.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HostOffering.Builderbuilder()CurrencyCodeValuescurrencyCode()The currency of the offering.StringcurrencyCodeAsString()The currency of the offering.Integerduration()The duration of the offering (in seconds).booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringhourlyPrice()The hourly price of the offering.StringinstanceFamily()The instance family of the offering.StringofferingId()The ID of the offering.PaymentOptionpaymentOption()The available payment option.StringpaymentOptionAsString()The available payment option.List<SdkField<?>>sdkFields()static Class<? extends HostOffering.Builder>serializableBuilderClass()HostOffering.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringupfrontPrice()The upfront price of the offering.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
currencyCode
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,
currencyCodewill returnCurrencyCodeValues.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcurrencyCodeAsString().- Returns:
- The currency of the offering.
- See Also:
CurrencyCodeValues
-
currencyCodeAsString
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,
currencyCodewill returnCurrencyCodeValues.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcurrencyCodeAsString().- Returns:
- The currency of the offering.
- See Also:
CurrencyCodeValues
-
duration
public final Integer duration()
The duration of the offering (in seconds).
- Returns:
- The duration of the offering (in seconds).
-
hourlyPrice
public final String hourlyPrice()
The hourly price of the offering.
- Returns:
- The hourly price of the offering.
-
instanceFamily
public final String instanceFamily()
The instance family of the offering.
- Returns:
- The instance family of the offering.
-
offeringId
public final String offeringId()
The ID of the offering.
- Returns:
- The ID of the offering.
-
paymentOption
public final PaymentOption paymentOption()
The available payment option.
If the service returns an enum value that is not available in the current SDK version,
paymentOptionwill returnPaymentOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompaymentOptionAsString().- Returns:
- The available payment option.
- See Also:
PaymentOption
-
paymentOptionAsString
public final String paymentOptionAsString()
The available payment option.
If the service returns an enum value that is not available in the current SDK version,
paymentOptionwill returnPaymentOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompaymentOptionAsString().- Returns:
- The available payment option.
- See Also:
PaymentOption
-
upfrontPrice
public final String upfrontPrice()
The upfront price of the offering. Does not apply to No Upfront offerings.
- Returns:
- The upfront price of the offering. Does not apply to No Upfront offerings.
-
toBuilder
public HostOffering.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<HostOffering.Builder,HostOffering>
-
builder
public static HostOffering.Builder builder()
-
serializableBuilderClass
public static Class<? extends HostOffering.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-