public class ReservedCacheNode
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the output of a PurchaseReservedCacheNodesOffering action.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
cacheNodeCount
The number of cache nodes that have been reserved.
|
private java.lang.String |
cacheNodeType
The cache node type for the reserved cache nodes.
|
private java.lang.Integer |
duration
The duration of the reservation in seconds.
|
private java.lang.Double |
fixedPrice
The fixed price charged for this reserved cache node.
|
private java.lang.String |
offeringType
The offering type of this reserved cache node.
|
private java.lang.String |
productDescription
The description of the reserved cache node.
|
private SdkInternalList<RecurringCharge> |
recurringCharges
The recurring price charged to run this reserved cache node.
|
private java.lang.String |
reservedCacheNodeId
The unique identifier for the reservation.
|
private java.lang.String |
reservedCacheNodesOfferingId
The offering identifier.
|
private java.util.Date |
startTime
The time the reservation started.
|
private java.lang.String |
state
The state of the reserved cache node.
|
private java.lang.Double |
usagePrice
The hourly price charged for this reserved cache node.
|
Constructor and Description |
---|
ReservedCacheNode() |
Modifier and Type | Method and Description |
---|---|
ReservedCacheNode |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getCacheNodeCount()
The number of cache nodes that have been reserved.
|
java.lang.String |
getCacheNodeType()
The cache node type for the reserved cache nodes.
|
java.lang.Integer |
getDuration()
The duration of the reservation in seconds.
|
java.lang.Double |
getFixedPrice()
The fixed price charged for this reserved cache node.
|
java.lang.String |
getOfferingType()
The offering type of this reserved cache node.
|
java.lang.String |
getProductDescription()
The description of the reserved cache node.
|
java.util.List<RecurringCharge> |
getRecurringCharges()
The recurring price charged to run this reserved cache node.
|
java.lang.String |
getReservedCacheNodeId()
The unique identifier for the reservation.
|
java.lang.String |
getReservedCacheNodesOfferingId()
The offering identifier.
|
java.util.Date |
getStartTime()
The time the reservation started.
|
java.lang.String |
getState()
The state of the reserved cache node.
|
java.lang.Double |
getUsagePrice()
The hourly price charged for this reserved cache node.
|
int |
hashCode() |
void |
setCacheNodeCount(java.lang.Integer cacheNodeCount)
The number of cache nodes that have been reserved.
|
void |
setCacheNodeType(java.lang.String cacheNodeType)
The cache node type for the reserved cache nodes.
|
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 cache node.
|
void |
setOfferingType(java.lang.String offeringType)
The offering type of this reserved cache node.
|
void |
setProductDescription(java.lang.String productDescription)
The description of the reserved cache node.
|
void |
setRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
The recurring price charged to run this reserved cache node.
|
void |
setReservedCacheNodeId(java.lang.String reservedCacheNodeId)
The unique identifier for the reservation.
|
void |
setReservedCacheNodesOfferingId(java.lang.String reservedCacheNodesOfferingId)
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 cache node.
|
void |
setUsagePrice(java.lang.Double usagePrice)
The hourly price charged for this reserved cache node.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReservedCacheNode |
withCacheNodeCount(java.lang.Integer cacheNodeCount)
The number of cache nodes that have been reserved.
|
ReservedCacheNode |
withCacheNodeType(java.lang.String cacheNodeType)
The cache node type for the reserved cache nodes.
|
ReservedCacheNode |
withDuration(java.lang.Integer duration)
The duration of the reservation in seconds.
|
ReservedCacheNode |
withFixedPrice(java.lang.Double fixedPrice)
The fixed price charged for this reserved cache node.
|
ReservedCacheNode |
withOfferingType(java.lang.String offeringType)
The offering type of this reserved cache node.
|
ReservedCacheNode |
withProductDescription(java.lang.String productDescription)
The description of the reserved cache node.
|
ReservedCacheNode |
withRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
The recurring price charged to run this reserved cache node.
|
ReservedCacheNode |
withRecurringCharges(RecurringCharge... recurringCharges)
The recurring price charged to run this reserved cache node.
|
ReservedCacheNode |
withReservedCacheNodeId(java.lang.String reservedCacheNodeId)
The unique identifier for the reservation.
|
ReservedCacheNode |
withReservedCacheNodesOfferingId(java.lang.String reservedCacheNodesOfferingId)
The offering identifier.
|
ReservedCacheNode |
withStartTime(java.util.Date startTime)
The time the reservation started.
|
ReservedCacheNode |
withState(java.lang.String state)
The state of the reserved cache node.
|
ReservedCacheNode |
withUsagePrice(java.lang.Double usagePrice)
The hourly price charged for this reserved cache node.
|
private java.lang.String reservedCacheNodeId
The unique identifier for the reservation.
private java.lang.String reservedCacheNodesOfferingId
The offering identifier.
private java.lang.String cacheNodeType
The cache node type for the reserved cache nodes.
Valid node types are as follows:
cache.t2.micro
,
cache.t2.small
, cache.t2.medium
,
cache.m3.medium
, cache.m3.large
,
cache.m3.xlarge
, cache.m3.2xlarge
cache.t1.micro
,
cache.m1.small
, cache.m1.medium
,
cache.m1.large
, cache.m1.xlarge
cache.c1.xlarge
cache.r3.large
,
cache.r3.xlarge
, cache.r3.2xlarge
,
cache.r3.4xlarge
, cache.r3.8xlarge
cache.m2.xlarge
,
cache.m2.2xlarge
, cache.m2.4xlarge
Notes:
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
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 cache node.
private java.lang.Double usagePrice
The hourly price charged for this reserved cache node.
private java.lang.Integer cacheNodeCount
The number of cache nodes that have been reserved.
private java.lang.String productDescription
The description of the reserved cache node.
private java.lang.String offeringType
The offering type of this reserved cache node.
private java.lang.String state
The state of the reserved cache node.
private SdkInternalList<RecurringCharge> recurringCharges
The recurring price charged to run this reserved cache node.
public void setReservedCacheNodeId(java.lang.String reservedCacheNodeId)
The unique identifier for the reservation.
reservedCacheNodeId
- The unique identifier for the reservation.public java.lang.String getReservedCacheNodeId()
The unique identifier for the reservation.
public ReservedCacheNode withReservedCacheNodeId(java.lang.String reservedCacheNodeId)
The unique identifier for the reservation.
reservedCacheNodeId
- The unique identifier for the reservation.public void setReservedCacheNodesOfferingId(java.lang.String reservedCacheNodesOfferingId)
The offering identifier.
reservedCacheNodesOfferingId
- The offering identifier.public java.lang.String getReservedCacheNodesOfferingId()
The offering identifier.
public ReservedCacheNode withReservedCacheNodesOfferingId(java.lang.String reservedCacheNodesOfferingId)
The offering identifier.
reservedCacheNodesOfferingId
- The offering identifier.public void setCacheNodeType(java.lang.String cacheNodeType)
The cache node type for the reserved cache nodes.
Valid node types are as follows:
cache.t2.micro
,
cache.t2.small
, cache.t2.medium
,
cache.m3.medium
, cache.m3.large
,
cache.m3.xlarge
, cache.m3.2xlarge
cache.t1.micro
,
cache.m1.small
, cache.m1.medium
,
cache.m1.large
, cache.m1.xlarge
cache.c1.xlarge
cache.r3.large
,
cache.r3.xlarge
, cache.r3.2xlarge
,
cache.r3.4xlarge
, cache.r3.8xlarge
cache.m2.xlarge
,
cache.m2.2xlarge
, cache.m2.4xlarge
Notes:
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
cacheNodeType
- The cache node type for the reserved cache nodes.
Valid node types are as follows:
cache.t2.micro
,
cache.t2.small
, cache.t2.medium
,
cache.m3.medium
, cache.m3.large
,
cache.m3.xlarge
, cache.m3.2xlarge
cache.t1.micro
,
cache.m1.small
, cache.m1.medium
,
cache.m1.large
, cache.m1.xlarge
cache.c1.xlarge
cache.r3.large
,
cache.r3.xlarge
, cache.r3.2xlarge
,
cache.r3.4xlarge
, cache.r3.8xlarge
cache.m2.xlarge
,
cache.m2.2xlarge
, cache.m2.4xlarge
Notes:
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
public java.lang.String getCacheNodeType()
The cache node type for the reserved cache nodes.
Valid node types are as follows:
cache.t2.micro
,
cache.t2.small
, cache.t2.medium
,
cache.m3.medium
, cache.m3.large
,
cache.m3.xlarge
, cache.m3.2xlarge
cache.t1.micro
,
cache.m1.small
, cache.m1.medium
,
cache.m1.large
, cache.m1.xlarge
cache.c1.xlarge
cache.r3.large
,
cache.r3.xlarge
, cache.r3.2xlarge
,
cache.r3.4xlarge
, cache.r3.8xlarge
cache.m2.xlarge
,
cache.m2.2xlarge
, cache.m2.4xlarge
Notes:
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
Valid node types are as follows:
cache.t2.micro
,
cache.t2.small
, cache.t2.medium
,
cache.m3.medium
, cache.m3.large
,
cache.m3.xlarge
, cache.m3.2xlarge
cache.t1.micro
,
cache.m1.small
, cache.m1.medium
,
cache.m1.large
, cache.m1.xlarge
cache.c1.xlarge
cache.r3.large
,
cache.r3.xlarge
, cache.r3.2xlarge
,
cache.r3.4xlarge
, cache.r3.8xlarge
cache.m2.xlarge
,
cache.m2.2xlarge
, cache.m2.4xlarge
Notes:
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
public ReservedCacheNode withCacheNodeType(java.lang.String cacheNodeType)
The cache node type for the reserved cache nodes.
Valid node types are as follows:
cache.t2.micro
,
cache.t2.small
, cache.t2.medium
,
cache.m3.medium
, cache.m3.large
,
cache.m3.xlarge
, cache.m3.2xlarge
cache.t1.micro
,
cache.m1.small
, cache.m1.medium
,
cache.m1.large
, cache.m1.xlarge
cache.c1.xlarge
cache.r3.large
,
cache.r3.xlarge
, cache.r3.2xlarge
,
cache.r3.4xlarge
, cache.r3.8xlarge
cache.m2.xlarge
,
cache.m2.2xlarge
, cache.m2.4xlarge
Notes:
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
cacheNodeType
- The cache node type for the reserved cache nodes.
Valid node types are as follows:
cache.t2.micro
,
cache.t2.small
, cache.t2.medium
,
cache.m3.medium
, cache.m3.large
,
cache.m3.xlarge
, cache.m3.2xlarge
cache.t1.micro
,
cache.m1.small
, cache.m1.medium
,
cache.m1.large
, cache.m1.xlarge
cache.c1.xlarge
cache.r3.large
,
cache.r3.xlarge
, cache.r3.2xlarge
,
cache.r3.4xlarge
, cache.r3.8xlarge
cache.m2.xlarge
,
cache.m2.2xlarge
, cache.m2.4xlarge
Notes:
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
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 ReservedCacheNode 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 ReservedCacheNode 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 cache node.
fixedPrice
- The fixed price charged for this reserved cache node.public java.lang.Double getFixedPrice()
The fixed price charged for this reserved cache node.
public ReservedCacheNode withFixedPrice(java.lang.Double fixedPrice)
The fixed price charged for this reserved cache node.
fixedPrice
- The fixed price charged for this reserved cache node.public void setUsagePrice(java.lang.Double usagePrice)
The hourly price charged for this reserved cache node.
usagePrice
- The hourly price charged for this reserved cache node.public java.lang.Double getUsagePrice()
The hourly price charged for this reserved cache node.
public ReservedCacheNode withUsagePrice(java.lang.Double usagePrice)
The hourly price charged for this reserved cache node.
usagePrice
- The hourly price charged for this reserved cache node.public void setCacheNodeCount(java.lang.Integer cacheNodeCount)
The number of cache nodes that have been reserved.
cacheNodeCount
- The number of cache nodes that have been reserved.public java.lang.Integer getCacheNodeCount()
The number of cache nodes that have been reserved.
public ReservedCacheNode withCacheNodeCount(java.lang.Integer cacheNodeCount)
The number of cache nodes that have been reserved.
cacheNodeCount
- The number of cache nodes that have been reserved.public void setProductDescription(java.lang.String productDescription)
The description of the reserved cache node.
productDescription
- The description of the reserved cache node.public java.lang.String getProductDescription()
The description of the reserved cache node.
public ReservedCacheNode withProductDescription(java.lang.String productDescription)
The description of the reserved cache node.
productDescription
- The description of the reserved cache node.public void setOfferingType(java.lang.String offeringType)
The offering type of this reserved cache node.
offeringType
- The offering type of this reserved cache node.public java.lang.String getOfferingType()
The offering type of this reserved cache node.
public ReservedCacheNode withOfferingType(java.lang.String offeringType)
The offering type of this reserved cache node.
offeringType
- The offering type of this reserved cache node.public void setState(java.lang.String state)
The state of the reserved cache node.
state
- The state of the reserved cache node.public java.lang.String getState()
The state of the reserved cache node.
public ReservedCacheNode withState(java.lang.String state)
The state of the reserved cache node.
state
- The state of the reserved cache node.public java.util.List<RecurringCharge> getRecurringCharges()
The recurring price charged to run this reserved cache node.
public void setRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
The recurring price charged to run this reserved cache node.
recurringCharges
- The recurring price charged to run this reserved cache node.public ReservedCacheNode withRecurringCharges(RecurringCharge... recurringCharges)
The recurring price charged to run this reserved cache node.
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 cache node.public ReservedCacheNode withRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
The recurring price charged to run this reserved cache node.
recurringCharges
- The recurring price charged to run this reserved cache node.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 ReservedCacheNode clone()
clone
in class java.lang.Object