Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.redshift.model
Class ReservedNode

java.lang.Object
  extended by com.amazonaws.services.redshift.model.ReservedNode
All Implemented Interfaces:
Serializable

public class ReservedNode
extends Object
implements Serializable

Describes a reserved node.

See Also:
Serialized Form

Constructor Summary
ReservedNode()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCurrencyCode()
          The currency code for the reserved cluster.
 Integer getDuration()
          The duration of the node reservation in seconds.
 Double getFixedPrice()
          The fixed cost Amazon Redshift charged you for this reserved node.
 Integer getNodeCount()
          The number of reserved compute nodes.
 String getNodeType()
          The node type of the reserved node.
 String getOfferingType()
          The anticipated utilization of the reserved node, as defined in the reserved node offering.
 List<RecurringCharge> getRecurringCharges()
          The recurring charges for the reserved node.
 String getReservedNodeId()
          The unique identifier for the reservation.
 String getReservedNodeOfferingId()
          The identifier for the reserved node offering.
 Date getStartTime()
          The time the reservation started.
 String getState()
          The state of the reserved Compute Node.
 Double getUsagePrice()
          The hourly rate Amazon Redshift charge you for this reserved node.
 int hashCode()
           
 void setCurrencyCode(String currencyCode)
          The currency code for the reserved cluster.
 void setDuration(Integer duration)
          The duration of the node reservation in seconds.
 void setFixedPrice(Double fixedPrice)
          The fixed cost Amazon Redshift charged you for this reserved node.
 void setNodeCount(Integer nodeCount)
          The number of reserved compute nodes.
 void setNodeType(String nodeType)
          The node type of the reserved node.
 void setOfferingType(String offeringType)
          The anticipated utilization of the reserved node, as defined in the reserved node offering.
 void setRecurringCharges(Collection<RecurringCharge> recurringCharges)
          The recurring charges for the reserved node.
 void setReservedNodeId(String reservedNodeId)
          The unique identifier for the reservation.
 void setReservedNodeOfferingId(String reservedNodeOfferingId)
          The identifier for the reserved node offering.
 void setStartTime(Date startTime)
          The time the reservation started.
 void setState(String state)
          The state of the reserved Compute Node.
 void setUsagePrice(Double usagePrice)
          The hourly rate Amazon Redshift charge you for this reserved node.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ReservedNode withCurrencyCode(String currencyCode)
          The currency code for the reserved cluster.
 ReservedNode withDuration(Integer duration)
          The duration of the node reservation in seconds.
 ReservedNode withFixedPrice(Double fixedPrice)
          The fixed cost Amazon Redshift charged you for this reserved node.
 ReservedNode withNodeCount(Integer nodeCount)
          The number of reserved compute nodes.
 ReservedNode withNodeType(String nodeType)
          The node type of the reserved node.
 ReservedNode withOfferingType(String offeringType)
          The anticipated utilization of the reserved node, as defined in the reserved node offering.
 ReservedNode withRecurringCharges(Collection<RecurringCharge> recurringCharges)
          The recurring charges for the reserved node.
 ReservedNode withRecurringCharges(RecurringCharge... recurringCharges)
          The recurring charges for the reserved node.
 ReservedNode withReservedNodeId(String reservedNodeId)
          The unique identifier for the reservation.
 ReservedNode withReservedNodeOfferingId(String reservedNodeOfferingId)
          The identifier for the reserved node offering.
 ReservedNode withStartTime(Date startTime)
          The time the reservation started.
 ReservedNode withState(String state)
          The state of the reserved Compute Node.
 ReservedNode withUsagePrice(Double usagePrice)
          The hourly rate Amazon Redshift charge you for this reserved node.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReservedNode

public ReservedNode()
Method Detail

getReservedNodeId

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

Returns:
The unique identifier for the reservation.

setReservedNodeId

public void setReservedNodeId(String reservedNodeId)
The unique identifier for the reservation.

Parameters:
reservedNodeId - The unique identifier for the reservation.

withReservedNodeId

public ReservedNode withReservedNodeId(String reservedNodeId)
The unique identifier for the reservation.

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

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

getReservedNodeOfferingId

public String getReservedNodeOfferingId()
The identifier for the reserved node offering.

Returns:
The identifier for the reserved node offering.

setReservedNodeOfferingId

public void setReservedNodeOfferingId(String reservedNodeOfferingId)
The identifier for the reserved node offering.

Parameters:
reservedNodeOfferingId - The identifier for the reserved node offering.

withReservedNodeOfferingId

public ReservedNode withReservedNodeOfferingId(String reservedNodeOfferingId)
The identifier for the reserved node offering.

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

Parameters:
reservedNodeOfferingId - The identifier for the reserved node offering.
Returns:
A reference to this updated object so that method calls can be chained together.

getNodeType

public String getNodeType()
The node type of the reserved node.

Returns:
The node type of the reserved node.

setNodeType

public void setNodeType(String nodeType)
The node type of the reserved node.

Parameters:
nodeType - The node type of the reserved node.

withNodeType

public ReservedNode withNodeType(String nodeType)
The node type of the reserved node.

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

Parameters:
nodeType - The node type of the reserved 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. You purchase a reserved node offering for a duration. This is the start time of that duration.

Returns:
The time the reservation started. You purchase a reserved node offering for a duration. This is the start time of that duration.

setStartTime

public void setStartTime(Date startTime)
The time the reservation started. You purchase a reserved node offering for a duration. This is the start time of that duration.

