Class ReservedDBInstancesOffering

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

public class ReservedDBInstancesOffering extends Object implements Serializable, Cloneable

This data type is used as a response element in the DescribeReservedDBInstancesOfferings action.

See Also:
  • Constructor Details

    • ReservedDBInstancesOffering

      public ReservedDBInstancesOffering()
  • Method Details

    • setReservedDBInstancesOfferingId

      public void setReservedDBInstancesOfferingId(String reservedDBInstancesOfferingId)

      The offering identifier.

      Parameters:
      reservedDBInstancesOfferingId - The offering identifier.
    • getReservedDBInstancesOfferingId

      public String getReservedDBInstancesOfferingId()

      The offering identifier.

      Returns:
      The offering identifier.
    • withReservedDBInstancesOfferingId

      public ReservedDBInstancesOffering withReservedDBInstancesOfferingId(String reservedDBInstancesOfferingId)

      The offering identifier.

      Parameters:
      reservedDBInstancesOfferingId - The offering identifier.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDBInstanceClass

      public void setDBInstanceClass(String dBInstanceClass)

      The DB instance class for the reserved DB instance.

      Parameters:
      dBInstanceClass - The DB instance class for the reserved DB instance.
    • getDBInstanceClass

      public String getDBInstanceClass()

      The DB instance class for the reserved DB instance.

      Returns:
      The DB instance class for the reserved DB instance.
    • withDBInstanceClass

      public ReservedDBInstancesOffering withDBInstanceClass(String dBInstanceClass)

      The DB instance class for the reserved DB instance.

      Parameters:
      dBInstanceClass - The DB instance class for the reserved DB instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDuration

      public void setDuration(Integer duration)

      The duration of the offering in seconds.

      Parameters:
      duration - The duration of the offering in seconds.
    • getDuration

      public Integer getDuration()

      The duration of the offering in seconds.

      Returns:
      The duration of the offering in seconds.
    • withDuration

      public ReservedDBInstancesOffering withDuration(Integer duration)

      The duration of the offering in seconds.

      Parameters:
      duration - The duration of the offering in seconds.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setFixedPrice

      public void setFixedPrice(Double fixedPrice)

      The fixed price charged for this offering.

      Parameters:
      fixedPrice - The fixed price charged for this offering.
    • getFixedPrice

      public Double getFixedPrice()

      The fixed price charged for this offering.

      Returns:
      The fixed price charged for this offering.
    • withFixedPrice

      public ReservedDBInstancesOffering withFixedPrice(Double fixedPrice)

      The fixed price charged for this offering.

      Parameters:
      fixedPrice - The fixed price charged for this offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setUsagePrice

      public void setUsagePrice(Double usagePrice)

      The hourly price charged for this offering.

      Parameters:
      usagePrice - The hourly price charged for this offering.
    • getUsagePrice

      public Double getUsagePrice()

      The hourly price charged for this offering.

      Returns:
      The hourly price charged for this offering.
    • withUsagePrice

      public ReservedDBInstancesOffering withUsagePrice(Double usagePrice)

      The hourly price charged for this offering.

      Parameters:
      usagePrice - The hourly price charged for this offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setCurrencyCode

      public void setCurrencyCode(String currencyCode)

      The currency code for the reserved DB instance offering.

      Parameters:
      currencyCode - The currency code for the reserved DB instance offering.
    • getCurrencyCode

      public String getCurrencyCode()

      The currency code for the reserved DB instance offering.

      Returns:
      The currency code for the reserved DB instance offering.
    • withCurrencyCode

      public ReservedDBInstancesOffering withCurrencyCode(String currencyCode)

      The currency code for the reserved DB instance offering.

      Parameters:
      currencyCode - The currency code for the reserved DB instance offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setProductDescription

      public void setProductDescription(String productDescription)

      The database engine used by the offering.

      Parameters:
      productDescription - The database engine used by the offering.
    • getProductDescription

      public String getProductDescription()

      The database engine used by the offering.

      Returns:
      The database engine used by the offering.
    • withProductDescription

      public ReservedDBInstancesOffering withProductDescription(String productDescription)

      The database engine used by the offering.

      Parameters:
      productDescription - The database engine used by the offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setOfferingType

      public void setOfferingType(String offeringType)

      The offering type.

      Parameters:
      offeringType - The offering type.
    • getOfferingType

      public String getOfferingType()

      The offering type.

      Returns:
      The offering type.
    • withOfferingType

      public ReservedDBInstancesOffering withOfferingType(String offeringType)

      The offering type.

      Parameters:
      offeringType - The offering type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setMultiAZ

      public void setMultiAZ(Boolean multiAZ)

      Indicates if the offering applies to Multi-AZ deployments.

      Parameters:
      multiAZ - Indicates if the offering applies to Multi-AZ deployments.
    • getMultiAZ

      public Boolean getMultiAZ()

      Indicates if the offering applies to Multi-AZ deployments.

      Returns:
      Indicates if the offering applies to Multi-AZ deployments.
    • withMultiAZ

      public ReservedDBInstancesOffering withMultiAZ(Boolean multiAZ)

      Indicates if the offering applies to Multi-AZ deployments.

      Parameters:
      multiAZ - Indicates if the offering applies to Multi-AZ deployments.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isMultiAZ

      public Boolean isMultiAZ()

      Indicates if the offering applies to Multi-AZ deployments.

      Returns:
      Indicates if the offering applies to Multi-AZ deployments.
    • getRecurringCharges

      public List<RecurringCharge> getRecurringCharges()

      The recurring price charged to run this reserved DB instance.

      Returns:
      The recurring price charged to run this reserved DB instance.
    • setRecurringCharges

      public void setRecurringCharges(Collection<RecurringCharge> recurringCharges)

      The recurring price charged to run this reserved DB instance.

      Parameters:
      recurringCharges - The recurring price charged to run this reserved DB instance.
    • withRecurringCharges

      public ReservedDBInstancesOffering withRecurringCharges(RecurringCharge... recurringCharges)

      The recurring price charged to run this reserved DB instance.

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

      Parameters:
      recurringCharges - The recurring price charged to run this reserved DB instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withRecurringCharges

      public ReservedDBInstancesOffering withRecurringCharges(Collection<RecurringCharge> recurringCharges)

      The recurring price charged to run this reserved DB instance.

      Parameters:
      recurringCharges - The recurring price charged to run this reserved DB instance.
      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

      Overrides:
      clone in class Object