Class ReservedNode
- java.lang.Object
-
- com.amazonaws.services.redshift.model.ReservedNode
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ReservedNode extends Object implements Serializable, Cloneable
Describes a reserved node. You can call the DescribeReservedNodeOfferings API to obtain the available reserved node offerings.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReservedNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReservedNodeclone()booleanequals(Object obj)StringgetCurrencyCode()The currency code for the reserved cluster.IntegergetDuration()The duration of the node reservation in seconds.DoublegetFixedPrice()The fixed cost Amazon Redshift charges you for this reserved node.IntegergetNodeCount()The number of reserved compute nodes.StringgetNodeType()The node type of the reserved node.StringgetOfferingType()The anticipated utilization of the reserved node, as defined in the reserved node offering.List<RecurringCharge>getRecurringCharges()The recurring charges for the reserved node.StringgetReservedNodeId()The unique identifier for the reservation.StringgetReservedNodeOfferingId()The identifier for the reserved node offering.DategetStartTime()The time the reservation started.StringgetState()The state of the reserved compute node.DoublegetUsagePrice()The hourly rate Amazon Redshift charges you for this reserved node.inthashCode()voidsetCurrencyCode(String currencyCode)The currency code for the reserved cluster.voidsetDuration(Integer duration)The duration of the node reservation in seconds.voidsetFixedPrice(Double fixedPrice)The fixed cost Amazon Redshift charges you for this reserved node.voidsetNodeCount(Integer nodeCount)The number of reserved compute nodes.voidsetNodeType(String nodeType)The node type of the reserved node.voidsetOfferingType(String offeringType)The anticipated utilization of the reserved node, as defined in the reserved node offering.voidsetRecurringCharges(Collection<RecurringCharge> recurringCharges)The recurring charges for the reserved node.voidsetReservedNodeId(String reservedNodeId)The unique identifier for the reservation.voidsetReservedNodeOfferingId(String reservedNodeOfferingId)The identifier for the reserved node offering.voidsetStartTime(Date startTime)The time the reservation started.voidsetState(String state)The state of the reserved compute node.voidsetUsagePrice(Double usagePrice)The hourly rate Amazon Redshift charges you for this reserved node.StringtoString()Returns a string representation of this object; useful for testing and debugging.ReservedNodewithCurrencyCode(String currencyCode)The currency code for the reserved cluster.ReservedNodewithDuration(Integer duration)The duration of the node reservation in seconds.ReservedNodewithFixedPrice(Double fixedPrice)The fixed cost Amazon Redshift charges you for this reserved node.ReservedNodewithNodeCount(Integer nodeCount)The number of reserved compute nodes.ReservedNodewithNodeType(String nodeType)The node type of the reserved node.ReservedNodewithOfferingType(String offeringType)The anticipated utilization of the reserved node, as defined in the reserved node offering.ReservedNodewithRecurringCharges(RecurringCharge... recurringCharges)The recurring charges for the reserved node.ReservedNodewithRecurringCharges(Collection<RecurringCharge> recurringCharges)The recurring charges for the reserved node.ReservedNodewithReservedNodeId(String reservedNodeId)The unique identifier for the reservation.ReservedNodewithReservedNodeOfferingId(String reservedNodeOfferingId)The identifier for the reserved node offering.ReservedNodewithStartTime(Date startTime)The time the reservation started.ReservedNodewithState(String state)The state of the reserved compute node.ReservedNodewithUsagePrice(Double usagePrice)The hourly rate Amazon Redshift charges you for this reserved node.
-
-
-
Method Detail
-
setReservedNodeId
public void setReservedNodeId(String reservedNodeId)
The unique identifier for the reservation.
- Parameters:
reservedNodeId- The unique identifier for the reservation.
-
getReservedNodeId
public String getReservedNodeId()
The unique identifier for the reservation.
- Returns:
- The unique identifier for the reservation.
-
withReservedNodeId
public ReservedNode withReservedNodeId(String reservedNodeId)
The unique identifier for the reservation.
- Parameters:
reservedNodeId- The unique identifier for the reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReservedNodeOfferingId
public void setReservedNodeOfferingId(String reservedNodeOfferingId)
The identifier for the reserved node offering.
- Parameters:
reservedNodeOfferingId- The identifier for the reserved node offering.
-
getReservedNodeOfferingId
public String getReservedNodeOfferingId()
The identifier for the reserved node offering.
- Returns:
- The identifier for the reserved node offering.
-
withReservedNodeOfferingId
public ReservedNode withReservedNodeOfferingId(String reservedNodeOfferingId)
The identifier for the reserved node offering.
- Parameters:
reservedNodeOfferingId- The identifier for the reserved node offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNodeType
public void setNodeType(String nodeType)
The node type of the reserved node.
- Parameters:
nodeType- The node type of the reserved node.
-
getNodeType
public String getNodeType()
The node type of the reserved node.
- Returns:
- The node type of the reserved node.
-
withNodeType
public ReservedNode withNodeType(String nodeType)
The node type of the reserved node.
- Parameters:
nodeType- The node type of the reserved node.- 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. 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.
-
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.
-
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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
setDuration
public void setDuration(Integer duration)
The duration of the node reservation in seconds.
- Parameters:
duration- The duration of the node reservation in seconds.
-
getDuration
public Integer getDuration()
The duration of the node reservation in seconds.
- Returns:
- The duration of the node reservation in seconds.
-
withDuration
public ReservedNode withDuration(Integer duration)
The duration of the node reservation in seconds.
- Parameters:
duration- The duration of the node 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 cost Amazon Redshift charges you for this reserved node.
- Parameters:
fixedPrice- The fixed cost Amazon Redshift charges you for this reserved node.
-
getFixedPrice
public Double getFixedPrice()
The fixed cost Amazon Redshift charges you for this reserved node.
- Returns:
- The fixed cost Amazon Redshift charges you for this reserved node.
-
withFixedPrice
public ReservedNode withFixedPrice(Double fixedPrice)
The fixed cost Amazon Redshift charges you for this reserved node.
- Parameters:
fixedPrice- The fixed cost Amazon Redshift charges you for this reserved node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUsagePrice
public void setUsagePrice(Double usagePrice)
The hourly rate Amazon Redshift charges you for this reserved node.
- Parameters:
usagePrice- The hourly rate Amazon Redshift charges you for this reserved node.
-
getUsagePrice
public Double getUsagePrice()
The hourly rate Amazon Redshift charges you for this reserved node.
- Returns:
- The hourly rate Amazon Redshift charges you for this reserved node.
-
withUsagePrice
public ReservedNode withUsagePrice(Double usagePrice)
The hourly rate Amazon Redshift charges you for this reserved node.
- Parameters:
usagePrice- The hourly rate Amazon Redshift charges you for this reserved node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCurrencyCode
public void setCurrencyCode(String currencyCode)
The currency code for the reserved cluster.
- Parameters:
currencyCode- The currency code for the reserved cluster.
-
getCurrencyCode
public String getCurrencyCode()
The currency code for the reserved cluster.
- Returns:
- The currency code for the reserved cluster.
-
withCurrencyCode
public ReservedNode withCurrencyCode(String currencyCode)
The currency code for the reserved cluster.
- Parameters:
currencyCode- The currency code for the reserved cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNodeCount
public void setNodeCount(Integer nodeCount)
The number of reserved compute nodes.
- Parameters:
nodeCount- The number of reserved compute nodes.
-
getNodeCount
public Integer getNodeCount()
The number of reserved compute nodes.
- Returns:
- The number of reserved compute nodes.
-
withNodeCount
public ReservedNode withNodeCount(Integer nodeCount)
The number of reserved compute nodes.
- Parameters:
nodeCount- The number of reserved compute nodes.- 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 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.
- 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.
-
getState
public String getState()
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:
- 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:
- 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
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.
-
withOfferingType
public ReservedNode withOfferingType(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.- Returns:
- Returns a reference to this 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.
NOTE: This method appends the values to the existing list (if any). Use
setRecurringCharges(java.util.Collection)orwithRecurringCharges(java.util.Collection)if you want to override the existing values.- Parameters:
recurringCharges- The recurring charges for the reserved node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRecurringCharges
public ReservedNode withRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charges for the reserved node.
- Parameters:
recurringCharges- The recurring charges for the reserved 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ReservedNode clone()
-
-