public class PurchaseRequest
extends java.lang.Object
implements java.io.Serializable
Describes a request to purchase Scheduled Instances.
Constructor and Description |
---|
PurchaseRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getInstanceCount()
The number of instances.
|
java.lang.String |
getPurchaseToken()
The purchase token.
|
int |
hashCode() |
void |
setInstanceCount(java.lang.Integer instanceCount)
The number of instances.
|
void |
setPurchaseToken(java.lang.String purchaseToken)
The purchase token.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PurchaseRequest |
withInstanceCount(java.lang.Integer instanceCount)
The number of instances.
|
PurchaseRequest |
withPurchaseToken(java.lang.String purchaseToken)
The purchase token.
|
public java.lang.String getPurchaseToken()
public void setPurchaseToken(java.lang.String purchaseToken)
purchaseToken
- The purchase token.public PurchaseRequest withPurchaseToken(java.lang.String purchaseToken)
Returns a reference to this object so that method calls can be chained together.
purchaseToken
- The purchase token.public java.lang.Integer getInstanceCount()
public void setInstanceCount(java.lang.Integer instanceCount)
instanceCount
- The number of instances.public PurchaseRequest withInstanceCount(java.lang.Integer instanceCount)
Returns a reference to this object so that method calls can be chained together.
instanceCount
- The number of instances.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.