public class ReservedDBInstance
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
This data type is used as a response element in the DescribeReservedDBInstances and PurchaseReservedDBInstancesOffering actions.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
currencyCode
The currency code for the reserved DB instance.
|
private java.lang.String |
dBInstanceClass
The DB instance class for the reserved DB instance.
|
private java.lang.Integer |
dBInstanceCount
The number of reserved DB instances.
|
private java.lang.Integer |
duration
The duration of the reservation in seconds.
|
private java.lang.Double |
fixedPrice
The fixed price charged for this reserved DB instance.
|
private java.lang.Boolean |
multiAZ
Indicates if the reservation applies to Multi-AZ deployments.
|
private java.lang.String |
offeringType
The offering type of this reserved DB instance.
|
private java.lang.String |
productDescription
The description of the reserved DB instance.
|
private SdkInternalList<RecurringCharge> |
recurringCharges
The recurring price charged to run this reserved DB instance.
|
private java.lang.String |
reservedDBInstanceId
The unique identifier for the reservation.
|
private java.lang.String |
reservedDBInstancesOfferingId
The offering identifier.
|
private java.util.Date |
startTime
The time the reservation started.
|
private java.lang.String |
state
The state of the reserved DB instance.
|
private java.lang.Double |
usagePrice
The hourly price charged for this reserved DB instance.
|
Constructor and Description |
---|
ReservedDBInstance() |
Modifier and Type | Method and Description |
---|---|
ReservedDBInstance |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCurrencyCode()
The currency code for the reserved DB instance.
|
java.lang.String |
getDBInstanceClass()
The DB instance class for the reserved DB instance.
|
java.lang.Integer |
getDBInstanceCount()
The number of reserved DB instances.
|
java.lang.Integer |
getDuration()
The duration of the reservation in seconds.
|
java.lang.Double |
getFixedPrice()
The fixed price charged for this reserved DB instance.
|
java.lang.Boolean |
getMultiAZ()
Indicates if the reservation applies to Multi-AZ deployments.
|
java.lang.String |
getOfferingType()
The offering type of this reserved DB instance.
|
java.lang.String |
getProductDescription()
The description of the reserved DB instance.
|
java.util.List<RecurringCharge> |
getRecurringCharges()
The recurring price charged to run this reserved DB instance.
|
java.lang.String |
getReservedDBInstanceId()
The unique identifier for the reservation.
|
java.lang.String |
getReservedDBInstancesOfferingId()
The offering identifier.
|
java.util.Date |
getStartTime()
The time the reservation started.
|
java.lang.String |
getState()
The state of the reserved DB instance.
|
java.lang.Double |
getUsagePrice()
The hourly price charged for this reserved DB instance.
|
int |
hashCode() |
java.lang.Boolean |
isMultiAZ()
Indicates if the reservation applies to Multi-AZ deployments.
|
void |
setCurrencyCode(java.lang.String currencyCode)
The currency code for the reserved DB instance.
|
void |
setDBInstanceClass(java.lang.String dBInstanceClass)
The DB instance class for the reserved DB instance.
|
void |
setDBInstanceCount(java.lang.Integer dBInstanceCount)
The number of reserved DB instances.
|
void |
setDuration(java.lang.Integer duration)
The duration of the reservation in seconds.
|
void |
setFixedPrice(java.lang.Double fixedPrice)
The fixed price charged for this reserved DB instance.
|
void |
setMultiAZ(java.lang.Boolean multiAZ)
Indicates if the reservation applies to Multi-AZ deployments.
|
void |
setOfferingType(java.lang.String offeringType)
The offering type of this reserved DB instance.
|
void |
setProductDescription(java.lang.String productDescription)
The description of the reserved DB instance.
|
void |
setRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
The recurring price charged to run this reserved DB instance.
|
void |
setReservedDBInstanceId(java.lang.String reservedDBInstanceId)
The unique identifier for the reservation.
|
void |
setReservedDBInstancesOfferingId(java.lang.String reservedDBInstancesOfferingId)
The offering identifier.
|
void |
setStartTime(java.util.Date startTime)
The time the reservation started.
|
void |
setState(java.lang.String state)
The state of the reserved DB instance.
|
void |
setUsagePrice(java.lang.Double usagePrice)
The hourly price charged for this reserved DB instance.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReservedDBInstance |
withCurrencyCode(java.lang.String currencyCode)
The currency code for the reserved DB instance.
|
ReservedDBInstance |
withDBInstanceClass(java.lang.String dBInstanceClass)
The DB instance class for the reserved DB instance.
|
ReservedDBInstance |
withDBInstanceCount(java.lang.Integer dBInstanceCount)
The number of reserved DB instances.
|
ReservedDBInstance |
withDuration(java.lang.Integer duration)
The duration of the reservation in seconds.
|
ReservedDBInstance |
withFixedPrice(java.lang.Double fixedPrice)
The fixed price charged for this reserved DB instance.
|
ReservedDBInstance |
withMultiAZ(java.lang.Boolean multiAZ)
Indicates if the reservation applies to Multi-AZ deployments.
|
ReservedDBInstance |
withOfferingType(java.lang.String offeringType)
The offering type of this reserved DB instance.
|
ReservedDBInstance |
withProductDescription(java.lang.String productDescription)
The description of the reserved DB instance.
|
ReservedDBInstance |
withRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
The recurring price charged to run this reserved DB instance.
|
ReservedDBInstance |
withRecurringCharges(RecurringCharge... recurringCharges)
The recurring price charged to run this reserved DB instance.
|
ReservedDBInstance |
withReservedDBInstanceId(java.lang.String reservedDBInstanceId)
The unique identifier for the reservation.
|
ReservedDBInstance |
withReservedDBInstancesOfferingId(java.lang.String reservedDBInstancesOfferingId)
The offering identifier.
|
ReservedDBInstance |
withStartTime(java.util.Date startTime)
The time the reservation started.
|
ReservedDBInstance |
withState(java.lang.String state)
The state of the reserved DB instance.
|
ReservedDBInstance |
withUsagePrice(java.lang.Double usagePrice)
The hourly price charged for this reserved DB instance.
|
private java.lang.String reservedDBInstanceId
The unique identifier for the reservation.
private java.lang.String reservedDBInstancesOfferingId
The offering identifier.
private java.lang.String dBInstanceClass
The DB instance class for the reserved DB instance.
private java.util.Date startTime
The time the reservation started.
private java.lang.Integer duration
The duration of the reservation in seconds.
private java.lang.Double fixedPrice
The fixed price charged for this reserved DB instance.
private java.lang.Double usagePrice
The hourly price charged for this reserved DB instance.
private java.lang.String currencyCode
The currency code for the reserved DB instance.
private java.lang.Integer dBInstanceCount
The number of reserved DB instances.
private java.lang.String productDescription
The description of the reserved DB instance.
private java.lang.String offeringType
The offering type of this reserved DB instance.
private java.lang.Boolean multiAZ
Indicates if the reservation applies to Multi-AZ deployments.
private java.lang.String state
The state of the reserved DB instance.
private SdkInternalList<RecurringCharge> recurringCharges
The recurring price charged to run this reserved DB instance.
public void setReservedDBInstanceId(java.lang.String reservedDBInstanceId)
The unique identifier for the reservation.
reservedDBInstanceId
- The unique identifier for the reservation.public java.lang.String getReservedDBInstanceId()
The unique identifier for the reservation.
public ReservedDBInstance withReservedDBInstanceId(java.lang.String reservedDBInstanceId)
The unique identifier for the reservation.
reservedDBInstanceId
- The unique identifier for the reservation.public void setReservedDBInstancesOfferingId(java.lang.String reservedDBInstancesOfferingId)
The offering identifier.
reservedDBInstancesOfferingId
- The offering identifier.public java.lang.String getReservedDBInstancesOfferingId()
The offering identifier.
public ReservedDBInstance withReservedDBInstancesOfferingId(java.lang.String reservedDBInstancesOfferingId)
The offering identifier.
reservedDBInstancesOfferingId
- The offering identifier.public void setDBInstanceClass(java.lang.String dBInstanceClass)
The DB instance class for the reserved DB instance.
dBInstanceClass
- The DB instance class for the reserved DB instance.public java.lang.String getDBInstanceClass()
The DB instance class for the reserved DB instance.
public ReservedDBInstance withDBInstanceClass(java.lang.String dBInstanceClass)
The DB instance class for the reserved DB instance.
dBInstanceClass
- The DB instance class for the reserved DB instance.public void setStartTime(java.util.Date startTime)
The time the reservation started.
startTime
- The time the reservation started.public java.util.Date getStartTime()
The time the reservation started.
public ReservedDBInstance withStartTime(java.util.Date startTime)
The time the reservation started.
startTime
- The time the reservation started.public void setDuration(java.lang.Integer duration)
The duration of the reservation in seconds.
duration
- The duration of the reservation in seconds.public java.lang.Integer getDuration()
The duration of the reservation in seconds.
public ReservedDBInstance withDuration(java.lang.Integer duration)
The duration of the reservation in seconds.
duration
- The duration of the reservation in seconds.public void setFixedPrice(java.lang.Double fixedPrice)
The fixed price charged for this reserved DB instance.
fixedPrice
- The fixed price charged for this reserved DB instance.public java.lang.Double getFixedPrice()
The fixed price charged for this reserved DB instance.
public ReservedDBInstance withFixedPrice(java.lang.Double fixedPrice)
The fixed price charged for this reserved DB instance.
fixedPrice
- The fixed price charged for this reserved DB instance.public void setUsagePrice(java.lang.Double usagePrice)
The hourly price charged for this reserved DB instance.
usagePrice
- The hourly price charged for this reserved DB instance.public java.lang.Double getUsagePrice()
The hourly price charged for this reserved DB instance.
public ReservedDBInstance withUsagePrice(java.lang.Double usagePrice)
The hourly price charged for this reserved DB instance.
usagePrice
- The hourly price charged for this reserved DB instance.public void setCurrencyCode(java.lang.String currencyCode)
The currency code for the reserved DB instance.
currencyCode
- The currency code for the reserved DB instance.public java.lang.String getCurrencyCode()
The currency code for the reserved DB instance.
public ReservedDBInstance withCurrencyCode(java.lang.String currencyCode)
The currency code for the reserved DB instance.
currencyCode
- The currency code for the reserved DB instance.public void setDBInstanceCount(java.lang.Integer dBInstanceCount)
The number of reserved DB instances.
dBInstanceCount
- The number of reserved DB instances.public java.lang.Integer getDBInstanceCount()
The number of reserved DB instances.
public ReservedDBInstance withDBInstanceCount(java.lang.Integer dBInstanceCount)
The number of reserved DB instances.
dBInstanceCount
- The number of reserved DB instances.public void setProductDescription(java.lang.String productDescription)
The description of the reserved DB instance.
productDescription
- The description of the reserved DB instance.public java.lang.String getProductDescription()
The description of the reserved DB instance.
public ReservedDBInstance withProductDescription(java.lang.String productDescription)
The description of the reserved DB instance.
productDescription
- The description of the reserved DB instance.public void setOfferingType(java.lang.String offeringType)
The offering type of this reserved DB instance.
offeringType
- The offering type of this reserved DB instance.public java.lang.String getOfferingType()
The offering type of this reserved DB instance.
public ReservedDBInstance withOfferingType(java.lang.String offeringType)
The offering type of this reserved DB instance.
offeringType
- The offering type of this reserved DB instance.public void setMultiAZ(java.lang.Boolean multiAZ)
Indicates if the reservation applies to Multi-AZ deployments.
multiAZ
- Indicates if the reservation applies to Multi-AZ deployments.public java.lang.Boolean getMultiAZ()
Indicates if the reservation applies to Multi-AZ deployments.
public ReservedDBInstance withMultiAZ(java.lang.Boolean multiAZ)
Indicates if the reservation applies to Multi-AZ deployments.
multiAZ
- Indicates if the reservation applies to Multi-AZ deployments.public java.lang.Boolean isMultiAZ()
Indicates if the reservation applies to Multi-AZ deployments.
public void setState(java.lang.String state)
The state of the reserved DB instance.
state
- The state of the reserved DB instance.public java.lang.String getState()
The state of the reserved DB instance.
public ReservedDBInstance withState(java.lang.String state)
The state of the reserved DB instance.
state
- The state of the reserved DB instance.public java.util.List<RecurringCharge> getRecurringCharges()
The recurring price charged to run this reserved DB instance.
public void setRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
The recurring price charged to run this reserved DB instance.
recurringCharges
- The recurring price charged to run this reserved DB instance.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)
or
withRecurringCharges(java.util.Collection)
if you want to
override the existing values.
recurringCharges
- The recurring price charged to run this reserved DB instance.public ReservedDBInstance withRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
The recurring price charged to run this reserved DB instance.
recurringCharges
- The recurring price charged to run this reserved DB instance.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ReservedDBInstance clone()
clone
in class java.lang.Object