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