public class PurchaseReservedInstancesOfferingRequest extends AmazonWebServiceRequest implements java.io.Serializable
PurchaseReservedInstancesOffering operation.
The PurchaseReservedInstancesOffering operation purchases a Reserved Instance for use with your account. With Amazon EC2 Reserved Instances, you purchase the right to launch Amazon EC2 instances for a period of time (without getting insufficient capacity errors) and pay a lower usage rate for the actual time used.
| コンストラクタと説明 |
|---|
PurchaseReservedInstancesOfferingRequest()
Default constructor for a new PurchaseReservedInstancesOfferingRequest object.
|
PurchaseReservedInstancesOfferingRequest(java.lang.String reservedInstancesOfferingId,
java.lang.Integer instanceCount)
Constructs a new PurchaseReservedInstancesOfferingRequest object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getInstanceCount()
The number of Reserved Instances to purchase.
|
ReservedInstanceLimitPrice |
getLimitPrice()
Returns the value of the LimitPrice property for this object.
|
java.lang.String |
getReservedInstancesOfferingId()
The unique ID of the Reserved Instances offering being purchased.
|
int |
hashCode() |
void |
setInstanceCount(java.lang.Integer instanceCount)
The number of Reserved Instances to purchase.
|
void |
setLimitPrice(ReservedInstanceLimitPrice limitPrice)
Sets the value of the LimitPrice property for this object.
|
void |
setReservedInstancesOfferingId(java.lang.String reservedInstancesOfferingId)
The unique ID of the Reserved Instances offering being purchased.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PurchaseReservedInstancesOfferingRequest |
withInstanceCount(java.lang.Integer instanceCount)
The number of Reserved Instances to purchase.
|
PurchaseReservedInstancesOfferingRequest |
withLimitPrice(ReservedInstanceLimitPrice limitPrice)
Sets the value of the LimitPrice property for this object.
|
PurchaseReservedInstancesOfferingRequest |
withReservedInstancesOfferingId(java.lang.String reservedInstancesOfferingId)
The unique ID of the Reserved Instances offering being purchased.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic PurchaseReservedInstancesOfferingRequest()
public PurchaseReservedInstancesOfferingRequest(java.lang.String reservedInstancesOfferingId,
java.lang.Integer instanceCount)
reservedInstancesOfferingId - The unique ID of the Reserved
Instances offering being purchased.instanceCount - The number of Reserved Instances to purchase.public java.lang.String getReservedInstancesOfferingId()
public void setReservedInstancesOfferingId(java.lang.String reservedInstancesOfferingId)
reservedInstancesOfferingId - The unique ID of the Reserved Instances offering being purchased.public PurchaseReservedInstancesOfferingRequest withReservedInstancesOfferingId(java.lang.String reservedInstancesOfferingId)
Returns a reference to this object so that method calls can be chained together.
reservedInstancesOfferingId - The unique ID of the Reserved Instances offering being purchased.public java.lang.Integer getInstanceCount()
public void setInstanceCount(java.lang.Integer instanceCount)
instanceCount - The number of Reserved Instances to purchase.public PurchaseReservedInstancesOfferingRequest withInstanceCount(java.lang.Integer instanceCount)
Returns a reference to this object so that method calls can be chained together.
instanceCount - The number of Reserved Instances to purchase.public ReservedInstanceLimitPrice getLimitPrice()
public void setLimitPrice(ReservedInstanceLimitPrice limitPrice)
limitPrice - The new value for the LimitPrice property for this object.public PurchaseReservedInstancesOfferingRequest withLimitPrice(ReservedInstanceLimitPrice limitPrice)
Returns a reference to this object so that method calls can be chained together.
limitPrice - The new value for the LimitPrice property for this object.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object