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