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 interface
HostOffering.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.Map<String,SdkField<?>>
sdkFieldNameToField()
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.-
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,
currencyCode
will 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,
currencyCode
will 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,
paymentOption
will 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,
paymentOption
will 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:
toBuilder
in 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:
equalsBySdkFields
in 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-