Interface ReservedNode.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ReservedNode.Builder,
,ReservedNode> SdkBuilder<ReservedNode.Builder,
,ReservedNode> SdkPojo
- Enclosing class:
ReservedNode
-
Method Summary
Modifier and TypeMethodDescriptioncurrencyCode
(String currencyCode) The currency code for the reserved cluster.The duration of the node reservation in seconds.fixedPrice
(Double fixedPrice) The fixed cost Amazon Redshift charges you for this reserved node.The number of reserved compute nodes.The node type of the reserved node.offeringType
(String offeringType) The anticipated utilization of the reserved node, as defined in the reserved node offering.recurringCharges
(Collection<RecurringCharge> recurringCharges) The recurring charges for the reserved node.recurringCharges
(Consumer<RecurringCharge.Builder>... recurringCharges) The recurring charges for the reserved node.recurringCharges
(RecurringCharge... recurringCharges) The recurring charges for the reserved node.reservedNodeId
(String reservedNodeId) The unique identifier for the reservation.reservedNodeOfferingId
(String reservedNodeOfferingId) The identifier for the reserved node offering.reservedNodeOfferingType
(String reservedNodeOfferingType) reservedNodeOfferingType
(ReservedNodeOfferingType reservedNodeOfferingType) The time the reservation started.The state of the reserved compute node.usagePrice
(Double usagePrice) The hourly rate Amazon Redshift charges you for this reserved node.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
retired-The reserved node is no longer available.
-
exchanging-The owner is exchanging the reserved node for another reserved node.
- 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.
-
retired-The reserved node is no longer available.
-
exchanging-The owner is exchanging the reserved node for another reserved node.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
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.
-
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.
-
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.
-
recurringCharges
The recurring charges for the reserved node.
This is a convenience method that creates an instance of theRecurringCharge.Builder
avoiding the need to create one manually viaRecurringCharge.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torecurringCharges(List<RecurringCharge>)
.- Parameters:
recurringCharges
- a consumer that will call methods onRecurringCharge.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reservedNodeOfferingType
- Parameters:
reservedNodeOfferingType
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reservedNodeOfferingType
- Parameters:
reservedNodeOfferingType
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-