public class ReservedNodeOffering
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a reserved node offering.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
currencyCode
The currency code for the compute nodes offering.
|
private java.lang.Integer |
duration
The duration, in seconds, for which the offering will reserve the node.
|
private java.lang.Double |
fixedPrice
The upfront fixed charge you will pay to purchase the specific reserved
node offering.
|
private java.lang.String |
nodeType
The node type offered by the reserved node offering.
|
private java.lang.String |
offeringType
The anticipated utilization of the reserved node, as defined in the
reserved node offering.
|
private SdkInternalList<RecurringCharge> |
recurringCharges
The charge to your account regardless of whether you are creating any
clusters using the node offering.
|
private java.lang.String |
reservedNodeOfferingId
The offering identifier.
|
private java.lang.Double |
usagePrice
The rate you are charged for each hour the cluster that is using the
offering is running.
|
Constructor and Description |
---|
ReservedNodeOffering() |
Modifier and Type | Method and Description |
---|---|
ReservedNodeOffering |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCurrencyCode()
The currency code for the compute nodes offering.
|
java.lang.Integer |
getDuration()
The duration, in seconds, for which the offering will reserve the node.
|
java.lang.Double |
getFixedPrice()
The upfront fixed charge you will pay to purchase the specific reserved
node offering.
|
java.lang.String |
getNodeType()
The node type offered by the reserved node offering.
|
java.lang.String |
getOfferingType()
The anticipated utilization of the reserved node, as defined in the
reserved node offering.
|
java.util.List<RecurringCharge> |
getRecurringCharges()
The charge to your account regardless of whether you are creating any
clusters using the node offering.
|
java.lang.String |
getReservedNodeOfferingId()
The offering identifier.
|
java.lang.Double |
getUsagePrice()
The rate you are charged for each hour the cluster that is using the
offering is running.
|
int |
hashCode() |
void |
setCurrencyCode(java.lang.String currencyCode)
The currency code for the compute nodes offering.
|
void |
setDuration(java.lang.Integer duration)
The duration, in seconds, for which the offering will reserve the node.
|
void |
setFixedPrice(java.lang.Double fixedPrice)
The upfront fixed charge you will pay to purchase the specific reserved
node offering.
|
void |
setNodeType(java.lang.String nodeType)
The node type offered by the reserved node offering.
|
void |
setOfferingType(java.lang.String offeringType)
The anticipated utilization of the reserved node, as defined in the
reserved node offering.
|
void |
setRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
The charge to your account regardless of whether you are creating any
clusters using the node offering.
|
void |
setReservedNodeOfferingId(java.lang.String reservedNodeOfferingId)
The offering identifier.
|
void |
setUsagePrice(java.lang.Double usagePrice)
The rate you are charged for each hour the cluster that is using the
offering is running.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReservedNodeOffering |
withCurrencyCode(java.lang.String currencyCode)
The currency code for the compute nodes offering.
|
ReservedNodeOffering |
withDuration(java.lang.Integer duration)
The duration, in seconds, for which the offering will reserve the node.
|
ReservedNodeOffering |
withFixedPrice(java.lang.Double fixedPrice)
The upfront fixed charge you will pay to purchase the specific reserved
node offering.
|
ReservedNodeOffering |
withNodeType(java.lang.String nodeType)
The node type offered by the reserved node offering.
|
ReservedNodeOffering |
withOfferingType(java.lang.String offeringType)
The anticipated utilization of the reserved node, as defined in the
reserved node offering.
|
ReservedNodeOffering |
withRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
The charge to your account regardless of whether you are creating any
clusters using the node offering.
|
ReservedNodeOffering |
withRecurringCharges(RecurringCharge... recurringCharges)
The charge to your account regardless of whether you are creating any
clusters using the node offering.
|
ReservedNodeOffering |
withReservedNodeOfferingId(java.lang.String reservedNodeOfferingId)
The offering identifier.
|
ReservedNodeOffering |
withUsagePrice(java.lang.Double usagePrice)
The rate you are charged for each hour the cluster that is using the
offering is running.
|
private java.lang.String reservedNodeOfferingId
The offering identifier.
private java.lang.String nodeType
The node type offered by the reserved node offering.
private java.lang.Integer duration
The duration, in seconds, for which the offering will reserve the node.
private java.lang.Double fixedPrice
The upfront fixed charge you will pay to purchase the specific reserved node offering.
private java.lang.Double usagePrice
The rate you are charged for each hour the cluster that is using the offering is running.
private java.lang.String currencyCode
The currency code for the compute nodes offering.
private java.lang.String offeringType
The anticipated utilization of the reserved node, as defined in the reserved node offering.
private SdkInternalList<RecurringCharge> recurringCharges
The charge to your account regardless of whether you are creating any clusters using the node offering. Recurring charges are only in effect for heavy-utilization reserved nodes.
public void setReservedNodeOfferingId(java.lang.String reservedNodeOfferingId)
The offering identifier.
reservedNodeOfferingId
- The offering identifier.public java.lang.String getReservedNodeOfferingId()
The offering identifier.
public ReservedNodeOffering withReservedNodeOfferingId(java.lang.String reservedNodeOfferingId)
The offering identifier.
reservedNodeOfferingId
- The offering identifier.public void setNodeType(java.lang.String nodeType)
The node type offered by the reserved node offering.
nodeType
- The node type offered by the reserved node offering.public java.lang.String getNodeType()
The node type offered by the reserved node offering.
public ReservedNodeOffering withNodeType(java.lang.String nodeType)
The node type offered by the reserved node offering.
nodeType
- The node type offered by the reserved node offering.public void setDuration(java.lang.Integer duration)
The duration, in seconds, for which the offering will reserve the node.
duration
- The duration, in seconds, for which the offering will reserve the
node.public java.lang.Integer getDuration()
The duration, in seconds, for which the offering will reserve the node.
public ReservedNodeOffering withDuration(java.lang.Integer duration)
The duration, in seconds, for which the offering will reserve the node.
duration
- The duration, in seconds, for which the offering will reserve the
node.public void setFixedPrice(java.lang.Double fixedPrice)
The upfront fixed charge you will pay to purchase the specific reserved node offering.
fixedPrice
- The upfront fixed charge you will pay to purchase the specific
reserved node offering.public java.lang.Double getFixedPrice()
The upfront fixed charge you will pay to purchase the specific reserved node offering.
public ReservedNodeOffering withFixedPrice(java.lang.Double fixedPrice)
The upfront fixed charge you will pay to purchase the specific reserved node offering.
fixedPrice
- The upfront fixed charge you will pay to purchase the specific
reserved node offering.public void setUsagePrice(java.lang.Double usagePrice)
The rate you are charged for each hour the cluster that is using the offering is running.
usagePrice
- The rate you are charged for each hour the cluster that is using
the offering is running.public java.lang.Double getUsagePrice()
The rate you are charged for each hour the cluster that is using the offering is running.
public ReservedNodeOffering withUsagePrice(java.lang.Double usagePrice)
The rate you are charged for each hour the cluster that is using the offering is running.
usagePrice
- The rate you are charged for each hour the cluster that is using
the offering is running.public void setCurrencyCode(java.lang.String currencyCode)
The currency code for the compute nodes offering.
currencyCode
- The currency code for the compute nodes offering.public java.lang.String getCurrencyCode()
The currency code for the compute nodes offering.
public ReservedNodeOffering withCurrencyCode(java.lang.String currencyCode)
The currency code for the compute nodes offering.
currencyCode
- The currency code for the compute nodes offering.public void setOfferingType(java.lang.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 java.lang.String getOfferingType()
The anticipated utilization of the reserved node, as defined in the reserved node offering.
public ReservedNodeOffering withOfferingType(java.lang.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 java.util.List<RecurringCharge> getRecurringCharges()
The charge to your account regardless of whether you are creating any clusters using the node offering. Recurring charges are only in effect for heavy-utilization reserved nodes.
public void setRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
The charge to your account regardless of whether you are creating any clusters using the node offering. Recurring charges are only in effect for heavy-utilization reserved nodes.
recurringCharges
- The charge to your account regardless of whether you are creating
any clusters using the node offering. Recurring charges are only
in effect for heavy-utilization reserved nodes.public ReservedNodeOffering withRecurringCharges(RecurringCharge... recurringCharges)
The charge to your account regardless of whether you are creating any clusters using the node offering. Recurring charges are only in effect for heavy-utilization reserved nodes.
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 charge to your account regardless of whether you are creating
any clusters using the node offering. Recurring charges are only
in effect for heavy-utilization reserved nodes.public ReservedNodeOffering withRecurringCharges(java.util.Collection<RecurringCharge> recurringCharges)
The charge to your account regardless of whether you are creating any clusters using the node offering. Recurring charges are only in effect for heavy-utilization reserved nodes.
recurringCharges
- The charge to your account regardless of whether you are creating
any clusters using the node offering. Recurring charges are only
in effect for heavy-utilization reserved nodes.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ReservedNodeOffering clone()
clone
in class java.lang.Object