Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.elasticache.model
Class ReservedCacheNode

java.lang.Object
  extended by com.amazonaws.services.elasticache.model.ReservedCacheNode
All Implemented Interfaces:
Serializable

public class ReservedCacheNode
extends Object
implements Serializable

This data type is used as a response element in the DescribeReservedCacheNodes and PurchaseReservedCacheNodesOffering actions.

See Also:
Serialized Form

Constructor Summary
ReservedCacheNode()
           
 
Method Summary
 boolean equals(Object obj)
           
 Integer getCacheNodeCount()
          The number of reserved Cache Nodes.
 String getCacheNodeType()
          The cache node type for the reserved Cache Node.
 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 reserved Cache Nodes.
 void setCacheNodeType(String cacheNodeType)
          The cache node type for the reserved Cache Node.
 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 reserved Cache Nodes.
 ReservedCacheNode withCacheNodeType(String cacheNodeType)
          The cache node type for the reserved Cache Node.
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReservedCacheNode

public ReservedCacheNode()
Method Detail

getReservedCacheNodeId

public String getReservedCacheNodeId()
The unique identifier for the reservation.

Returns:
The unique identifier for the reservation.

setReservedCacheNodeId

public void setReservedCacheNodeId(String reservedCacheNodeId)
The unique identifier for the reservation.

Parameters:
reservedCacheNodeId - The unique identifier for the reservation.

withReservedCacheNodeId

public ReservedCacheNode withReservedCacheNodeId(String reservedCacheNodeId)
The unique identifier for the reservation.

Returns a reference to this object so that method calls can be chained together.

Parameters:
reservedCacheNodeId - The unique identifier for the reservation.
Returns:
A reference to this updated object so that method calls can be chained together.

getReservedCacheNodesOfferingId

public String getReservedCacheNodesOfferingId()
The offering identifier.

Returns:
The offering identifier.

setReservedCacheNodesOfferingId

public void setReservedCacheNodesOfferingId(String reservedCacheNodesOfferingId)
The offering identifier.

Parameters:
reservedCacheNodesOfferingId - The offering identifier.

withReservedCacheNodesOfferingId

public ReservedCacheNode withReservedCacheNodesOfferingId(String reservedCacheNodesOfferingId)
The offering identifier.

Returns a reference to this object so that method calls can be chained together.

Parameters:
reservedCacheNodesOfferingId - The offering identifier.
Returns:
A reference to this updated object so that method calls can be chained together.

getCacheNodeType

public String getCacheNodeType()
The cache node type for the reserved Cache Node.

Returns:
The cache node type for the reserved Cache Node.

setCacheNodeType

public void setCacheNodeType(String cacheNodeType)
The cache node type for the reserved Cache Node.

Parameters:
cacheNodeType - The cache node type for the reserved Cache Node.

withCacheNodeType

public ReservedCacheNode withCacheNodeType(String cacheNodeType)
The cache node type for the reserved Cache Node.

Returns a reference to this object so that method calls can be chained together.

Parameters:
cacheNodeType - The cache node type for the reserved Cache Node.
Returns:
A reference to this updated object so that method calls can be chained together.

getStartTime

public Date getStartTime()
The time the reservation started.

Returns:
The time the reservation started.

setStartTime

public void setStartTime(Date startTime)
The time the reservation started.

Parameters:
startTime - The time the reservation started.

withStartTime

public ReservedCacheNode withStartTime(Date startTime)
The time the reservation started.

Returns a reference to this object so that method calls can be chained together.

Parameters:
startTime - The time the reservation started.
Returns:
A reference to this updated object so that method calls can be chained together.

getDuration

public Integer getDuration()
The duration of the reservation in seconds.

Returns:
The duration of the reservation in seconds.

setDuration

public void setDuration(Integer duration)
The duration of the reservation in seconds.

Parameters:
duration - The duration of the reservation in seconds.

withDuration

public ReservedCacheNode withDuration(Integer duration)
The duration of the reservation in seconds.

Returns a reference to this object so that method calls can be chained together.

Parameters:
duration - The duration of the reservation in seconds.
Returns:
A reference to this updated object so that method calls can be chained together.

getFixedPrice

public Double getFixedPrice()
The fixed price charged for this reserved Cache Node.

Returns:
The fixed price charged for this reserved Cache Node.

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.

withFixedPrice

public ReservedCacheNode withFixedPrice(Double fixedPrice)
The fixed price charged for this reserved Cache Node.

Returns a reference to this object so that method calls can be chained together.

Parameters:
fixedPrice - The fixed price charged for this reserved Cache Node.
Returns:
A reference to this updated object so that method calls can be chained together.

getUsagePrice

public Double getUsagePrice()
The hourly price charged for this reserved Cache Node.

Returns:
The hourly price charged for this reserved Cache Node.

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.

withUsagePrice

public ReservedCacheNode withUsagePrice(Double usagePrice)
The hourly price charged for this reserved Cache Node.

Returns a reference to this object so that method calls can be chained together.

Parameters:
usagePrice - The hourly price charged for this reserved Cache Node.
Returns:
A reference to this updated object so that method calls can be chained together.

getCacheNodeCount

public Integer getCacheNodeCount()
The number of reserved Cache Nodes.

Returns:
The number of reserved Cache Nodes.

setCacheNodeCount

public void setCacheNodeCount(Integer cacheNodeCount)
The number of reserved Cache Nodes.

Parameters:
cacheNodeCount - The number of reserved Cache Nodes.

withCacheNodeCount

public ReservedCacheNode withCacheNodeCount(Integer cacheNodeCount)
The number of reserved Cache Nodes.

Returns a reference to this object so that method calls can be chained together.

Parameters:
cacheNodeCount - The number of reserved Cache Nodes.
Returns:
A reference to this updated object so that method calls can be chained together.

getProductDescription

public String getProductDescription()
The description of the reserved Cache Node.

Returns:
The description of the reserved Cache Node.

setProductDescription

public void setProductDescription(String productDescription)
The description of the reserved Cache Node.

Parameters:
productDescription - The description of the reserved Cache Node.

withProductDescription

public ReservedCacheNode withProductDescription(String productDescription)
The description of the reserved Cache Node.

Returns a reference to this object so that method calls can be chained together.

Parameters:
productDescription - The description of the reserved Cache Node.
Returns:
A reference to this updated object so that method calls can be chained together.

getOfferingType

public String getOfferingType()
The offering type of this reserved Cache Node.

Returns:
The offering type of this reserved Cache Node.

setOfferingType

public void setOfferingType(String offeringType)
The offering type of this reserved Cache Node.

Parameters:
offeringType - The offering type of this reserved Cache Node.

withOfferingType

public ReservedCacheNode withOfferingType(String offeringType)
The offering type of this reserved Cache Node.

Returns a reference to this object so that method calls can be chained together.

Parameters:
offeringType - The offering type of this reserved Cache Node.
Returns:
A reference to this updated object so that method calls can be chained together.

getState

public String getState()
The state of the reserved Cache Node.

Returns:
The state of the reserved Cache Node.

setState

public void setState(String state)
The state of the reserved Cache Node.

Parameters:
state - The state of the reserved Cache Node.

withState

public ReservedCacheNode withState(String state)
The state of the reserved Cache Node.

Returns a reference to this object so that method calls can be chained together.

Parameters:
state - The state of the reserved Cache Node.
Returns:
A reference to this updated 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
recurringCharges - The recurring price charged to run this reserved Cache Node.
Returns:
A reference to this updated 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
recurringCharges - The recurring price charged to run this reserved Cache Node.
Returns:
A reference to this updated 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:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.