Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.rds.model
Class PurchaseReservedDBInstancesOfferingRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.rds.model.PurchaseReservedDBInstancesOfferingRequest
All Implemented Interfaces:
Serializable

public class PurchaseReservedDBInstancesOfferingRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the PurchaseReservedDBInstancesOffering operation.

Purchases a reserved DB Instance offering.

See Also:
AmazonRDS.purchaseReservedDBInstancesOffering(PurchaseReservedDBInstancesOfferingRequest), Serialized Form

Constructor Summary
PurchaseReservedDBInstancesOfferingRequest()
          Default constructor for a new PurchaseReservedDBInstancesOfferingRequest object.
PurchaseReservedDBInstancesOfferingRequest(String reservedDBInstancesOfferingId)
          Constructs a new PurchaseReservedDBInstancesOfferingRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 Integer getDBInstanceCount()
          The number of instances to reserve.
 String getReservedDBInstanceId()
          Customer-specified identifier to track this reservation.
 String getReservedDBInstancesOfferingId()
          The ID of the Reserved DB Instance offering to purchase.
 int hashCode()
           
 void setDBInstanceCount(Integer dBInstanceCount)
          The number of instances to reserve.
 void setReservedDBInstanceId(String reservedDBInstanceId)
          Customer-specified identifier to track this reservation.
 void setReservedDBInstancesOfferingId(String reservedDBInstancesOfferingId)
          The ID of the Reserved DB Instance offering to purchase.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 PurchaseReservedDBInstancesOfferingRequest withDBInstanceCount(Integer dBInstanceCount)
          The number of instances to reserve.
 PurchaseReservedDBInstancesOfferingRequest withReservedDBInstanceId(String reservedDBInstanceId)
          Customer-specified identifier to track this reservation.
 PurchaseReservedDBInstancesOfferingRequest withReservedDBInstancesOfferingId(String reservedDBInstancesOfferingId)
          The ID of the Reserved DB Instance offering to purchase.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PurchaseReservedDBInstancesOfferingRequest

public PurchaseReservedDBInstancesOfferingRequest()
Default constructor for a new PurchaseReservedDBInstancesOfferingRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


PurchaseReservedDBInstancesOfferingRequest

public PurchaseReservedDBInstancesOfferingRequest(String reservedDBInstancesOfferingId)
Constructs a new PurchaseReservedDBInstancesOfferingRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
reservedDBInstancesOfferingId - The ID of the Reserved DB Instance offering to purchase.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

Method Detail

getReservedDBInstancesOfferingId

public String getReservedDBInstancesOfferingId()
The ID of the Reserved DB Instance offering to purchase.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

Returns:
The ID of the Reserved DB Instance offering to purchase.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706


setReservedDBInstancesOfferingId

public void setReservedDBInstancesOfferingId(String reservedDBInstancesOfferingId)
The ID of the Reserved DB Instance offering to purchase.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

Parameters:
reservedDBInstancesOfferingId - The ID of the Reserved DB Instance offering to purchase.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706


withReservedDBInstancesOfferingId

public PurchaseReservedDBInstancesOfferingRequest withReservedDBInstancesOfferingId(String reservedDBInstancesOfferingId)
The ID of the Reserved DB Instance offering to purchase.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

Returns a reference to this object so that method calls can be chained together.

Parameters:
reservedDBInstancesOfferingId - The ID of the Reserved DB Instance offering to purchase.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

Returns:
A reference to this updated object so that method calls can be chained together.

getReservedDBInstanceId

public String getReservedDBInstanceId()
Customer-specified identifier to track this reservation.

Example: myreservationID

Returns:
Customer-specified identifier to track this reservation.

Example: myreservationID


setReservedDBInstanceId

public void setReservedDBInstanceId(String reservedDBInstanceId)
Customer-specified identifier to track this reservation.

Example: myreservationID

Parameters:
reservedDBInstanceId - Customer-specified identifier to track this reservation.

Example: myreservationID


withReservedDBInstanceId

public PurchaseReservedDBInstancesOfferingRequest withReservedDBInstanceId(String reservedDBInstanceId)
Customer-specified identifier to track this reservation.

Example: myreservationID

Returns a reference to this object so that method calls can be chained together.

Parameters:
reservedDBInstanceId - Customer-specified identifier to track this reservation.

Example: myreservationID

Returns:
A reference to this updated object so that method calls can be chained together.

getDBInstanceCount

public Integer getDBInstanceCount()
The number of instances to reserve.

Default: 1

Returns:
The number of instances to reserve.

Default: 1


setDBInstanceCount

public void setDBInstanceCount(Integer dBInstanceCount)
The number of instances to reserve.

Default: 1

Parameters:
dBInstanceCount - The number of instances to reserve.

Default: 1


withDBInstanceCount

public PurchaseReservedDBInstancesOfferingRequest withDBInstanceCount(Integer dBInstanceCount)
The number of instances to reserve.

Default: 1

Returns a reference to this object so that method calls can be chained together.

Parameters:
dBInstanceCount - The number of instances to reserve.

Default: 1

Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.