Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.elasticache.model
Class ReservedCacheNodesOffering

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

public class ReservedCacheNodesOffering
extends java.lang.Object
implements java.io.Serializable

This data type is used as a response element in the DescribeReservedCacheNodesOfferings action.

See Also:
Serialized Form

Constructor Summary
ReservedCacheNodesOffering()
           
 
Method Summary
 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 in seconds.
 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()
          The offering identifier.
 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 in seconds.
 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)
          The offering identifier.
 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 in seconds.
 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)
          The offering identifier.
 ReservedCacheNodesOffering withUsagePrice(java.lang.Double usagePrice)
          The hourly price charged for this offering.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReservedCacheNodesOffering

public ReservedCacheNodesOffering()
Method Detail

getReservedCacheNodesOfferingId

public java.lang.String getReservedCacheNodesOfferingId()
The offering identifier.

Returns:
The offering identifier.

setReservedCacheNodesOfferingId

public void setReservedCacheNodesOfferingId(java.lang.String reservedCacheNodesOfferingId)
The offering identifier.

Parameters:
reservedCacheNodesOfferingId - The offering identifier.

withReservedCacheNodesOfferingId

public ReservedCacheNodesOffering withReservedCacheNodesOfferingId(java.lang.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 java.lang.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(java.lang.String cacheNodeType)
The Cache Node type for the reserved Cache Node.

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

withCacheNodeType

public ReservedCacheNodesOffering withCacheNodeType(java.lang.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.

getDuration

public java.lang.Integer getDuration()
The duration of the offering in seconds.

Returns:
The duration of the offering in seconds.

setDuration

public void setDuration(java.lang.Integer duration)
The duration of the offering in seconds.

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

withDuration

public ReservedCacheNodesOffering withDuration(java.lang.Integer duration)
The duration of the offering in seconds.

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

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

getFixedPrice

public java.lang.Double getFixedPrice()
The fixed price charged for this offering.

Returns:
The fixed price charged for this offering.

setFixedPrice

public void setFixedPrice(java.lang.Double fixedPrice)
The fixed price charged for this offering.

Parameters:
fixedPrice - The fixed price charged for this offering.

withFixedPrice

public ReservedCacheNodesOffering withFixedPrice(java.lang.Double fixedPrice)
The fixed price charged for this offering.

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

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

getUsagePrice

public java.lang.Double getUsagePrice()
The hourly price charged for this offering.

Returns:
The hourly price charged for this offering.

setUsagePrice

public void setUsagePrice(java.lang.Double usagePrice)
The hourly price charged for this offering.

Parameters:
usagePrice - The hourly price charged for this offering.

withUsagePrice

public ReservedCacheNodesOffering withUsagePrice(java.lang.Double usagePrice)
The hourly price charged for this offering.

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

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

getProductDescription

public java.lang.String getProductDescription()
The cache engine used by the offering.

Returns:
The cache engine used by the offering.

setProductDescription

public void setProductDescription(java.lang.String productDescription)
The cache engine used by the offering.

Parameters:
productDescription - The cache engine used by the offering.

withProductDescription

public ReservedCacheNodesOffering withProductDescription(java.lang.String productDescription)
The cache engine used by the offering.

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

Parameters:
productDescription - The cache engine used by the offering.
Returns:
A reference to this updated object so that method calls can be chained together.

getOfferingType

public java.lang.String getOfferingType()
The offering type.

Returns:
The offering type.

setOfferingType

public void setOfferingType(java.lang.String offeringType)
The offering type.

Parameters:
offeringType - The offering type.

withOfferingType

public ReservedCacheNodesOffering withOfferingType(java.lang.String offeringType)
The offering type.

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

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

getRecurringCharges

public java.util.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(java.util.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 ReservedCacheNodesOffering 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 ReservedCacheNodesOffering withRecurringCharges(java.util.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 java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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