@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; useful for testing and debugging.
|
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.CurrencyCodeValues
public String getCurrencyCode()
The currency of the offering.
CurrencyCodeValues
public HostOffering withCurrencyCode(String currencyCode)
The currency of the offering.
currencyCode
- The currency of the offering.CurrencyCodeValues
public void setCurrencyCode(CurrencyCodeValues currencyCode)
The currency of the offering.
currencyCode
- The currency of the offering.CurrencyCodeValues
public HostOffering withCurrencyCode(CurrencyCodeValues currencyCode)
The currency of the offering.
currencyCode
- The currency of the offering.CurrencyCodeValues
public 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.PaymentOption
public String getPaymentOption()
The available payment option.
PaymentOption
public HostOffering withPaymentOption(String paymentOption)
The available payment option.
paymentOption
- The available payment option.PaymentOption
public void setPaymentOption(PaymentOption paymentOption)
The available payment option.
paymentOption
- The available payment option.PaymentOption
public HostOffering withPaymentOption(PaymentOption paymentOption)
The available payment option.
paymentOption
- The available payment option.PaymentOption
public 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 Object
Object.toString()
public HostOffering clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.