@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HostReservation extends Object implements Serializable, Cloneable
Details about the Dedicated Host Reservation and associated Dedicated Hosts.
Constructor and Description |
---|
HostReservation() |
Modifier and Type | Method and Description |
---|---|
HostReservation |
clone() |
boolean |
equals(Object obj) |
Integer |
getCount()
The number of Dedicated Hosts the reservation is associated with.
|
String |
getCurrencyCode()
The currency in which the
upfrontPrice and hourlyPrice amounts are specified. |
Integer |
getDuration()
The length of the reservation's term, specified in seconds.
|
Date |
getEnd()
The date and time that the reservation ends.
|
List<String> |
getHostIdSet()
The IDs of the Dedicated Hosts associated with the reservation.
|
String |
getHostReservationId()
The ID of the reservation that specifies the associated Dedicated Hosts.
|
String |
getHourlyPrice()
The hourly price of the reservation.
|
String |
getInstanceFamily()
The instance family of the Dedicated Host Reservation.
|
String |
getOfferingId()
The ID of the reservation.
|
String |
getPaymentOption()
The payment option selected for this reservation.
|
Date |
getStart()
The date and time that the reservation started.
|
String |
getState()
The state of the reservation.
|
List<Tag> |
getTags()
Any tags assigned to the Dedicated Host Reservation.
|
String |
getUpfrontPrice()
The upfront price of the reservation.
|
int |
hashCode() |
void |
setCount(Integer count)
The number of Dedicated Hosts the reservation is associated with.
|
void |
setCurrencyCode(CurrencyCodeValues currencyCode)
The currency in which the
upfrontPrice and hourlyPrice amounts are specified. |
void |
setCurrencyCode(String currencyCode)
The currency in which the
upfrontPrice and hourlyPrice amounts are specified. |
void |
setDuration(Integer duration)
The length of the reservation's term, specified in seconds.
|
void |
setEnd(Date end)
The date and time that the reservation ends.
|
void |
setHostIdSet(Collection<String> hostIdSet)
The IDs of the Dedicated Hosts associated with the reservation.
|
void |
setHostReservationId(String hostReservationId)
The ID of the reservation that specifies the associated Dedicated Hosts.
|
void |
setHourlyPrice(String hourlyPrice)
The hourly price of the reservation.
|
void |
setInstanceFamily(String instanceFamily)
The instance family of the Dedicated Host Reservation.
|
void |
setOfferingId(String offeringId)
The ID of the reservation.
|
void |
setPaymentOption(PaymentOption paymentOption)
The payment option selected for this reservation.
|
void |
setPaymentOption(String paymentOption)
The payment option selected for this reservation.
|
void |
setStart(Date start)
The date and time that the reservation started.
|
void |
setState(ReservationState state)
The state of the reservation.
|
void |
setState(String state)
The state of the reservation.
|
void |
setTags(Collection<Tag> tags)
Any tags assigned to the Dedicated Host Reservation.
|
void |
setUpfrontPrice(String upfrontPrice)
The upfront price of the reservation.
|
String |
toString()
Returns a string representation of this object.
|
HostReservation |
withCount(Integer count)
The number of Dedicated Hosts the reservation is associated with.
|
HostReservation |
withCurrencyCode(CurrencyCodeValues currencyCode)
The currency in which the
upfrontPrice and hourlyPrice amounts are specified. |
HostReservation |
withCurrencyCode(String currencyCode)
The currency in which the
upfrontPrice and hourlyPrice amounts are specified. |
HostReservation |
withDuration(Integer duration)
The length of the reservation's term, specified in seconds.
|
HostReservation |
withEnd(Date end)
The date and time that the reservation ends.
|
HostReservation |
withHostIdSet(Collection<String> hostIdSet)
The IDs of the Dedicated Hosts associated with the reservation.
|
HostReservation |
withHostIdSet(String... hostIdSet)
The IDs of the Dedicated Hosts associated with the reservation.
|
HostReservation |
withHostReservationId(String hostReservationId)
The ID of the reservation that specifies the associated Dedicated Hosts.
|
HostReservation |
withHourlyPrice(String hourlyPrice)
The hourly price of the reservation.
|
HostReservation |
withInstanceFamily(String instanceFamily)
The instance family of the Dedicated Host Reservation.
|
HostReservation |
withOfferingId(String offeringId)
The ID of the reservation.
|
HostReservation |
withPaymentOption(PaymentOption paymentOption)
The payment option selected for this reservation.
|
HostReservation |
withPaymentOption(String paymentOption)
The payment option selected for this reservation.
|
HostReservation |
withStart(Date start)
The date and time that the reservation started.
|
HostReservation |
withState(ReservationState state)
The state of the reservation.
|
HostReservation |
withState(String state)
The state of the reservation.
|
HostReservation |
withTags(Collection<Tag> tags)
Any tags assigned to the Dedicated Host Reservation.
|
HostReservation |
withTags(Tag... tags)
Any tags assigned to the Dedicated Host Reservation.
|
HostReservation |
withUpfrontPrice(String upfrontPrice)
The upfront price of the reservation.
|
public void setCount(Integer count)
The number of Dedicated Hosts the reservation is associated with.
count
- The number of Dedicated Hosts the reservation is associated with.public Integer getCount()
The number of Dedicated Hosts the reservation is associated with.
public HostReservation withCount(Integer count)
The number of Dedicated Hosts the reservation is associated with.
count
- The number of Dedicated Hosts the reservation is associated with.public void setCurrencyCode(String currencyCode)
The currency in which the upfrontPrice
and hourlyPrice
amounts are specified. At this
time, the only supported currency is USD
.
currencyCode
- The currency in which the upfrontPrice
and hourlyPrice
amounts are specified. At
this time, the only supported currency is USD
.CurrencyCodeValues
public String getCurrencyCode()
The currency in which the upfrontPrice
and hourlyPrice
amounts are specified. At this
time, the only supported currency is USD
.
upfrontPrice
and hourlyPrice
amounts are specified.
At this time, the only supported currency is USD
.CurrencyCodeValues
public HostReservation withCurrencyCode(String currencyCode)
The currency in which the upfrontPrice
and hourlyPrice
amounts are specified. At this
time, the only supported currency is USD
.
currencyCode
- The currency in which the upfrontPrice
and hourlyPrice
amounts are specified. At
this time, the only supported currency is USD
.CurrencyCodeValues
public void setCurrencyCode(CurrencyCodeValues currencyCode)
The currency in which the upfrontPrice
and hourlyPrice
amounts are specified. At this
time, the only supported currency is USD
.
currencyCode
- The currency in which the upfrontPrice
and hourlyPrice
amounts are specified. At
this time, the only supported currency is USD
.CurrencyCodeValues
public HostReservation withCurrencyCode(CurrencyCodeValues currencyCode)
The currency in which the upfrontPrice
and hourlyPrice
amounts are specified. At this
time, the only supported currency is USD
.
currencyCode
- The currency in which the upfrontPrice
and hourlyPrice
amounts are specified. At
this time, the only supported currency is USD
.CurrencyCodeValues
public void setDuration(Integer duration)
The length of the reservation's term, specified in seconds. Can be 31536000 (1 year)
|
94608000 (3 years)
.
duration
- The length of the reservation's term, specified in seconds. Can be 31536000 (1 year)
|
94608000 (3 years)
.public Integer getDuration()
The length of the reservation's term, specified in seconds. Can be 31536000 (1 year)
|
94608000 (3 years)
.
31536000 (1 year)
|
94608000 (3 years)
.public HostReservation withDuration(Integer duration)
The length of the reservation's term, specified in seconds. Can be 31536000 (1 year)
|
94608000 (3 years)
.
duration
- The length of the reservation's term, specified in seconds. Can be 31536000 (1 year)
|
94608000 (3 years)
.public void setEnd(Date end)
The date and time that the reservation ends.
end
- The date and time that the reservation ends.public Date getEnd()
The date and time that the reservation ends.
public HostReservation withEnd(Date end)
The date and time that the reservation ends.
end
- The date and time that the reservation ends.public List<String> getHostIdSet()
The IDs of the Dedicated Hosts associated with the reservation.
public void setHostIdSet(Collection<String> hostIdSet)
The IDs of the Dedicated Hosts associated with the reservation.
hostIdSet
- The IDs of the Dedicated Hosts associated with the reservation.public HostReservation withHostIdSet(String... hostIdSet)
The IDs of the Dedicated Hosts associated with the reservation.
NOTE: This method appends the values to the existing list (if any). Use
setHostIdSet(java.util.Collection)
or withHostIdSet(java.util.Collection)
if you want to
override the existing values.
hostIdSet
- The IDs of the Dedicated Hosts associated with the reservation.public HostReservation withHostIdSet(Collection<String> hostIdSet)
The IDs of the Dedicated Hosts associated with the reservation.
hostIdSet
- The IDs of the Dedicated Hosts associated with the reservation.public void setHostReservationId(String hostReservationId)
The ID of the reservation that specifies the associated Dedicated Hosts.
hostReservationId
- The ID of the reservation that specifies the associated Dedicated Hosts.public String getHostReservationId()
The ID of the reservation that specifies the associated Dedicated Hosts.
public HostReservation withHostReservationId(String hostReservationId)
The ID of the reservation that specifies the associated Dedicated Hosts.
hostReservationId
- The ID of the reservation that specifies the associated Dedicated Hosts.public void setHourlyPrice(String hourlyPrice)
The hourly price of the reservation.
hourlyPrice
- The hourly price of the reservation.public String getHourlyPrice()
The hourly price of the reservation.
public HostReservation withHourlyPrice(String hourlyPrice)
The hourly price of the reservation.
hourlyPrice
- The hourly price of the reservation.public void setInstanceFamily(String instanceFamily)
The instance family of the Dedicated Host Reservation. The instance family on the Dedicated Host must be the same in order for it to benefit from the reservation.
instanceFamily
- The instance family of the Dedicated Host Reservation. The instance family on the Dedicated Host must be
the same in order for it to benefit from the reservation.public String getInstanceFamily()
The instance family of the Dedicated Host Reservation. The instance family on the Dedicated Host must be the same in order for it to benefit from the reservation.
public HostReservation withInstanceFamily(String instanceFamily)
The instance family of the Dedicated Host Reservation. The instance family on the Dedicated Host must be the same in order for it to benefit from the reservation.
instanceFamily
- The instance family of the Dedicated Host Reservation. The instance family on the Dedicated Host must be
the same in order for it to benefit from the reservation.public void setOfferingId(String offeringId)
The ID of the reservation. This remains the same regardless of which Dedicated Hosts are associated with it.
offeringId
- The ID of the reservation. This remains the same regardless of which Dedicated Hosts are associated with
it.public String getOfferingId()
The ID of the reservation. This remains the same regardless of which Dedicated Hosts are associated with it.
public HostReservation withOfferingId(String offeringId)
The ID of the reservation. This remains the same regardless of which Dedicated Hosts are associated with it.
offeringId
- The ID of the reservation. This remains the same regardless of which Dedicated Hosts are associated with
it.public void setPaymentOption(String paymentOption)
The payment option selected for this reservation.
paymentOption
- The payment option selected for this reservation.PaymentOption
public String getPaymentOption()
The payment option selected for this reservation.
PaymentOption
public HostReservation withPaymentOption(String paymentOption)
The payment option selected for this reservation.
paymentOption
- The payment option selected for this reservation.PaymentOption
public void setPaymentOption(PaymentOption paymentOption)
The payment option selected for this reservation.
paymentOption
- The payment option selected for this reservation.PaymentOption
public HostReservation withPaymentOption(PaymentOption paymentOption)
The payment option selected for this reservation.
paymentOption
- The payment option selected for this reservation.PaymentOption
public void setStart(Date start)
The date and time that the reservation started.
start
- The date and time that the reservation started.public Date getStart()
The date and time that the reservation started.
public HostReservation withStart(Date start)
The date and time that the reservation started.
start
- The date and time that the reservation started.public void setState(String state)
The state of the reservation.
state
- The state of the reservation.ReservationState
public String getState()
The state of the reservation.
ReservationState
public HostReservation withState(String state)
The state of the reservation.
state
- The state of the reservation.ReservationState
public void setState(ReservationState state)
The state of the reservation.
state
- The state of the reservation.ReservationState
public HostReservation withState(ReservationState state)
The state of the reservation.
state
- The state of the reservation.ReservationState
public void setUpfrontPrice(String upfrontPrice)
The upfront price of the reservation.
upfrontPrice
- The upfront price of the reservation.public String getUpfrontPrice()
The upfront price of the reservation.
public HostReservation withUpfrontPrice(String upfrontPrice)
The upfront price of the reservation.
upfrontPrice
- The upfront price of the reservation.public List<Tag> getTags()
Any tags assigned to the Dedicated Host Reservation.
public void setTags(Collection<Tag> tags)
Any tags assigned to the Dedicated Host Reservation.
tags
- Any tags assigned to the Dedicated Host Reservation.public HostReservation withTags(Tag... tags)
Any tags assigned to the Dedicated Host Reservation.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Any tags assigned to the Dedicated Host Reservation.public HostReservation withTags(Collection<Tag> tags)
Any tags assigned to the Dedicated Host Reservation.
tags
- Any tags assigned to the Dedicated Host Reservation.public String toString()
toString
in class Object
Object.toString()
public HostReservation clone()