@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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.
Constructor and Description |
---|
ReservedNode() |
Modifier and Type | Method and Description |
---|---|
ReservedNode |
clone() |
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 charges 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 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 |
setState(String state)
The state of the reserved compute node.
|
void |
setUsagePrice(Double usagePrice)
The hourly rate Amazon Redshift charges 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 charges 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 charges you for this reserved node.
|
public void setReservedNodeId(String reservedNodeId)
The unique identifier for the reservation.
reservedNodeId
- The unique identifier for the reservation.public String getReservedNodeId()
The unique identifier for the reservation.
public ReservedNode withReservedNodeId(String reservedNodeId)
The unique identifier for the reservation.
reservedNodeId
- The unique identifier for the reservation.public void setReservedNodeOfferingId(String reservedNodeOfferingId)
The identifier for the reserved node offering.
reservedNodeOfferingId
- The identifier for the reserved node offering.public String getReservedNodeOfferingId()
The identifier for the reserved node offering.
public ReservedNode withReservedNodeOfferingId(String reservedNodeOfferingId)
The identifier for the reserved node offering.
reservedNodeOfferingId
- The identifier for the reserved node offering.public void setNodeType(String nodeType)
The node type of the reserved node.
nodeType
- The node type of the reserved node.public String getNodeType()
The node type of the reserved node.
public ReservedNode withNodeType(String nodeType)
The node type of the reserved node.
nodeType
- The node type of the reserved node.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.
startTime
- The time the reservation started. You purchase a reserved node offering for a duration. This is the start
time of that duration.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.
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.
startTime
- The time the reservation started. You purchase a reserved node offering for a duration. This is the start
time of that duration.public void setDuration(Integer duration)
The duration of the node reservation in seconds.
duration
- The duration of the node reservation in seconds.public Integer getDuration()
The duration of the node reservation in seconds.
public ReservedNode withDuration(Integer duration)
The duration of the node reservation in seconds.
duration
- The duration of the node reservation in seconds.public void setFixedPrice(Double fixedPrice)
The fixed cost Amazon Redshift charges you for this reserved node.
fixedPrice
- The fixed cost Amazon Redshift charges you for this reserved node.public Double getFixedPrice()
The fixed cost Amazon Redshift charges you for this reserved node.
public ReservedNode withFixedPrice(Double fixedPrice)
The fixed cost Amazon Redshift charges you for this reserved node.
fixedPrice
- The fixed cost Amazon Redshift charges you for this reserved node.public void setUsagePrice(Double usagePrice)
The hourly rate Amazon Redshift charges you for this reserved node.
usagePrice
- The hourly rate Amazon Redshift charges you for this reserved node.public Double getUsagePrice()
The hourly rate Amazon Redshift charges you for this reserved node.
public ReservedNode withUsagePrice(Double usagePrice)
The hourly rate Amazon Redshift charges you for this reserved node.
usagePrice
- The hourly rate Amazon Redshift charges you for this reserved node.public void setCurrencyCode(String currencyCode)
The currency code for the reserved cluster.
currencyCode
- The currency code for the reserved cluster.public String getCurrencyCode()
The currency code for the reserved cluster.
public ReservedNode withCurrencyCode(String currencyCode)
The currency code for the reserved cluster.
currencyCode
- The currency code for the reserved cluster.public void setNodeCount(Integer nodeCount)
The number of reserved compute nodes.
nodeCount
- The number of reserved compute nodes.public Integer getNodeCount()
The number of reserved compute nodes.
public ReservedNode withNodeCount(Integer nodeCount)
The number of reserved compute nodes.
nodeCount
- The number of reserved compute nodes.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.
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.
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.
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.
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.
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.
public void setOfferingType(String offeringType)
The anticipated utilization of the reserved node, as defined in the reserved node offering.
offeringType
- The anticipated utilization of the reserved node, as defined in the reserved node offering.public String getOfferingType()
The anticipated utilization of the reserved node, as defined in the reserved node offering.
public ReservedNode withOfferingType(String offeringType)
The anticipated utilization of the reserved node, as defined in the reserved node offering.
offeringType
- The anticipated utilization of the reserved node, as defined in the reserved node offering.public List<RecurringCharge> getRecurringCharges()
The recurring charges for the reserved node.
public void setRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charges for the reserved node.
recurringCharges
- The recurring charges for the reserved node.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)
or withRecurringCharges(java.util.Collection)
if you
want to override the existing values.
recurringCharges
- The recurring charges for the reserved node.public ReservedNode withRecurringCharges(Collection<RecurringCharge> recurringCharges)
The recurring charges for the reserved node.
recurringCharges
- The recurring charges for the reserved node.public String toString()
toString
in class Object
Object.toString()
public ReservedNode clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.