@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 you provide to ensure 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 ID/s of the Dedicated Host/s that the reservation will be associated with.
|
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.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure 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 ID/s of the Dedicated Host/s that the reservation will be associated with.
|
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.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
PurchaseHostReservationRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure 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 ID/s of the Dedicated Host/s that the reservation will be associated with.
|
PurchaseHostReservationRequest |
withHostIdSet(String... hostIdSet)
The ID/s of the Dedicated Host/s that the reservation will be associated with.
|
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.
|
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 you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.
clientToken
- Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information,
see How to
Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.public String getClientToken()
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.
public PurchaseHostReservationRequest withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.
clientToken
- Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information,
see How to
Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.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 ID/s of the Dedicated Host/s that the reservation will be associated with.
public void setHostIdSet(Collection<String> hostIdSet)
The ID/s of the Dedicated Host/s that the reservation will be associated with.
hostIdSet
- The ID/s of the Dedicated Host/s that the reservation will be associated with.public PurchaseHostReservationRequest withHostIdSet(String... hostIdSet)
The ID/s of the Dedicated Host/s that the reservation will be associated with.
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 ID/s of the Dedicated Host/s that the reservation will be associated with.public PurchaseHostReservationRequest withHostIdSet(Collection<String> hostIdSet)
The ID/s of the Dedicated Host/s that the reservation will be associated with.
hostIdSet
- The ID/s of the Dedicated Host/s that the reservation will be associated with.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 will fail. 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 will fail. 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 will fail. 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 will fail. 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 will fail. 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 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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.