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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReservedDBInstancesOffering()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReservedDBInstancesOffering
clone()
boolean
equals(Object obj)
String
getCurrencyCode()
The currency code for the reserved DB instance offering.String
getDBInstanceClass()
The DB instance class for the reserved DB instance.Integer
getDuration()
The duration of the offering in seconds.Double
getFixedPrice()
The fixed price charged for this offering.Boolean
getMultiAZ()
Indicates if the offering applies to Multi-AZ deployments.String
getOfferingType()
The offering type.String
getProductDescription()
The database engine used by the offering.List<RecurringCharge>
getRecurringCharges()
The recurring price charged to run this reserved DB instance.String
getReservedDBInstancesOfferingId()
The offering identifier.Double
getUsagePrice()
The hourly price charged for this offering.int
hashCode()
Boolean
isMultiAZ()
Indicates if the offering applies to Multi-AZ deployments.void
setCurrencyCode(String currencyCode)
The currency code for the reserved DB instance offering.void
setDBInstanceClass(String dBInstanceClass)
The DB instance class for the reserved DB instance.void
setDuration(Integer duration)
The duration of the offering in seconds.void
setFixedPrice(Double fixedPrice)
The fixed price charged for this offering.void
setMultiAZ(Boolean multiAZ)
Indicates if the offering applies to Multi-AZ deployments.void
setOfferingType(String offeringType)
The offering type.void
setProductDescription(String productDescription)
The database engine used by the offering.void
setRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring price charged to run this reserved DB instance.void
setReservedDBInstancesOfferingId(String reservedDBInstancesOfferingId)
The offering identifier.void
setUsagePrice(Double usagePrice)
The hourly price charged for this offering.String
toString()
Returns a string representation of this object; useful for testing and debugging.ReservedDBInstancesOffering
withCurrencyCode(String currencyCode)
The currency code for the reserved DB instance offering.ReservedDBInstancesOffering
withDBInstanceClass(String dBInstanceClass)
The DB instance class for the reserved DB instance.ReservedDBInstancesOffering
withDuration(Integer duration)
The duration of the offering in seconds.ReservedDBInstancesOffering
withFixedPrice(Double fixedPrice)
The fixed price charged for this offering.ReservedDBInstancesOffering
withMultiAZ(Boolean multiAZ)
Indicates if the offering applies to Multi-AZ deployments.ReservedDBInstancesOffering
withOfferingType(String offeringType)
The offering type.ReservedDBInstancesOffering
withProductDescription(String productDescription)
The database engine used by the offering.ReservedDBInstancesOffering
withRecurringCharges(RecurringCharge... recurringCharges)
The recurring price charged to run this reserved DB instance.ReservedDBInstancesOffering
withRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring price charged to run this reserved DB instance.ReservedDBInstancesOffering
withReservedDBInstancesOfferingId(String reservedDBInstancesOfferingId)
The offering identifier.ReservedDBInstancesOffering
withUsagePrice(Double usagePrice)
The hourly price charged for this offering.
-
-
-
Method Detail
-
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)
orwithRecurringCharges(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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ReservedDBInstancesOffering clone()
-
-