Class ReservedDBInstance
- java.lang.Object
-
- com.amazonaws.services.rds.model.ReservedDBInstance
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ReservedDBInstance extends Object implements Serializable, Cloneable
This data type is used as a response element in the DescribeReservedDBInstances and PurchaseReservedDBInstancesOffering actions.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReservedDBInstance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReservedDBInstance
clone()
boolean
equals(Object obj)
String
getCurrencyCode()
The currency code for the reserved DB instance.String
getDBInstanceClass()
The DB instance class for the reserved DB instance.Integer
getDBInstanceCount()
The number of reserved DB instances.Integer
getDuration()
The duration of the reservation in seconds.Double
getFixedPrice()
The fixed price charged for this reserved DB instance.Boolean
getMultiAZ()
Indicates if the reservation applies to Multi-AZ deployments.String
getOfferingType()
The offering type of this reserved DB instance.String
getProductDescription()
The description of the reserved DB instance.List<RecurringCharge>
getRecurringCharges()
The recurring price charged to run this reserved DB instance.String
getReservedDBInstanceId()
The unique identifier for the reservation.String
getReservedDBInstancesOfferingId()
The offering identifier.Date
getStartTime()
The time the reservation started.String
getState()
The state of the reserved DB instance.Double
getUsagePrice()
The hourly price charged for this reserved DB instance.int
hashCode()
Boolean
isMultiAZ()
Indicates if the reservation applies to Multi-AZ deployments.void
setCurrencyCode(String currencyCode)
The currency code for the reserved DB instance.void
setDBInstanceClass(String dBInstanceClass)
The DB instance class for the reserved DB instance.void
setDBInstanceCount(Integer dBInstanceCount)
The number of reserved DB instances.void
setDuration(Integer duration)
The duration of the reservation in seconds.void
setFixedPrice(Double fixedPrice)
The fixed price charged for this reserved DB instance.void
setMultiAZ(Boolean multiAZ)
Indicates if the reservation applies to Multi-AZ deployments.void
setOfferingType(String offeringType)
The offering type of this reserved DB instance.void
setProductDescription(String productDescription)
The description of the reserved DB instance.void
setRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring price charged to run this reserved DB instance.void
setReservedDBInstanceId(String reservedDBInstanceId)
The unique identifier for the reservation.void
setReservedDBInstancesOfferingId(String reservedDBInstancesOfferingId)
The offering identifier.void
setStartTime(Date startTime)
The time the reservation started.void
setState(String state)
The state of the reserved DB instance.void
setUsagePrice(Double usagePrice)
The hourly price charged for this reserved DB instance.String
toString()
Returns a string representation of this object; useful for testing and debugging.ReservedDBInstance
withCurrencyCode(String currencyCode)
The currency code for the reserved DB instance.ReservedDBInstance
withDBInstanceClass(String dBInstanceClass)
The DB instance class for the reserved DB instance.ReservedDBInstance
withDBInstanceCount(Integer dBInstanceCount)
The number of reserved DB instances.ReservedDBInstance
withDuration(Integer duration)
The duration of the reservation in seconds.ReservedDBInstance
withFixedPrice(Double fixedPrice)
The fixed price charged for this reserved DB instance.ReservedDBInstance
withMultiAZ(Boolean multiAZ)
Indicates if the reservation applies to Multi-AZ deployments.ReservedDBInstance
withOfferingType(String offeringType)
The offering type of this reserved DB instance.ReservedDBInstance
withProductDescription(String productDescription)
The description of the reserved DB instance.ReservedDBInstance
withRecurringCharges(RecurringCharge... recurringCharges)
The recurring price charged to run this reserved DB instance.ReservedDBInstance
withRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring price charged to run this reserved DB instance.ReservedDBInstance
withReservedDBInstanceId(String reservedDBInstanceId)
The unique identifier for the reservation.ReservedDBInstance
withReservedDBInstancesOfferingId(String reservedDBInstancesOfferingId)
The offering identifier.ReservedDBInstance
withStartTime(Date startTime)
The time the reservation started.ReservedDBInstance
withState(String state)
The state of the reserved DB instance.ReservedDBInstance
withUsagePrice(Double usagePrice)
The hourly price charged for this reserved DB instance.
-
-
-
Method Detail
-
setReservedDBInstanceId
public void setReservedDBInstanceId(String reservedDBInstanceId)
The unique identifier for the reservation.
- Parameters:
reservedDBInstanceId
- The unique identifier for the reservation.
-
getReservedDBInstanceId
public String getReservedDBInstanceId()
The unique identifier for the reservation.
- Returns:
- The unique identifier for the reservation.
-
withReservedDBInstanceId
public ReservedDBInstance withReservedDBInstanceId(String reservedDBInstanceId)
The unique identifier for the reservation.
- Parameters:
reservedDBInstanceId
- The unique identifier for the reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 ReservedDBInstance 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 ReservedDBInstance 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.
-
setStartTime
public void setStartTime(Date startTime)
The time the reservation started.
- Parameters:
startTime
- The time the reservation started.
-
getStartTime
public Date getStartTime()
The time the reservation started.
- Returns:
- The time the reservation started.
-
withStartTime
public ReservedDBInstance withStartTime(Date startTime)
The time the reservation started.
- Parameters:
startTime
- The time the reservation started.- 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 reservation in seconds.
- Parameters:
duration
- The duration of the reservation in seconds.
-
getDuration
public Integer getDuration()
The duration of the reservation in seconds.
- Returns:
- The duration of the reservation in seconds.
-
withDuration
public ReservedDBInstance withDuration(Integer duration)
The duration of the reservation in seconds.
- Parameters:
duration
- The duration of the reservation 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 reserved DB instance.
- Parameters:
fixedPrice
- The fixed price charged for this reserved DB instance.
-
getFixedPrice
public Double getFixedPrice()
The fixed price charged for this reserved DB instance.
- Returns:
- The fixed price charged for this reserved DB instance.
-
withFixedPrice
public ReservedDBInstance withFixedPrice(Double fixedPrice)
The fixed price charged for this reserved DB instance.
- Parameters:
fixedPrice
- The fixed price charged for this reserved DB instance.- 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 reserved DB instance.
- Parameters:
usagePrice
- The hourly price charged for this reserved DB instance.
-
getUsagePrice
public Double getUsagePrice()
The hourly price charged for this reserved DB instance.
- Returns:
- The hourly price charged for this reserved DB instance.
-
withUsagePrice
public ReservedDBInstance withUsagePrice(Double usagePrice)
The hourly price charged for this reserved DB instance.
- Parameters:
usagePrice
- The hourly price charged for this reserved DB instance.- 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.
- Parameters:
currencyCode
- The currency code for the reserved DB instance.
-
getCurrencyCode
public String getCurrencyCode()
The currency code for the reserved DB instance.
- Returns:
- The currency code for the reserved DB instance.
-
withCurrencyCode
public ReservedDBInstance withCurrencyCode(String currencyCode)
The currency code for the reserved DB instance.
- Parameters:
currencyCode
- The currency code for the reserved DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDBInstanceCount
public void setDBInstanceCount(Integer dBInstanceCount)
The number of reserved DB instances.
- Parameters:
dBInstanceCount
- The number of reserved DB instances.
-
getDBInstanceCount
public Integer getDBInstanceCount()
The number of reserved DB instances.
- Returns:
- The number of reserved DB instances.
-
withDBInstanceCount
public ReservedDBInstance withDBInstanceCount(Integer dBInstanceCount)
The number of reserved DB instances.
- Parameters:
dBInstanceCount
- The number of reserved DB instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProductDescription
public void setProductDescription(String productDescription)
The description of the reserved DB instance.
- Parameters:
productDescription
- The description of the reserved DB instance.
-
getProductDescription
public String getProductDescription()
The description of the reserved DB instance.
- Returns:
- The description of the reserved DB instance.
-
withProductDescription
public ReservedDBInstance withProductDescription(String productDescription)
The description of the reserved DB instance.
- Parameters:
productDescription
- The description of the reserved DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setOfferingType
public void setOfferingType(String offeringType)
The offering type of this reserved DB instance.
- Parameters:
offeringType
- The offering type of this reserved DB instance.
-
getOfferingType
public String getOfferingType()
The offering type of this reserved DB instance.
- Returns:
- The offering type of this reserved DB instance.
-
withOfferingType
public ReservedDBInstance withOfferingType(String offeringType)
The offering type of this reserved DB instance.
- Parameters:
offeringType
- The offering type of this reserved DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMultiAZ
public void setMultiAZ(Boolean multiAZ)
Indicates if the reservation applies to Multi-AZ deployments.
- Parameters:
multiAZ
- Indicates if the reservation applies to Multi-AZ deployments.
-
getMultiAZ
public Boolean getMultiAZ()
Indicates if the reservation applies to Multi-AZ deployments.
- Returns:
- Indicates if the reservation applies to Multi-AZ deployments.
-
withMultiAZ
public ReservedDBInstance withMultiAZ(Boolean multiAZ)
Indicates if the reservation applies to Multi-AZ deployments.
- Parameters:
multiAZ
- Indicates if the reservation 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 reservation applies to Multi-AZ deployments.
- Returns:
- Indicates if the reservation applies to Multi-AZ deployments.
-
setState
public void setState(String state)
The state of the reserved DB instance.
- Parameters:
state
- The state of the reserved DB instance.
-
getState
public String getState()
The state of the reserved DB instance.
- Returns:
- The state of the reserved DB instance.
-
withState
public ReservedDBInstance withState(String state)
The state of the reserved DB instance.
- Parameters:
state
- The state of the reserved DB instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 ReservedDBInstance 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 ReservedDBInstance 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 ReservedDBInstance clone()
-
-