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 ReservedDBInstanceclone()booleanequals(Object obj)StringgetCurrencyCode()The currency code for the reserved DB instance.StringgetDBInstanceClass()The DB instance class for the reserved DB instance.IntegergetDBInstanceCount()The number of reserved DB instances.IntegergetDuration()The duration of the reservation in seconds.DoublegetFixedPrice()The fixed price charged for this reserved DB instance.BooleangetMultiAZ()Indicates if the reservation applies to Multi-AZ deployments.StringgetOfferingType()The offering type of this reserved DB instance.StringgetProductDescription()The description of the reserved DB instance.List<RecurringCharge>getRecurringCharges()The recurring price charged to run this reserved DB instance.StringgetReservedDBInstanceId()The unique identifier for the reservation.StringgetReservedDBInstancesOfferingId()The offering identifier.DategetStartTime()The time the reservation started.StringgetState()The state of the reserved DB instance.DoublegetUsagePrice()The hourly price charged for this reserved DB instance.inthashCode()BooleanisMultiAZ()Indicates if the reservation applies to Multi-AZ deployments.voidsetCurrencyCode(String currencyCode)The currency code for the reserved DB instance.voidsetDBInstanceClass(String dBInstanceClass)The DB instance class for the reserved DB instance.voidsetDBInstanceCount(Integer dBInstanceCount)The number of reserved DB instances.voidsetDuration(Integer duration)The duration of the reservation in seconds.voidsetFixedPrice(Double fixedPrice)The fixed price charged for this reserved DB instance.voidsetMultiAZ(Boolean multiAZ)Indicates if the reservation applies to Multi-AZ deployments.voidsetOfferingType(String offeringType)The offering type of this reserved DB instance.voidsetProductDescription(String productDescription)The description of the reserved DB instance.voidsetRecurringCharges(Collection<RecurringCharge> recurringCharges)The recurring price charged to run this reserved DB instance.voidsetReservedDBInstanceId(String reservedDBInstanceId)The unique identifier for the reservation.voidsetReservedDBInstancesOfferingId(String reservedDBInstancesOfferingId)The offering identifier.voidsetStartTime(Date startTime)The time the reservation started.voidsetState(String state)The state of the reserved DB instance.voidsetUsagePrice(Double usagePrice)The hourly price charged for this reserved DB instance.StringtoString()Returns a string representation of this object; useful for testing and debugging.ReservedDBInstancewithCurrencyCode(String currencyCode)The currency code for the reserved DB instance.ReservedDBInstancewithDBInstanceClass(String dBInstanceClass)The DB instance class for the reserved DB instance.ReservedDBInstancewithDBInstanceCount(Integer dBInstanceCount)The number of reserved DB instances.ReservedDBInstancewithDuration(Integer duration)The duration of the reservation in seconds.ReservedDBInstancewithFixedPrice(Double fixedPrice)The fixed price charged for this reserved DB instance.ReservedDBInstancewithMultiAZ(Boolean multiAZ)Indicates if the reservation applies to Multi-AZ deployments.ReservedDBInstancewithOfferingType(String offeringType)The offering type of this reserved DB instance.ReservedDBInstancewithProductDescription(String productDescription)The description of the reserved DB instance.ReservedDBInstancewithRecurringCharges(RecurringCharge... recurringCharges)The recurring price charged to run this reserved DB instance.ReservedDBInstancewithRecurringCharges(Collection<RecurringCharge> recurringCharges)The recurring price charged to run this reserved DB instance.ReservedDBInstancewithReservedDBInstanceId(String reservedDBInstanceId)The unique identifier for the reservation.ReservedDBInstancewithReservedDBInstancesOfferingId(String reservedDBInstancesOfferingId)The offering identifier.ReservedDBInstancewithStartTime(Date startTime)The time the reservation started.ReservedDBInstancewithState(String state)The state of the reserved DB instance.ReservedDBInstancewithUsagePrice(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ReservedDBInstance clone()
-
-