public class ReservedCacheNodesOffering
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes all of the attributes of a reserved cache node offering.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
cacheNodeType
The cache node type for the reserved cache node.
|
private java.lang.Integer |
duration
The duration of the offering.
|
private java.lang.Double |
fixedPrice
The fixed price charged for this offering.
|
private java.lang.String |
offeringType
The offering type.
|
private java.lang.String |
productDescription
The cache engine used by the offering.
|
private SdkInternalList<RecurringCharge> |
recurringCharges
The recurring price charged to run this reserved cache node.
|
private java.lang.String |
reservedCacheNodesOfferingId
A unique identifier for the reserved cache node offering.
|
private java.lang.Double |
usagePrice
The hourly price charged for this offering.
|
Constructor and Description |
---|
ReservedCacheNodesOffering() |
Modifier and Type | Method and Description |
---|---|
ReservedCacheNodesOffering |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCacheNodeType()
The cache node type for the reserved cache node.
|
java.lang.Integer |
getDuration()
The duration of the offering.
|
java.lang.Double |
getFixedPrice()
The fixed price charged for this offering.
|
java.lang.String |
getOfferingType()
The offering type.
|
java.lang.String |
getProductDescription()
The cache engine used by the offering.
|
java.util.List<RecurringCharge> |
getRecurringCharges()
The recurring price charged to run this reserved cache node.
|
java.lang.String |
getReservedCacheNodesOfferingId()
A unique identifier for the reserved cache node offering.
|
java.lang.Double |
getUsagePrice()
The hourly price charged for this offering.
|
int |
hashCode() |
void |
setCacheNodeType(java.lang.String cacheNodeType)
The cache node type for the reserved cache node.
|
void |
setDuration(java.lang.Integer duration)
The duration of the offering.
|
void |
setFixedPrice(java.lang.Double fixedPrice)
The fixed price charged for this offering.
|
void |
setOfferingType(java.lang.String offeringType)
The offering type.
|
void |
setProductDescription(java.lang.String productDescription)
The cache engine used by the offering.
|
void |
setRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
The recurring price charged to run this reserved cache node.
|
void |
setReservedCacheNodesOfferingId(java.lang.String reservedCacheNodesOfferingId)
A unique identifier for the reserved cache node offering.
|
void |
setUsagePrice(java.lang.Double usagePrice)
The hourly price charged for this offering.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReservedCacheNodesOffering |
withCacheNodeType(java.lang.String cacheNodeType)
The cache node type for the reserved cache node.
|
ReservedCacheNodesOffering |
withDuration(java.lang.Integer duration)
The duration of the offering.
|
ReservedCacheNodesOffering |
withFixedPrice(java.lang.Double fixedPrice)
The fixed price charged for this offering.
|
ReservedCacheNodesOffering |
withOfferingType(java.lang.String offeringType)
The offering type.
|
ReservedCacheNodesOffering |
withProductDescription(java.lang.String productDescription)
The cache engine used by the offering.
|
ReservedCacheNodesOffering |
withRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
The recurring price charged to run this reserved cache node.
|
ReservedCacheNodesOffering |
withRecurringCharges(RecurringCharge... recurringCharges)
The recurring price charged to run this reserved cache node.
|
ReservedCacheNodesOffering |
withReservedCacheNodesOfferingId(java.lang.String reservedCacheNodesOfferingId)
A unique identifier for the reserved cache node offering.
|
ReservedCacheNodesOffering |
withUsagePrice(java.lang.Double usagePrice)
The hourly price charged for this offering.
|
private java.lang.String reservedCacheNodesOfferingId
A unique identifier for the reserved cache node offering.
private java.lang.String cacheNodeType
The cache node type for the reserved cache node.
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.lang.Integer duration
The duration of the offering. in seconds.
private java.lang.Double fixedPrice
The fixed price charged for this offering.
private java.lang.Double usagePrice
The hourly price charged for this offering.
private java.lang.String productDescription
The cache engine used by the offering.
private java.lang.String offeringType
The offering type.
private SdkInternalList<RecurringCharge> recurringCharges
The recurring price charged to run this reserved cache node.
public void setReservedCacheNodesOfferingId(java.lang.String reservedCacheNodesOfferingId)
A unique identifier for the reserved cache node offering.
reservedCacheNodesOfferingId
- A unique identifier for the reserved cache node offering.public java.lang.String getReservedCacheNodesOfferingId()
A unique identifier for the reserved cache node offering.
public ReservedCacheNodesOffering withReservedCacheNodesOfferingId(java.lang.String reservedCacheNodesOfferingId)
A unique identifier for the reserved cache node offering.
reservedCacheNodesOfferingId
- A unique identifier for the reserved cache node offering.public void setCacheNodeType(java.lang.String cacheNodeType)
The cache node type for the reserved cache node.
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 node.
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 node.
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 ReservedCacheNodesOffering withCacheNodeType(java.lang.String cacheNodeType)
The cache node type for the reserved cache node.
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 node.
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 setDuration(java.lang.Integer duration)
The duration of the offering. in seconds.
duration
- The duration of the offering. in seconds.public java.lang.Integer getDuration()
The duration of the offering. in seconds.
public ReservedCacheNodesOffering withDuration(java.lang.Integer duration)
The duration of the offering. in seconds.
duration
- The duration of the offering. in seconds.public void setFixedPrice(java.lang.Double fixedPrice)
The fixed price charged for this offering.
fixedPrice
- The fixed price charged for this offering.public java.lang.Double getFixedPrice()
The fixed price charged for this offering.
public ReservedCacheNodesOffering withFixedPrice(java.lang.Double fixedPrice)
The fixed price charged for this offering.
fixedPrice
- The fixed price charged for this offering.public void setUsagePrice(java.lang.Double usagePrice)
The hourly price charged for this offering.
usagePrice
- The hourly price charged for this offering.public java.lang.Double getUsagePrice()
The hourly price charged for this offering.
public ReservedCacheNodesOffering withUsagePrice(java.lang.Double usagePrice)
The hourly price charged for this offering.
usagePrice
- The hourly price charged for this offering.public void setProductDescription(java.lang.String productDescription)
The cache engine used by the offering.
productDescription
- The cache engine used by the offering.public java.lang.String getProductDescription()
The cache engine used by the offering.
public ReservedCacheNodesOffering withProductDescription(java.lang.String productDescription)
The cache engine used by the offering.
productDescription
- The cache engine used by the offering.public void setOfferingType(java.lang.String offeringType)
The offering type.
offeringType
- The offering type.public java.lang.String getOfferingType()
The offering type.
public ReservedCacheNodesOffering withOfferingType(java.lang.String offeringType)
The offering type.
offeringType
- The offering type.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 ReservedCacheNodesOffering 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 ReservedCacheNodesOffering 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 ReservedCacheNodesOffering clone()
clone
in class java.lang.Object