public class ReservedCacheNode extends Object implements Serializable, Cloneable
Represents the output of a PurchaseReservedCacheNodesOffering action.
Constructor and Description |
---|
ReservedCacheNode() |
Modifier and Type | Method and Description |
---|---|
ReservedCacheNode |
clone() |
boolean |
equals(Object obj) |
Integer |
getCacheNodeCount()
The number of cache nodes that have been reserved.
|
String |
getCacheNodeType()
The cache node type for the reserved cache nodes.
|
Integer |
getDuration()
The duration of the reservation in seconds.
|
Double |
getFixedPrice()
The fixed price charged for this reserved cache node.
|
String |
getOfferingType()
The offering type of this reserved cache node.
|
String |
getProductDescription()
The description of the reserved cache node.
|
List<RecurringCharge> |
getRecurringCharges()
The recurring price charged to run this reserved cache node.
|
String |
getReservedCacheNodeId()
The unique identifier for the reservation.
|
String |
getReservedCacheNodesOfferingId()
The offering identifier.
|
Date |
getStartTime()
The time the reservation started.
|
String |
getState()
The state of the reserved cache node.
|
Double |
getUsagePrice()
The hourly price charged for this reserved cache node.
|
int |
hashCode() |
void |
setCacheNodeCount(Integer cacheNodeCount)
The number of cache nodes that have been reserved.
|
void |
setCacheNodeType(String cacheNodeType)
The cache node type for the reserved cache nodes.
|
void |
setDuration(Integer duration)
The duration of the reservation in seconds.
|
void |
setFixedPrice(Double fixedPrice)
The fixed price charged for this reserved cache node.
|
void |
setOfferingType(String offeringType)
The offering type of this reserved cache node.
|
void |
setProductDescription(String productDescription)
The description of the reserved cache node.
|
void |
setRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring price charged to run this reserved cache node.
|
void |
setReservedCacheNodeId(String reservedCacheNodeId)
The unique identifier for the reservation.
|
void |
setReservedCacheNodesOfferingId(String reservedCacheNodesOfferingId)
The offering identifier.
|
void |
setStartTime(Date startTime)
The time the reservation started.
|
void |
setState(String state)
The state of the reserved cache node.
|
void |
setUsagePrice(Double usagePrice)
The hourly price charged for this reserved cache node.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReservedCacheNode |
withCacheNodeCount(Integer cacheNodeCount)
The number of cache nodes that have been reserved.
|
ReservedCacheNode |
withCacheNodeType(String cacheNodeType)
The cache node type for the reserved cache nodes.
|
ReservedCacheNode |
withDuration(Integer duration)
The duration of the reservation in seconds.
|
ReservedCacheNode |
withFixedPrice(Double fixedPrice)
The fixed price charged for this reserved cache node.
|
ReservedCacheNode |
withOfferingType(String offeringType)
The offering type of this reserved cache node.
|
ReservedCacheNode |
withProductDescription(String productDescription)
The description of the reserved cache node.
|
ReservedCacheNode |
withRecurringCharges(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(String reservedCacheNodeId)
The unique identifier for the reservation.
|
ReservedCacheNode |
withReservedCacheNodesOfferingId(String reservedCacheNodesOfferingId)
The offering identifier.
|
ReservedCacheNode |
withStartTime(Date startTime)
The time the reservation started.
|
ReservedCacheNode |
withState(String state)
The state of the reserved cache node.
|
ReservedCacheNode |
withUsagePrice(Double usagePrice)
The hourly price charged for this reserved cache node.
|
public String getReservedCacheNodeId()
public void setReservedCacheNodeId(String reservedCacheNodeId)
reservedCacheNodeId
- The unique identifier for the reservation.public ReservedCacheNode withReservedCacheNodeId(String reservedCacheNodeId)
Returns a reference to this object so that method calls can be chained together.
reservedCacheNodeId
- The unique identifier for the reservation.public String getReservedCacheNodesOfferingId()
public void setReservedCacheNodesOfferingId(String reservedCacheNodesOfferingId)
reservedCacheNodesOfferingId
- The offering identifier.public ReservedCacheNode withReservedCacheNodesOfferingId(String reservedCacheNodesOfferingId)
Returns a reference to this object so that method calls can be chained together.
reservedCacheNodesOfferingId
- The offering identifier.public String getCacheNodeType()
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 void setCacheNodeType(String cacheNodeType)
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 ReservedCacheNode withCacheNodeType(String cacheNodeType)
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.
Returns a reference to this object so that method calls can be chained together.
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 Date getStartTime()
public void setStartTime(Date startTime)
startTime
- The time the reservation started.public ReservedCacheNode 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 ReservedCacheNode 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 cache node.public ReservedCacheNode 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 cache node.public Double getUsagePrice()
public void setUsagePrice(Double usagePrice)
usagePrice
- The hourly price charged for this reserved cache node.public ReservedCacheNode 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 cache node.public Integer getCacheNodeCount()
public void setCacheNodeCount(Integer cacheNodeCount)
cacheNodeCount
- The number of cache nodes that have been reserved.public ReservedCacheNode withCacheNodeCount(Integer cacheNodeCount)
Returns a reference to this object so that method calls can be chained together.
cacheNodeCount
- The number of cache nodes that have been reserved.public String getProductDescription()
public void setProductDescription(String productDescription)
productDescription
- The description of the reserved cache node.public ReservedCacheNode withProductDescription(String productDescription)
Returns a reference to this object so that method calls can be chained together.
productDescription
- The description of the reserved cache node.public String getOfferingType()
public void setOfferingType(String offeringType)
offeringType
- The offering type of this reserved cache node.public ReservedCacheNode withOfferingType(String offeringType)
Returns a reference to this object so that method calls can be chained together.
offeringType
- The offering type of this reserved cache node.public String getState()
public void setState(String state)
state
- The state of the reserved cache node.public ReservedCacheNode withState(String state)
Returns a reference to this object so that method calls can be chained together.
state
- The state of the reserved cache node.public List<RecurringCharge> getRecurringCharges()
public void setRecurringCharges(Collection<RecurringCharge> recurringCharges)
recurringCharges
- The recurring price charged to run this reserved cache node.public ReservedCacheNode 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 cache node.public ReservedCacheNode 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 cache node.public String toString()
toString
in class Object
Object.toString()
public ReservedCacheNode clone()
Copyright © 2016. All rights reserved.