Parameters:
startTime - The time the reservation started. You purchase a reserved node offering for a duration. This is the start time of that duration.

withStartTime

public ReservedNode withStartTime(Date startTime)
The time the reservation started. You purchase a reserved node offering for a duration. This is the start time of that duration.

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

Parameters:
startTime - The time the reservation started. You purchase a reserved node offering for a duration. This is the start time of that duration.
Returns:
A reference to this updated object so that method calls can be chained together.

getDuration

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

Returns:
The duration of the node reservation in seconds.

setDuration

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

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

withDuration

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

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

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

getFixedPrice

public Double getFixedPrice()
The fixed cost Amazon Redshift charged you for this reserved node.

Returns:
The fixed cost Amazon Redshift charged you for this reserved node.

setFixedPrice

public void setFixedPrice(Double fixedPrice)
The fixed cost Amazon Redshift charged you for this reserved node.

Parameters:
fixedPrice - The fixed cost Amazon Redshift charged you for this reserved node.

withFixedPrice

public ReservedNode withFixedPrice(Double fixedPrice)
The fixed cost Amazon Redshift charged you for this reserved node.

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

Parameters:
fixedPrice - The fixed cost Amazon Redshift charged you for this reserved node.
Returns:
A reference to this updated object so that method calls can be chained together.

getUsagePrice

public Double getUsagePrice()
The hourly rate Amazon Redshift charge you for this reserved node.

Returns:
The hourly rate Amazon Redshift charge you for this reserved node.

setUsagePrice

public void setUsagePrice(Double usagePrice)
The hourly rate Amazon Redshift charge you for this reserved node.

Parameters:
usagePrice - The hourly rate Amazon Redshift charge you for this reserved node.

withUsagePrice

public ReservedNode withUsagePrice(Double usagePrice)
The hourly rate Amazon Redshift charge you for this reserved node.

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

Parameters:
usagePrice - The hourly rate Amazon Redshift charge you for this reserved node.
Returns:
A reference to this updated object so that method calls can be chained together.

getCurrencyCode

public String getCurrencyCode()
The currency code for the reserved cluster.

Returns:
The currency code for the reserved cluster.

setCurrencyCode

public void setCurrencyCode(String currencyCode)
The currency code for the reserved cluster.

Parameters:
currencyCode - The currency code for the reserved cluster.

withCurrencyCode

public ReservedNode withCurrencyCode(String currencyCode)
The currency code for the reserved cluster.

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

Parameters:
currencyCode - The currency code for the reserved cluster.
Returns:
A reference to this updated object so that method calls can be chained together.

getNodeCount

public Integer getNodeCount()
The number of reserved compute nodes.

Returns:
The number of reserved compute nodes.

setNodeCount

public void setNodeCount(Integer nodeCount)
The number of reserved compute nodes.

Parameters:
nodeCount - The number of reserved compute nodes.

withNodeCount

public ReservedNode withNodeCount(Integer nodeCount)
The number of reserved compute nodes.

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

Parameters:
nodeCount - The number of reserved compute nodes.
Returns:
A reference to this updated object so that method calls can be chained together.

getState

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

Possible Values:

Returns:
The state of the reserved Compute Node.

Possible Values:

  • pending-payment-This reserved node has recently been purchased, and the sale has been approved, but payment has not yet been confirmed.
  • active-This reserved node is owned by the caller and is available for use.
  • payment-failed-Payment failed for the purchase attempt.

setState

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

Possible Values:

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

Possible Values:

  • pending-payment-This reserved node has recently been purchased, and the sale has been approved, but payment has not yet been confirmed.
  • active-This reserved node is owned by the caller and is available for use.
  • payment-failed-Payment failed for the purchase attempt.

withState

public ReservedNode withState(String state)
The state of the reserved Compute Node.

Possible Values:

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

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

Possible Values:

  • pending-payment-This reserved node has recently been purchased, and the sale has been approved, but payment has not yet been confirmed.
  • active-This reserved node is owned by the caller and is available for use.
  • payment-failed-Payment failed for the purchase attempt.
Returns:
A reference to this updated object so that method calls can be chained together.

getOfferingType

public String getOfferingType()
The anticipated utilization of the reserved node, as defined in the reserved node offering.

Returns:
The anticipated utilization of the reserved node, as defined in the reserved node offering.

setOfferingType

public void setOfferingType(String offeringType)
The anticipated utilization of the reserved node, as defined in the reserved node offering.

Parameters:
offeringType - The anticipated utilization of the reserved node, as defined in the reserved node offering.

withOfferingType

public ReservedNode withOfferingType(String offeringType)
The anticipated utilization of the reserved node, as defined in the reserved node offering.

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

Parameters:
offeringType - The anticipated utilization of the reserved node, as defined in the reserved node offering.
Returns:
A reference to this updated object so that method calls can be chained together.

getRecurringCharges

public List<RecurringCharge> getRecurringCharges()
The recurring charges for the reserved node.

Returns:
The recurring charges for the reserved node.

setRecurringCharges

public void setRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charges for the reserved node.

Parameters:
recurringCharges - The recurring charges for the reserved node.

withRecurringCharges

public ReservedNode withRecurringCharges(RecurringCharge... recurringCharges)
The recurring charges for the reserved node.

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

Parameters:
recurringCharges - The recurring charges for the reserved node.
Returns:
A reference to this updated object so that method calls can be chained together.

withRecurringCharges

public ReservedNode withRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charges for the reserved node.

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

Parameters:
recurringCharges - The recurring charges for the reserved 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.