Class ReservedCacheNode
- java.lang.Object
-
- com.amazonaws.services.elasticache.model.ReservedCacheNode
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ReservedCacheNode extends Object implements Serializable, Cloneable
Represents the output of a PurchaseReservedCacheNodesOffering action.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReservedCacheNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(RecurringCharge... recurringCharges)
The recurring price charged to run this reserved cache node.ReservedCacheNode
withRecurringCharges(Collection<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.
-
-
-
Method Detail
-
setReservedCacheNodeId
public void setReservedCacheNodeId(String reservedCacheNodeId)
The unique identifier for the reservation.
- Parameters:
reservedCacheNodeId
- The unique identifier for the reservation.
-
getReservedCacheNodeId
public String getReservedCacheNodeId()
The unique identifier for the reservation.
- Returns:
- The unique identifier for the reservation.
-
withReservedCacheNodeId
public ReservedCacheNode withReservedCacheNodeId(String reservedCacheNodeId)
The unique identifier for the reservation.
- Parameters:
reservedCacheNodeId
- The unique identifier for the reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReservedCacheNodesOfferingId
public void setReservedCacheNodesOfferingId(String reservedCacheNodesOfferingId)
The offering identifier.
- Parameters:
reservedCacheNodesOfferingId
- The offering identifier.
-
getReservedCacheNodesOfferingId
public String getReservedCacheNodesOfferingId()
The offering identifier.
- Returns:
- The offering identifier.
-
withReservedCacheNodesOfferingId
public ReservedCacheNode withReservedCacheNodesOfferingId(String reservedCacheNodesOfferingId)
The offering identifier.
- Parameters:
reservedCacheNodesOfferingId
- The offering identifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCacheNodeType
public void setCacheNodeType(String cacheNodeType)
The cache node type for the reserved cache nodes.
Valid node types are as follows:
- General purpose:
- Current generation:
cache.t2.micro
,cache.t2.small
,cache.t2.medium
,cache.m3.medium
,cache.m3.large
,cache.m3.xlarge
,cache.m3.2xlarge
- Previous generation:
cache.t1.micro
,cache.m1.small
,cache.m1.medium
,cache.m1.large
,cache.m1.xlarge
- Current generation:
- Compute optimized:
cache.c1.xlarge
- Memory optimized
- Current generation:
cache.r3.large
,cache.r3.xlarge
,cache.r3.2xlarge
,cache.r3.4xlarge
,cache.r3.8xlarge
- Previous generation:
cache.m2.xlarge
,cache.m2.2xlarge
,cache.m2.4xlarge
- Current generation:
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
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.
- Parameters:
cacheNodeType
- The cache node type for the reserved cache nodes.Valid node types are as follows:
- General purpose:
- Current generation:
cache.t2.micro
,cache.t2.small
,cache.t2.medium
,cache.m3.medium
,cache.m3.large
,cache.m3.xlarge
,cache.m3.2xlarge
- Previous generation:
cache.t1.micro
,cache.m1.small
,cache.m1.medium
,cache.m1.large
,cache.m1.xlarge
- Current generation:
- Compute optimized:
cache.c1.xlarge
- Memory optimized
- Current generation:
cache.r3.large
,cache.r3.xlarge
,cache.r3.2xlarge
,cache.r3.4xlarge
,cache.r3.8xlarge
- Previous generation:
cache.m2.xlarge
,cache.m2.2xlarge
,cache.m2.4xlarge
- Current generation:
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
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.
- General purpose:
- General purpose:
-
getCacheNodeType
public String getCacheNodeType()
The cache node type for the reserved cache nodes.
Valid node types are as follows:
- General purpose:
- Current generation:
cache.t2.micro
,cache.t2.small
,cache.t2.medium
,cache.m3.medium
,cache.m3.large
,cache.m3.xlarge
,cache.m3.2xlarge
- Previous generation:
cache.t1.micro
,cache.m1.small
,cache.m1.medium
,cache.m1.large
,cache.m1.xlarge
- Current generation:
- Compute optimized:
cache.c1.xlarge
- Memory optimized
- Current generation:
cache.r3.large
,cache.r3.xlarge
,cache.r3.2xlarge
,cache.r3.4xlarge
,cache.r3.8xlarge
- Previous generation:
cache.m2.xlarge
,cache.m2.2xlarge
,cache.m2.4xlarge
- Current generation:
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
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:
- The cache node type for the reserved cache nodes.
Valid node types are as follows:
- General purpose:
- Current generation:
cache.t2.micro
,cache.t2.small
,cache.t2.medium
,cache.m3.medium
,cache.m3.large
,cache.m3.xlarge
,cache.m3.2xlarge
- Previous generation:
cache.t1.micro
,cache.m1.small
,cache.m1.medium
,cache.m1.large
,cache.m1.xlarge
- Current generation:
- Compute optimized:
cache.c1.xlarge
- Memory optimized
- Current generation:
cache.r3.large
,cache.r3.xlarge
,cache.r3.2xlarge
,cache.r3.4xlarge
,cache.r3.8xlarge
- Previous generation:
cache.m2.xlarge
,cache.m2.2xlarge
,cache.m2.4xlarge
- Current generation:
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
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.
- General purpose:
- General purpose:
-
withCacheNodeType
public ReservedCacheNode withCacheNodeType(String cacheNodeType)
The cache node type for the reserved cache nodes.
Valid node types are as follows:
- General purpose:
- Current generation:
cache.t2.micro
,cache.t2.small
,cache.t2.medium
,cache.m3.medium
,cache.m3.large
,cache.m3.xlarge
,cache.m3.2xlarge
- Previous generation:
cache.t1.micro
,cache.m1.small
,cache.m1.medium
,cache.m1.large
,cache.m1.xlarge
- Current generation:
- Compute optimized:
cache.c1.xlarge
- Memory optimized
- Current generation:
cache.r3.large
,cache.r3.xlarge
,cache.r3.2xlarge
,cache.r3.4xlarge
,cache.r3.8xlarge
- Previous generation:
cache.m2.xlarge
,cache.m2.2xlarge
,cache.m2.4xlarge
- Current generation:
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
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.
- Parameters:
cacheNodeType
- The cache node type for the reserved cache nodes.Valid node types are as follows:
- General purpose:
- Current generation:
cache.t2.micro
,cache.t2.small
,cache.t2.medium
,cache.m3.medium
,cache.m3.large
,cache.m3.xlarge
,cache.m3.2xlarge
- Previous generation:
cache.t1.micro
,cache.m1.small
,cache.m1.medium
,cache.m1.large
,cache.m1.xlarge
- Current generation:
- Compute optimized:
cache.c1.xlarge
- Memory optimized
- Current generation:
cache.r3.large
,cache.r3.xlarge
,cache.r3.2xlarge
,cache.r3.4xlarge
,cache.r3.8xlarge
- Previous generation:
cache.m2.xlarge
,cache.m2.2xlarge
,cache.m2.4xlarge
- Current generation:
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
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.
- General purpose:
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- General purpose:
-
setStartTime
public void setStartTime(Date startTime)
The time the reservation started.
- Parameters:
startTime
- The time the reservation started.
-
getStartTime
public Date getStartTime()
The time the reservation started.
- Returns:
- The time the reservation started.
-
withStartTime
public ReservedCacheNode withStartTime(Date startTime)
The time the reservation started.
- Parameters:
startTime
- The time the reservation started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDuration
public void setDuration(Integer duration)
The duration of the reservation in seconds.
- Parameters:
duration
- The duration of the reservation in seconds.
-
getDuration
public Integer getDuration()
The duration of the reservation in seconds.
- Returns:
- The duration of the reservation in seconds.
-
withDuration
public ReservedCacheNode withDuration(Integer duration)
The duration of the reservation in seconds.
- Parameters:
duration
- The duration of the reservation in seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFixedPrice
public void setFixedPrice(Double fixedPrice)
The fixed price charged for this reserved cache node.
- Parameters:
fixedPrice
- The fixed price charged for this reserved cache node.
-
getFixedPrice
public Double getFixedPrice()
The fixed price charged for this reserved cache node.
- Returns:
- The fixed price charged for this reserved cache node.
-
withFixedPrice
public ReservedCacheNode withFixedPrice(Double fixedPrice)
The fixed price charged for this reserved cache node.
- Parameters:
fixedPrice
- The fixed price charged for this reserved cache node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUsagePrice
public void setUsagePrice(Double usagePrice)
The hourly price charged for this reserved cache node.
- Parameters:
usagePrice
- The hourly price charged for this reserved cache node.
-
getUsagePrice
public Double getUsagePrice()
The hourly price charged for this reserved cache node.
- Returns:
- The hourly price charged for this reserved cache node.
-
withUsagePrice
public ReservedCacheNode withUsagePrice(Double usagePrice)
The hourly price charged for this reserved cache node.
- Parameters:
usagePrice
- The hourly price charged for this reserved cache node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCacheNodeCount
public void setCacheNodeCount(Integer cacheNodeCount)
The number of cache nodes that have been reserved.
- Parameters:
cacheNodeCount
- The number of cache nodes that have been reserved.
-
getCacheNodeCount
public Integer getCacheNodeCount()
The number of cache nodes that have been reserved.
- Returns:
- The number of cache nodes that have been reserved.
-
withCacheNodeCount
public ReservedCacheNode withCacheNodeCount(Integer cacheNodeCount)
The number of cache nodes that have been reserved.
- Parameters:
cacheNodeCount
- The number of cache nodes that have been reserved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProductDescription
public void setProductDescription(String productDescription)
The description of the reserved cache node.
- Parameters:
productDescription
- The description of the reserved cache node.
-
getProductDescription
public String getProductDescription()
The description of the reserved cache node.
- Returns:
- The description of the reserved cache node.
-
withProductDescription
public ReservedCacheNode withProductDescription(String productDescription)
The description of the reserved cache node.
- Parameters:
productDescription
- The description of the reserved cache node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setOfferingType
public void setOfferingType(String offeringType)
The offering type of this reserved cache node.
- Parameters:
offeringType
- The offering type of this reserved cache node.
-
getOfferingType
public String getOfferingType()
The offering type of this reserved cache node.
- Returns:
- The offering type of this reserved cache node.
-
withOfferingType
public ReservedCacheNode withOfferingType(String offeringType)
The offering type of this reserved cache node.
- Parameters:
offeringType
- The offering type of this reserved cache node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
public void setState(String state)
The state of the reserved cache node.
- Parameters:
state
- The state of the reserved cache node.
-
getState
public String getState()
The state of the reserved cache node.
- Returns:
- The state of the reserved cache node.
-
withState
public ReservedCacheNode withState(String state)
The state of the reserved cache node.
- Parameters:
state
- The state of the reserved cache node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getRecurringCharges
public List<RecurringCharge> getRecurringCharges()
The recurring price charged to run this reserved cache node.
- Returns:
- The recurring price charged to run this reserved cache node.
-
setRecurringCharges
public void setRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring price charged to run this reserved cache node.
- Parameters:
recurringCharges
- The recurring price charged to run this reserved cache node.
-
withRecurringCharges
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)
orwithRecurringCharges(java.util.Collection)
if you want to override the existing values.- Parameters:
recurringCharges
- The recurring price charged to run this reserved cache node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRecurringCharges
public ReservedCacheNode withRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring price charged to run this reserved cache node.
- Parameters:
recurringCharges
- The recurring price charged to run this reserved cache node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ReservedCacheNode clone()
-
-