@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PurchaseRequest extends Object implements Serializable, Cloneable
Describes a request to purchase Scheduled Instances.
Constructor and Description |
---|
PurchaseRequest() |
Modifier and Type | Method and Description |
---|---|
PurchaseRequest |
clone() |
boolean |
equals(Object obj) |
Integer |
getInstanceCount()
The number of instances.
|
String |
getPurchaseToken()
The purchase token.
|
int |
hashCode() |
void |
setInstanceCount(Integer instanceCount)
The number of instances.
|
void |
setPurchaseToken(String purchaseToken)
The purchase token.
|
String |
toString()
Returns a string representation of this object.
|
PurchaseRequest |
withInstanceCount(Integer instanceCount)
The number of instances.
|
PurchaseRequest |
withPurchaseToken(String purchaseToken)
The purchase token.
|
public void setInstanceCount(Integer instanceCount)
The number of instances.
instanceCount
- The number of instances.public Integer getInstanceCount()
The number of instances.
public PurchaseRequest withInstanceCount(Integer instanceCount)
The number of instances.
instanceCount
- The number of instances.public void setPurchaseToken(String purchaseToken)
The purchase token.
purchaseToken
- The purchase token.public String getPurchaseToken()
The purchase token.
public PurchaseRequest withPurchaseToken(String purchaseToken)
The purchase token.
purchaseToken
- The purchase token.public String toString()
toString
in class Object
Object.toString()
public PurchaseRequest clone()