/* * 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.elasticache.model; import java.io.Serializable; import javax.annotation.Generated; /** *

* Represents the output of a PurchaseReservedCacheNodesOffering operation. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ReservedCacheNode implements Serializable, Cloneable { /** *

* The unique identifier for the reservation. *

*/ private String reservedCacheNodeId; /** *

* The offering identifier. *

*/ private String reservedCacheNodesOfferingId; /** *

* The cache node type for the reserved cache nodes. *

*

* The following node types are supported by ElastiCache. Generally speaking, the current generation types provide * more memory and computational power at lower cost when compared to their equivalent previous generation * counterparts. *

* *

* Additional node type info *

* */ private String cacheNodeType; /** *

* The time the reservation started. *

*/ private java.util.Date startTime; /** *

* The duration of the reservation in seconds. *

*/ private Integer duration; /** *

* The fixed price charged for this reserved cache node. *

*/ private Double fixedPrice; /** *

* The hourly price charged for this reserved cache node. *

*/ private Double usagePrice; /** *

* The number of cache nodes that have been reserved. *

*/ private Integer cacheNodeCount; /** *

* The description of the reserved cache node. *

*/ private String productDescription; /** *

* The offering type of this reserved cache node. *

*/ private String offeringType; /** *

* The state of the reserved cache node. *

*/ private String state; /** *

* The recurring price charged to run this reserved cache node. *

*/ private com.amazonaws.internal.SdkInternalList recurringCharges; /** *

* The Amazon Resource Name (ARN) of the reserved cache node. *

*

* Example: arn:aws:elasticache:us-east-1:123456789012:reserved-instance:ri-2017-03-27-08-33-25-582 *

*/ private String reservationARN; /** *

* The unique identifier for the reservation. *

* * @param reservedCacheNodeId * The unique identifier for the reservation. */ public void setReservedCacheNodeId(String reservedCacheNodeId) { this.reservedCacheNodeId = reservedCacheNodeId; } /** *

* The unique identifier for the reservation. *

* * @return The unique identifier for the reservation. */ public String getReservedCacheNodeId() { return this.reservedCacheNodeId; } /** *

* The unique identifier for the reservation. *

* * @param reservedCacheNodeId * The unique identifier for the reservation. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservedCacheNode withReservedCacheNodeId(String reservedCacheNodeId) { setReservedCacheNodeId(reservedCacheNodeId); return this; } /** *

* The offering identifier. *

* * @param reservedCacheNodesOfferingId * The offering identifier. */ public void setReservedCacheNodesOfferingId(String reservedCacheNodesOfferingId) { this.reservedCacheNodesOfferingId = reservedCacheNodesOfferingId; } /** *

* The offering identifier. *

* * @return The offering identifier. */ public String getReservedCacheNodesOfferingId() { return this.reservedCacheNodesOfferingId; } /** *

* The offering identifier. *

* * @param reservedCacheNodesOfferingId * The offering identifier. * @return Returns a reference to this object so that method calls can be chained together. */ public ReservedCacheNode withReservedCacheNodesOfferingId(String reservedCacheNodesOfferingId) { setReservedCacheNodesOfferingId(reservedCacheNodesOfferingId); return this; } /** *

* The cache node type for the reserved cache nodes. *

*

* The following node types are supported by ElastiCache. Generally speaking, the current generation types provide * more memory and computational power at lower cost when compared to their equivalent previous generation * counterparts. *

* *

* Additional node type info *

* * * @param cacheNodeType * The cache node type for the reserved cache nodes.

*

* The following node types are supported by ElastiCache. Generally speaking, the current generation types * provide more memory and computational power at lower cost when compared to their equivalent previous * generation counterparts. *

* *

* Additional node type info *

*