Class PurchaseReservedDBInstancesOfferingRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.rds.model.PurchaseReservedDBInstancesOfferingRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class PurchaseReservedDBInstancesOfferingRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

See Also:
  • Constructor Details

    • PurchaseReservedDBInstancesOfferingRequest

      public PurchaseReservedDBInstancesOfferingRequest()
      Default constructor for PurchaseReservedDBInstancesOfferingRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the 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 Details

    • 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

    • 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

    • withReservedDBInstancesOfferingId

      public PurchaseReservedDBInstancesOfferingRequest withReservedDBInstancesOfferingId(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

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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

    • getReservedDBInstanceId

      public String getReservedDBInstanceId()

      Customer-specified identifier to track this reservation.

      Example: myreservationID

      Returns:
      Customer-specified identifier to track this reservation.

      Example: myreservationID

    • withReservedDBInstanceId

      public PurchaseReservedDBInstancesOfferingRequest withReservedDBInstanceId(String reservedDBInstanceId)

      Customer-specified identifier to track this reservation.

      Example: myreservationID

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

      Example: myreservationID

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

      public void setDBInstanceCount(Integer dBInstanceCount)

      The number of instances to reserve.

      Default: 1

      Parameters:
      dBInstanceCount - The number of instances to reserve.

      Default: 1

    • getDBInstanceCount

      public Integer getDBInstanceCount()

      The number of instances to reserve.

      Default: 1

      Returns:
      The number of instances to reserve.

      Default: 1

    • withDBInstanceCount

      public PurchaseReservedDBInstancesOfferingRequest withDBInstanceCount(Integer dBInstanceCount)

      The number of instances to reserve.

      Default: 1

      Parameters:
      dBInstanceCount - The number of instances to reserve.

      Default: 1

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

      public List<Tag> getTags()
      Returns:
    • setTags

      public void setTags(Collection<Tag> tags)
      Parameters:
      tags -
    • withTags

      NOTE: This method appends the values to the existing list (if any). Use setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the existing values.

      Parameters:
      tags -
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withTags

      Parameters:
      tags -
      Returns:
      Returns a reference to this 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:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: