@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 |
getReservedDBInstanceArn()
The Amazon Resource Name (ARN) for the 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 |
setReservedDBInstanceArn(String reservedDBInstanceArn)
The Amazon Resource Name (ARN) for the 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 |
withReservedDBInstanceArn(String reservedDBInstanceArn)
The Amazon Resource Name (ARN) for the 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 void setReservedDBInstanceId(String reservedDBInstanceId)
The unique identifier for the reservation.
reservedDBInstanceId
- The unique identifier for the reservation.public String getReservedDBInstanceId()
The unique identifier for the reservation.
public ReservedDBInstance withReservedDBInstanceId(String reservedDBInstanceId)
The unique identifier for the reservation.
reservedDBInstanceId
- The unique identifier for the reservation.public void setReservedDBInstancesOfferingId(String reservedDBInstancesOfferingId)
The offering identifier.
reservedDBInstancesOfferingId
- The offering identifier.public String getReservedDBInstancesOfferingId()
The offering identifier.
public ReservedDBInstance withReservedDBInstancesOfferingId(String reservedDBInstancesOfferingId)
The offering identifier.
reservedDBInstancesOfferingId
- The offering identifier.public void setDBInstanceClass(String dBInstanceClass)
The DB instance class for the reserved DB instance.
dBInstanceClass
- The DB instance class for the reserved DB instance.public String getDBInstanceClass()
The DB instance class for the reserved DB instance.
public ReservedDBInstance withDBInstanceClass(String dBInstanceClass)
The DB instance class for the reserved DB instance.
dBInstanceClass
- The DB instance class for the reserved DB instance.public void setStartTime(Date startTime)
The time the reservation started.
startTime
- The time the reservation started.public Date getStartTime()
The time the reservation started.
public ReservedDBInstance withStartTime(Date startTime)
The time the reservation started.
startTime
- The time the reservation started.public void setDuration(Integer duration)
The duration of the reservation in seconds.
duration
- The duration of the reservation in seconds.public Integer getDuration()
The duration of the reservation in seconds.
public ReservedDBInstance withDuration(Integer duration)
The duration of the reservation in seconds.
duration
- The duration of the reservation in seconds.public void setFixedPrice(Double fixedPrice)
The fixed price charged for this reserved DB instance.
fixedPrice
- The fixed price charged for this reserved DB instance.public Double getFixedPrice()
The fixed price charged for this reserved DB instance.
public ReservedDBInstance withFixedPrice(Double fixedPrice)
The fixed price charged for this reserved DB instance.
fixedPrice
- The fixed price charged for this reserved DB instance.public void setUsagePrice(Double usagePrice)
The hourly price charged for this reserved DB instance.
usagePrice
- The hourly price charged for this reserved DB instance.public Double getUsagePrice()
The hourly price charged for this reserved DB instance.
public ReservedDBInstance withUsagePrice(Double usagePrice)
The hourly price charged for this reserved DB instance.
usagePrice
- The hourly price charged for this reserved DB instance.public void setCurrencyCode(String currencyCode)
The currency code for the reserved DB instance.
currencyCode
- The currency code for the reserved DB instance.public String getCurrencyCode()
The currency code for the reserved DB instance.
public ReservedDBInstance withCurrencyCode(String currencyCode)
The currency code for the reserved DB instance.
currencyCode
- The currency code for the reserved DB instance.public void setDBInstanceCount(Integer dBInstanceCount)
The number of reserved DB instances.
dBInstanceCount
- The number of reserved DB instances.public Integer getDBInstanceCount()
The number of reserved DB instances.
public ReservedDBInstance withDBInstanceCount(Integer dBInstanceCount)
The number of reserved DB instances.
dBInstanceCount
- The number of reserved DB instances.public void setProductDescription(String productDescription)
The description of the reserved DB instance.
productDescription
- The description of the reserved DB instance.public String getProductDescription()
The description of the reserved DB instance.
public ReservedDBInstance withProductDescription(String productDescription)
The description of the reserved DB instance.
productDescription
- The description of the reserved DB instance.public void setOfferingType(String offeringType)
The offering type of this reserved DB instance.
offeringType
- The offering type of this reserved DB instance.public String getOfferingType()
The offering type of this reserved DB instance.
public ReservedDBInstance withOfferingType(String offeringType)
The offering type of this reserved DB instance.
offeringType
- The offering type of this reserved DB instance.public void setMultiAZ(Boolean multiAZ)
Indicates if the reservation applies to Multi-AZ deployments.
multiAZ
- Indicates if the reservation applies to Multi-AZ deployments.public Boolean getMultiAZ()
Indicates if the reservation applies to Multi-AZ deployments.
public ReservedDBInstance withMultiAZ(Boolean multiAZ)
Indicates if the reservation applies to Multi-AZ deployments.
multiAZ
- Indicates if the reservation applies to Multi-AZ deployments.public Boolean isMultiAZ()
Indicates if the reservation applies to Multi-AZ deployments.
public void setState(String state)
The state of the reserved DB instance.
state
- The state of the reserved DB instance.public String getState()
The state of the reserved DB instance.
public ReservedDBInstance withState(String state)
The state of the reserved DB instance.
state
- The state of the reserved DB instance.public List<RecurringCharge> getRecurringCharges()
The recurring price charged to run this reserved DB instance.
public void setRecurringCharges(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(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 void setReservedDBInstanceArn(String reservedDBInstanceArn)
The Amazon Resource Name (ARN) for the reserved DB instance.
reservedDBInstanceArn
- The Amazon Resource Name (ARN) for the reserved DB instance.public String getReservedDBInstanceArn()
The Amazon Resource Name (ARN) for the reserved DB instance.
public ReservedDBInstance withReservedDBInstanceArn(String reservedDBInstanceArn)
The Amazon Resource Name (ARN) for the reserved DB instance.
reservedDBInstanceArn
- The Amazon Resource Name (ARN) for the reserved DB instance.public String toString()
toString
in class Object
Object.toString()
public ReservedDBInstance clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.