@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PurchaseHostReservationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<PurchaseHostReservationRequest>
NOOP
Constructor and Description |
---|
PurchaseHostReservationRequest() |
Modifier and Type | Method and Description |
---|---|
PurchaseHostReservationRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
String |
getCurrencyCode()
The currency in which the
totalUpfrontPrice , LimitPrice , and
totalHourlyPrice amounts are specified. |
Request<PurchaseHostReservationRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<String> |
getHostIdSet()
The IDs of the Dedicated Hosts with which the reservation will be associated.
|
String |
getLimitPrice()
The specified limit is checked against the total upfront cost of the reservation (calculated as the offering's
upfront cost multiplied by the host count).
|
String |
getOfferingId()
The ID of the offering.
|
List<TagSpecification> |
getTagSpecifications()
The tags to apply to the Dedicated Host Reservation during purchase.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setCurrencyCode(CurrencyCodeValues currencyCode)
The currency in which the
totalUpfrontPrice , LimitPrice , and
totalHourlyPrice amounts are specified. |
void |
setCurrencyCode(String currencyCode)
The currency in which the
totalUpfrontPrice , LimitPrice , and
totalHourlyPrice amounts are specified. |
void |
setHostIdSet(Collection<String> hostIdSet)
The IDs of the Dedicated Hosts with which the reservation will be associated.
|
void |
setLimitPrice(String limitPrice)
The specified limit is checked against the total upfront cost of the reservation (calculated as the offering's
upfront cost multiplied by the host count).
|
void |
setOfferingId(String offeringId)
The ID of the offering.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Dedicated Host Reservation during purchase.
|
String |
toString()
Returns a string representation of this object.
|
PurchaseHostReservationRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
PurchaseHostReservationRequest |
withCurrencyCode(CurrencyCodeValues currencyCode)
The currency in which the
totalUpfrontPrice , LimitPrice , and
totalHourlyPrice amounts are specified. |
PurchaseHostReservationRequest |
withCurrencyCode(String currencyCode)
The currency in which the
totalUpfrontPrice , LimitPrice , and
totalHourlyPrice amounts are specified. |
PurchaseHostReservationRequest |
withHostIdSet(Collection<String> hostIdSet)
The IDs of the Dedicated Hosts with which the reservation will be associated.
|
PurchaseHostReservationRequest |
withHostIdSet(String... hostIdSet)
The IDs of the Dedicated Hosts with which the reservation will be associated.
|
PurchaseHostReservationRequest |
withLimitPrice(String limitPrice)
The specified limit is checked against the total upfront cost of the reservation (calculated as the offering's
upfront cost multiplied by the host count).
|
PurchaseHostReservationRequest |
withOfferingId(String offeringId)
The ID of the offering.
|
PurchaseHostReservationRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Dedicated Host Reservation during purchase.
|
PurchaseHostReservationRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the Dedicated Host Reservation during purchase.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see Ensuring
Idempotency.public String getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
public PurchaseHostReservationRequest withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see Ensuring
Idempotency.public void setCurrencyCode(String currencyCode)
The currency in which the totalUpfrontPrice
, LimitPrice
, and
totalHourlyPrice
amounts are specified. At this time, the only supported currency is
USD
.
currencyCode
- The currency in which the totalUpfrontPrice
, LimitPrice
, and
totalHourlyPrice
amounts are specified. At this time, the only supported currency is
USD
.CurrencyCodeValues
public String getCurrencyCode()
The currency in which the totalUpfrontPrice
, LimitPrice
, and
totalHourlyPrice
amounts are specified. At this time, the only supported currency is
USD
.
totalUpfrontPrice
, LimitPrice
, and
totalHourlyPrice
amounts are specified. At this time, the only supported currency is
USD
.CurrencyCodeValues
public PurchaseHostReservationRequest withCurrencyCode(String currencyCode)
The currency in which the totalUpfrontPrice
, LimitPrice
, and
totalHourlyPrice
amounts are specified. At this time, the only supported currency is
USD
.
currencyCode
- The currency in which the totalUpfrontPrice
, LimitPrice
, and
totalHourlyPrice
amounts are specified. At this time, the only supported currency is
USD
.CurrencyCodeValues
public void setCurrencyCode(CurrencyCodeValues currencyCode)
The currency in which the totalUpfrontPrice
, LimitPrice
, and
totalHourlyPrice
amounts are specified. At this time, the only supported currency is
USD
.
currencyCode
- The currency in which the totalUpfrontPrice
, LimitPrice
, and
totalHourlyPrice
amounts are specified. At this time, the only supported currency is
USD
.CurrencyCodeValues
public PurchaseHostReservationRequest withCurrencyCode(CurrencyCodeValues currencyCode)
The currency in which the totalUpfrontPrice
, LimitPrice
, and
totalHourlyPrice
amounts are specified. At this time, the only supported currency is
USD
.
currencyCode
- The currency in which the totalUpfrontPrice
, LimitPrice
, and
totalHourlyPrice
amounts are specified. At this time, the only supported currency is
USD
.CurrencyCodeValues
public List<String> getHostIdSet()
The IDs of the Dedicated Hosts with which the reservation will be associated.
public void setHostIdSet(Collection<String> hostIdSet)
The IDs of the Dedicated Hosts with which the reservation will be associated.
hostIdSet
- The IDs of the Dedicated Hosts with which the reservation will be associated.public PurchaseHostReservationRequest withHostIdSet(String... hostIdSet)
The IDs of the Dedicated Hosts with which the reservation will be associated.
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 with which the reservation will be associated.public PurchaseHostReservationRequest withHostIdSet(Collection<String> hostIdSet)
The IDs of the Dedicated Hosts with which the reservation will be associated.
hostIdSet
- The IDs of the Dedicated Hosts with which the reservation will be associated.public void setLimitPrice(String limitPrice)
The specified limit is checked against the total upfront cost of the reservation (calculated as the offering's
upfront cost multiplied by the host count). If the total upfront cost is greater than the specified price limit,
the request fails. This is used to ensure that the purchase does not exceed the expected upfront cost of the
purchase. At this time, the only supported currency is USD
. For example, to indicate a limit price
of USD 100, specify 100.00.
limitPrice
- The specified limit is checked against the total upfront cost of the reservation (calculated as the
offering's upfront cost multiplied by the host count). If the total upfront cost is greater than the
specified price limit, the request fails. This is used to ensure that the purchase does not exceed the
expected upfront cost of the purchase. At this time, the only supported currency is USD
. For
example, to indicate a limit price of USD 100, specify 100.00.public String getLimitPrice()
The specified limit is checked against the total upfront cost of the reservation (calculated as the offering's
upfront cost multiplied by the host count). If the total upfront cost is greater than the specified price limit,
the request fails. This is used to ensure that the purchase does not exceed the expected upfront cost of the
purchase. At this time, the only supported currency is USD
. For example, to indicate a limit price
of USD 100, specify 100.00.
USD
. For
example, to indicate a limit price of USD 100, specify 100.00.public PurchaseHostReservationRequest withLimitPrice(String limitPrice)
The specified limit is checked against the total upfront cost of the reservation (calculated as the offering's
upfront cost multiplied by the host count). If the total upfront cost is greater than the specified price limit,
the request fails. This is used to ensure that the purchase does not exceed the expected upfront cost of the
purchase. At this time, the only supported currency is USD
. For example, to indicate a limit price
of USD 100, specify 100.00.
limitPrice
- The specified limit is checked against the total upfront cost of the reservation (calculated as the
offering's upfront cost multiplied by the host count). If the total upfront cost is greater than the
specified price limit, the request fails. This is used to ensure that the purchase does not exceed the
expected upfront cost of the purchase. At this time, the only supported currency is USD
. For
example, to indicate a limit price of USD 100, specify 100.00.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 PurchaseHostReservationRequest withOfferingId(String offeringId)
The ID of the offering.
offeringId
- The ID of the offering.public List<TagSpecification> getTagSpecifications()
The tags to apply to the Dedicated Host Reservation during purchase.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Dedicated Host Reservation during purchase.
tagSpecifications
- The tags to apply to the Dedicated Host Reservation during purchase.public PurchaseHostReservationRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the Dedicated Host Reservation during purchase.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection)
or withTagSpecifications(java.util.Collection)
if
you want to override the existing values.
tagSpecifications
- The tags to apply to the Dedicated Host Reservation during purchase.public PurchaseHostReservationRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Dedicated Host Reservation during purchase.
tagSpecifications
- The tags to apply to the Dedicated Host Reservation during purchase.public Request<PurchaseHostReservationRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<PurchaseHostReservationRequest>
public String toString()
toString
in class Object
Object.toString()
public PurchaseHostReservationRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()