/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.redshift.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* Describes a reserved node offering. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ReservedNodeOffering implements Serializable, Cloneable { /** ** The offering identifier. *
*/ private String reservedNodeOfferingId; /** ** The node type offered by the reserved node offering. *
*/ private String nodeType; /** ** The duration, in seconds, for which the offering will reserve the node. *
*/ private Integer duration; /** ** The upfront fixed charge you will pay to purchase the specific reserved node offering. *
*/ private Double fixedPrice; /** ** The rate you are charged for each hour the cluster that is using the offering is running. *
*/ private Double usagePrice; /** ** The currency code for the compute nodes offering. *
*/ private String currencyCode; /** ** The anticipated utilization of the reserved node, as defined in the reserved node offering. *
*/ private String offeringType; /** ** 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. *
*/ private com.amazonaws.internal.SdkInternalList* The offering identifier. *
* * @param reservedNodeOfferingId * The offering identifier. */ public void setReservedNodeOfferingId(String reservedNodeOfferingId) { this.reservedNodeOfferingId = reservedNodeOfferingId; } /** ** The offering identifier. *
* * @return The offering identifier. */ public String getReservedNodeOfferingId() { return this.reservedNodeOfferingId; } /** ** The offering identifier. *
* * @param reservedNodeOfferingId * The offering identifier. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservedNodeOffering withReservedNodeOfferingId(String reservedNodeOfferingId) { setReservedNodeOfferingId(reservedNodeOfferingId); return this; } /** ** The node type offered by the reserved node offering. *
* * @param nodeType * The node type offered by the reserved node offering. */ public void setNodeType(String nodeType) { this.nodeType = nodeType; } /** ** The node type offered by the reserved node offering. *
* * @return The node type offered by the reserved node offering. */ public String getNodeType() { return this.nodeType; } /** ** The node type offered by the reserved node offering. *
* * @param nodeType * The node type offered by the reserved node offering. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservedNodeOffering withNodeType(String nodeType) { setNodeType(nodeType); return this; } /** ** The duration, in seconds, for which the offering will reserve the node. *
* * @param duration * The duration, in seconds, for which the offering will reserve the node. */ public void setDuration(Integer duration) { this.duration = duration; } /** ** The duration, in seconds, for which the offering will reserve the node. *
* * @return The duration, in seconds, for which the offering will reserve the node. */ public Integer getDuration() { return this.duration; } /** ** The duration, in seconds, for which the offering will reserve the node. *
* * @param duration * The duration, in seconds, for which the offering will reserve the node. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservedNodeOffering withDuration(Integer duration) { setDuration(duration); return this; } /** ** The upfront fixed charge you will pay to purchase the specific reserved node offering. *
* * @param fixedPrice * The upfront fixed charge you will pay to purchase the specific reserved node offering. */ public void setFixedPrice(Double fixedPrice) { this.fixedPrice = fixedPrice; } /** ** The upfront fixed charge you will pay to purchase the specific reserved node offering. *
* * @return The upfront fixed charge you will pay to purchase the specific reserved node offering. */ public Double getFixedPrice() { return this.fixedPrice; } /** ** The upfront fixed charge you will pay to purchase the specific reserved node offering. *
* * @param fixedPrice * The upfront fixed charge you will pay to purchase the specific reserved node offering. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservedNodeOffering withFixedPrice(Double fixedPrice) { setFixedPrice(fixedPrice); return this; } /** ** The rate you are charged for each hour the cluster that is using the offering is running. *
* * @param usagePrice * The rate you are charged for each hour the cluster that is using the offering is running. */ public void setUsagePrice(Double usagePrice) { this.usagePrice = usagePrice; } /** ** The rate you are charged for each hour the cluster that is using the offering is running. *
* * @return The rate you are charged for each hour the cluster that is using the offering is running. */ public Double getUsagePrice() { return this.usagePrice; } /** ** The rate you are charged for each hour the cluster that is using the offering is running. *
* * @param usagePrice * The rate you are charged for each hour the cluster that is using the offering is running. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservedNodeOffering withUsagePrice(Double usagePrice) { setUsagePrice(usagePrice); return this; } /** ** The currency code for the compute nodes offering. *
* * @param currencyCode * The currency code for the compute nodes offering. */ public void setCurrencyCode(String currencyCode) { this.currencyCode = currencyCode; } /** ** The currency code for the compute nodes offering. *
* * @return The currency code for the compute nodes offering. */ public String getCurrencyCode() { return this.currencyCode; } /** ** The currency code for the compute nodes offering. *
* * @param currencyCode * The currency code for the compute nodes offering. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservedNodeOffering withCurrencyCode(String currencyCode) { setCurrencyCode(currencyCode); return this; } /** ** The anticipated utilization of the reserved node, as defined in the reserved node offering. *
* * @param offeringType * The anticipated utilization of the reserved node, as defined in the reserved node offering. */ public void setOfferingType(String offeringType) { this.offeringType = offeringType; } /** ** The anticipated utilization of the reserved node, as defined in the reserved node offering. *
* * @return The anticipated utilization of the reserved node, as defined in the reserved node offering. */ public String getOfferingType() { return this.offeringType; } /** ** The anticipated utilization of the reserved node, as defined in the reserved node offering. *
* * @param offeringType * The anticipated utilization of the reserved node, as defined in the reserved node offering. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservedNodeOffering withOfferingType(String offeringType) { setOfferingType(offeringType); return this; } /** ** 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. *
* * @return 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.util.List* 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. *
* * @param 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 setRecurringCharges(java.util.Collection* 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 * {@link #setRecurringCharges(java.util.Collection)} or {@link #withRecurringCharges(java.util.Collection)} if you * want to override the existing values. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservedNodeOffering withRecurringCharges(RecurringCharge... recurringCharges) { if (this.recurringCharges == null) { setRecurringCharges(new com.amazonaws.internal.SdkInternalList* 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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservedNodeOffering withRecurringCharges(java.util.Collection