public class PurchaseScheduledInstancesRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<PurchaseScheduledInstancesRequest>
PurchaseScheduledInstances operation
.
Purchases one or more Scheduled Instances with the specified schedule.
Scheduled Instances enable you to purchase Amazon EC2 compute capacity by the hour for a one-year term. Before you can purchase a Scheduled Instance, you must call DescribeScheduledInstanceAvailability to check for available schedules and obtain a purchase token. After you purchase a Scheduled Instance, you must call RunScheduledInstances during each scheduled time period.
After you purchase a Scheduled Instance, you can't cancel, modify, or resell your purchase.
Constructor and Description |
---|
PurchaseScheduledInstancesRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClientToken()
Unique, case-sensitive identifier that ensures the idempotency of the
request.
|
Request<PurchaseScheduledInstancesRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.util.List<PurchaseRequest> |
getPurchaseRequests()
One or more purchase requests.
|
int |
hashCode() |
void |
setClientToken(java.lang.String clientToken)
Unique, case-sensitive identifier that ensures the idempotency of the
request.
|
void |
setPurchaseRequests(java.util.Collection<PurchaseRequest> purchaseRequests)
One or more purchase requests.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PurchaseScheduledInstancesRequest |
withClientToken(java.lang.String clientToken)
Unique, case-sensitive identifier that ensures the idempotency of the
request.
|
PurchaseScheduledInstancesRequest |
withPurchaseRequests(java.util.Collection<PurchaseRequest> purchaseRequests)
One or more purchase requests.
|
PurchaseScheduledInstancesRequest |
withPurchaseRequests(PurchaseRequest... purchaseRequests)
One or more purchase requests.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getClientToken()
public void setClientToken(java.lang.String clientToken)
clientToken
- Unique, case-sensitive identifier that ensures the idempotency of the
request. For more information, see Ensuring
Idempotency.public PurchaseScheduledInstancesRequest withClientToken(java.lang.String clientToken)
Returns a reference to this object so that method calls can be chained together.
clientToken
- Unique, case-sensitive identifier that ensures the idempotency of the
request. For more information, see Ensuring
Idempotency.public java.util.List<PurchaseRequest> getPurchaseRequests()
Constraints:
Length: 1 -
public void setPurchaseRequests(java.util.Collection<PurchaseRequest> purchaseRequests)
Constraints:
Length: 1 -
purchaseRequests
- One or more purchase requests.public PurchaseScheduledInstancesRequest withPurchaseRequests(PurchaseRequest... purchaseRequests)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
purchaseRequests
- One or more purchase requests.public PurchaseScheduledInstancesRequest withPurchaseRequests(java.util.Collection<PurchaseRequest> purchaseRequests)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
purchaseRequests
- One or more purchase requests.public Request<PurchaseScheduledInstancesRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<PurchaseScheduledInstancesRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.