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:
  • Constructor Details

    • ReservedCacheNode

      public ReservedCacheNode()
  • Method Details

    • 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
      • 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

      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
      • 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

      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.

    • 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
      • 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

      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
      • 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

      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.

    • 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
      • 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

      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
      • 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

      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:
      Returns a reference to this object so that method calls can be chained together.
    • 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) or withRecurringCharges(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ReservedCacheNode clone()
      Overrides:
      clone in class Object