Class ReservedNode
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a reserved node. You can call the DescribeReservedNodeOfferings API to obtain the available reserved node offerings.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The currency code for the reserved cluster.The duration of the node reservation in seconds.The fixed cost Amazon Redshift charges you for this reserved node.The number of reserved compute nodes.The node type of the reserved node.The anticipated utilization of the reserved node, as defined in the reserved node offering.The recurring charges for the reserved node.The unique identifier for the reservation.The identifier for the reserved node offering.The time the reservation started.getState()
The state of the reserved compute node.The hourly rate Amazon Redshift charges 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 charges 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
The state of the reserved compute node.void
setUsagePrice
(Double usagePrice) The hourly rate Amazon Redshift charges you for this reserved node.toString()
Returns a string representation of this object; useful for testing and debugging.withCurrencyCode
(String currencyCode) The currency code for the reserved cluster.withDuration
(Integer duration) The duration of the node reservation in seconds.withFixedPrice
(Double fixedPrice) The fixed cost Amazon Redshift charges you for this reserved node.withNodeCount
(Integer nodeCount) The number of reserved compute nodes.withNodeType
(String nodeType) The node type of the reserved node.withOfferingType
(String offeringType) The anticipated utilization of the reserved node, as defined in the reserved node offering.withRecurringCharges
(RecurringCharge... recurringCharges) The recurring charges for the reserved node.withRecurringCharges
(Collection<RecurringCharge> recurringCharges) The recurring charges for the reserved node.withReservedNodeId
(String reservedNodeId) The unique identifier for the reservation.withReservedNodeOfferingId
(String reservedNodeOfferingId) The identifier for the reserved node offering.withStartTime
(Date startTime) The time the reservation started.The state of the reserved compute node.withUsagePrice
(Double usagePrice) The hourly rate Amazon Redshift charges you for this reserved node.
-
Constructor Details
-
ReservedNode
public ReservedNode()
-
-
Method Details
-
setReservedNodeId
The unique identifier for the reservation.
- Parameters:
reservedNodeId
- The unique identifier for the reservation.
-
getReservedNodeId
The unique identifier for the reservation.
- Returns:
- The unique identifier for the reservation.
-
withReservedNodeId
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
The identifier for the reserved node offering.
- Parameters:
reservedNodeOfferingId
- The identifier for the reserved node offering.
-
getReservedNodeOfferingId
The identifier for the reserved node offering.
- Returns:
- The identifier for the reserved node offering.
-
withReservedNodeOfferingId
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
The node type of the reserved node.
- Parameters:
nodeType
- The node type of the reserved node.
-
getNodeType
The node type of the reserved node.
- Returns:
- The node type of the reserved node.
-
withNodeType
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
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
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
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
The duration of the node reservation in seconds.
- Parameters:
duration
- The duration of the node reservation in seconds.
-
getDuration
The duration of the node reservation in seconds.
- Returns:
- The duration of the node reservation in seconds.
-
withDuration
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
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
The fixed cost Amazon Redshift charges you for this reserved node.
- Returns:
- The fixed cost Amazon Redshift charges you for this reserved node.
-
withFixedPrice
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
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
The hourly rate Amazon Redshift charges you for this reserved node.
- Returns:
- The hourly rate Amazon Redshift charges you for this reserved node.
-
withUsagePrice
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
The currency code for the reserved cluster.
- Parameters:
currencyCode
- The currency code for the reserved cluster.
-
getCurrencyCode
The currency code for the reserved cluster.
- Returns:
- The currency code for the reserved cluster.
-
withCurrencyCode
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
The number of reserved compute nodes.
- Parameters:
nodeCount
- The number of reserved compute nodes.
-
getNodeCount
The number of reserved compute nodes.
- Returns:
- The number of reserved compute nodes.
-
withNodeCount
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
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
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
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
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
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
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
The recurring charges for the reserved node.
- Returns:
- The recurring charges for the reserved node.
-
setRecurringCharges
The recurring charges for the reserved node.
- Parameters:
recurringCharges
- The recurring charges for the reserved node.
-
withRecurringCharges
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-