@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HostOffering extends Object implements Serializable, Cloneable
Details about the Dedicated Host Reservation offering.
| Constructor and Description |
|---|
HostOffering() |
| Modifier and Type | Method and Description |
|---|---|
HostOffering |
clone() |
boolean |
equals(Object obj) |
String |
getCurrencyCode()
The currency of the offering.
|
Integer |
getDuration()
The duration of the offering (in seconds).
|
String |
getHourlyPrice()
The hourly price of the offering.
|
String |
getInstanceFamily()
The instance family of the offering.
|
String |
getOfferingId()
The ID of the offering.
|
String |
getPaymentOption()
The available payment option.
|
String |
getUpfrontPrice()
The upfront price of the offering.
|
int |
hashCode() |
void |
setCurrencyCode(CurrencyCodeValues currencyCode)
The currency of the offering.
|
void |
setCurrencyCode(String currencyCode)
The currency of the offering.
|
void |
setDuration(Integer duration)
The duration of the offering (in seconds).
|
void |
setHourlyPrice(String hourlyPrice)
The hourly price of the offering.
|
void |
setInstanceFamily(String instanceFamily)
The instance family of the offering.
|
void |
setOfferingId(String offeringId)
The ID of the offering.
|
void |
setPaymentOption(PaymentOption paymentOption)
The available payment option.
|
void |
setPaymentOption(String paymentOption)
The available payment option.
|
void |
setUpfrontPrice(String upfrontPrice)
The upfront price of the offering.
|
String |
toString()
Returns a string representation of this object.
|
HostOffering |
withCurrencyCode(CurrencyCodeValues currencyCode)
The currency of the offering.
|
HostOffering |
withCurrencyCode(String currencyCode)
The currency of the offering.
|
HostOffering |
withDuration(Integer duration)
The duration of the offering (in seconds).
|
HostOffering |
withHourlyPrice(String hourlyPrice)
The hourly price of the offering.
|
HostOffering |
withInstanceFamily(String instanceFamily)
The instance family of the offering.
|
HostOffering |
withOfferingId(String offeringId)
The ID of the offering.
|
HostOffering |
withPaymentOption(PaymentOption paymentOption)
The available payment option.
|
HostOffering |
withPaymentOption(String paymentOption)
The available payment option.
|
HostOffering |
withUpfrontPrice(String upfrontPrice)
The upfront price of the offering.
|
public void setCurrencyCode(String currencyCode)
The currency of the offering.
currencyCode - The currency of the offering.CurrencyCodeValuespublic String getCurrencyCode()
The currency of the offering.
CurrencyCodeValuespublic HostOffering withCurrencyCode(String currencyCode)
The currency of the offering.
currencyCode - The currency of the offering.CurrencyCodeValuespublic void setCurrencyCode(CurrencyCodeValues currencyCode)
The currency of the offering.
currencyCode - The currency of the offering.CurrencyCodeValuespublic HostOffering withCurrencyCode(CurrencyCodeValues currencyCode)
The currency of the offering.
currencyCode - The currency of the offering.CurrencyCodeValuespublic void setDuration(Integer duration)
The duration of the offering (in seconds).
duration - The duration of the offering (in seconds).public Integer getDuration()
The duration of the offering (in seconds).
public HostOffering withDuration(Integer duration)
The duration of the offering (in seconds).
duration - The duration of the offering (in seconds).public void setHourlyPrice(String hourlyPrice)
The hourly price of the offering.
hourlyPrice - The hourly price of the offering.public String getHourlyPrice()
The hourly price of the offering.
public HostOffering withHourlyPrice(String hourlyPrice)
The hourly price of the offering.
hourlyPrice - The hourly price of the offering.public void setInstanceFamily(String instanceFamily)
The instance family of the offering.
instanceFamily - The instance family of the offering.public String getInstanceFamily()
The instance family of the offering.
public HostOffering withInstanceFamily(String instanceFamily)
The instance family of the offering.
instanceFamily - The instance family of the offering.public void setOfferingId(String offeringId)
The ID of the offering.
offeringId - The ID of the offering.public String getOfferingId()
The ID of the offering.
public HostOffering withOfferingId(String offeringId)
The ID of the offering.
offeringId - The ID of the offering.public void setPaymentOption(String paymentOption)
The available payment option.
paymentOption - The available payment option.PaymentOptionpublic String getPaymentOption()
The available payment option.
PaymentOptionpublic HostOffering withPaymentOption(String paymentOption)
The available payment option.
paymentOption - The available payment option.PaymentOptionpublic void setPaymentOption(PaymentOption paymentOption)
The available payment option.
paymentOption - The available payment option.PaymentOptionpublic HostOffering withPaymentOption(PaymentOption paymentOption)
The available payment option.
paymentOption - The available payment option.PaymentOptionpublic void setUpfrontPrice(String upfrontPrice)
The upfront price of the offering. Does not apply to No Upfront offerings.
upfrontPrice - The upfront price of the offering. Does not apply to No Upfront offerings.public String getUpfrontPrice()
The upfront price of the offering. Does not apply to No Upfront offerings.
public HostOffering withUpfrontPrice(String upfrontPrice)
The upfront price of the offering. Does not apply to No Upfront offerings.
upfrontPrice - The upfront price of the offering. Does not apply to No Upfront offerings.public String toString()
toString in class ObjectObject.toString()public HostOffering clone()