/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace ElastiCache { namespace Model { /** *

Represents the input of a PurchaseReservedCacheNodesOffering * operation.

See Also:

AWS * API Reference

*/ class PurchaseReservedCacheNodesOfferingRequest : public ElastiCacheRequest { public: AWS_ELASTICACHE_API PurchaseReservedCacheNodesOfferingRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PurchaseReservedCacheNodesOffering"; } AWS_ELASTICACHE_API Aws::String SerializePayload() const override; protected: AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The ID of the reserved cache node offering to purchase.

Example: * 438012d3-4052-4cc7-b2e3-8d3372e0e706

*/ inline const Aws::String& GetReservedCacheNodesOfferingId() const{ return m_reservedCacheNodesOfferingId; } /** *

The ID of the reserved cache node offering to purchase.

Example: * 438012d3-4052-4cc7-b2e3-8d3372e0e706

*/ inline bool ReservedCacheNodesOfferingIdHasBeenSet() const { return m_reservedCacheNodesOfferingIdHasBeenSet; } /** *

The ID of the reserved cache node offering to purchase.

Example: * 438012d3-4052-4cc7-b2e3-8d3372e0e706

*/ inline void SetReservedCacheNodesOfferingId(const Aws::String& value) { m_reservedCacheNodesOfferingIdHasBeenSet = true; m_reservedCacheNodesOfferingId = value; } /** *

The ID of the reserved cache node offering to purchase.

Example: * 438012d3-4052-4cc7-b2e3-8d3372e0e706

*/ inline void SetReservedCacheNodesOfferingId(Aws::String&& value) { m_reservedCacheNodesOfferingIdHasBeenSet = true; m_reservedCacheNodesOfferingId = std::move(value); } /** *

The ID of the reserved cache node offering to purchase.

Example: * 438012d3-4052-4cc7-b2e3-8d3372e0e706

*/ inline void SetReservedCacheNodesOfferingId(const char* value) { m_reservedCacheNodesOfferingIdHasBeenSet = true; m_reservedCacheNodesOfferingId.assign(value); } /** *

The ID of the reserved cache node offering to purchase.

Example: * 438012d3-4052-4cc7-b2e3-8d3372e0e706

*/ inline PurchaseReservedCacheNodesOfferingRequest& WithReservedCacheNodesOfferingId(const Aws::String& value) { SetReservedCacheNodesOfferingId(value); return *this;} /** *

The ID of the reserved cache node offering to purchase.

Example: * 438012d3-4052-4cc7-b2e3-8d3372e0e706

*/ inline PurchaseReservedCacheNodesOfferingRequest& WithReservedCacheNodesOfferingId(Aws::String&& value) { SetReservedCacheNodesOfferingId(std::move(value)); return *this;} /** *

The ID of the reserved cache node offering to purchase.

Example: * 438012d3-4052-4cc7-b2e3-8d3372e0e706

*/ inline PurchaseReservedCacheNodesOfferingRequest& WithReservedCacheNodesOfferingId(const char* value) { SetReservedCacheNodesOfferingId(value); return *this;} /** *

A customer-specified identifier to track this reservation.

The * Reserved Cache Node ID is an unique customer-specified identifier to track this * reservation. If this parameter is not specified, ElastiCache automatically * generates an identifier for the reservation.

Example: * myreservationID

*/ inline const Aws::String& GetReservedCacheNodeId() const{ return m_reservedCacheNodeId; } /** *

A customer-specified identifier to track this reservation.

The * Reserved Cache Node ID is an unique customer-specified identifier to track this * reservation. If this parameter is not specified, ElastiCache automatically * generates an identifier for the reservation.

Example: * myreservationID

*/ inline bool ReservedCacheNodeIdHasBeenSet() const { return m_reservedCacheNodeIdHasBeenSet; } /** *

A customer-specified identifier to track this reservation.

The * Reserved Cache Node ID is an unique customer-specified identifier to track this * reservation. If this parameter is not specified, ElastiCache automatically * generates an identifier for the reservation.

Example: * myreservationID

*/ inline void SetReservedCacheNodeId(const Aws::String& value) { m_reservedCacheNodeIdHasBeenSet = true; m_reservedCacheNodeId = value; } /** *

A customer-specified identifier to track this reservation.

The * Reserved Cache Node ID is an unique customer-specified identifier to track this * reservation. If this parameter is not specified, ElastiCache automatically * generates an identifier for the reservation.

Example: * myreservationID

*/ inline void SetReservedCacheNodeId(Aws::String&& value) { m_reservedCacheNodeIdHasBeenSet = true; m_reservedCacheNodeId = std::move(value); } /** *

A customer-specified identifier to track this reservation.

The * Reserved Cache Node ID is an unique customer-specified identifier to track this * reservation. If this parameter is not specified, ElastiCache automatically * generates an identifier for the reservation.

Example: * myreservationID

*/ inline void SetReservedCacheNodeId(const char* value) { m_reservedCacheNodeIdHasBeenSet = true; m_reservedCacheNodeId.assign(value); } /** *

A customer-specified identifier to track this reservation.

The * Reserved Cache Node ID is an unique customer-specified identifier to track this * reservation. If this parameter is not specified, ElastiCache automatically * generates an identifier for the reservation.

Example: * myreservationID

*/ inline PurchaseReservedCacheNodesOfferingRequest& WithReservedCacheNodeId(const Aws::String& value) { SetReservedCacheNodeId(value); return *this;} /** *

A customer-specified identifier to track this reservation.

The * Reserved Cache Node ID is an unique customer-specified identifier to track this * reservation. If this parameter is not specified, ElastiCache automatically * generates an identifier for the reservation.

Example: * myreservationID

*/ inline PurchaseReservedCacheNodesOfferingRequest& WithReservedCacheNodeId(Aws::String&& value) { SetReservedCacheNodeId(std::move(value)); return *this;} /** *

A customer-specified identifier to track this reservation.

The * Reserved Cache Node ID is an unique customer-specified identifier to track this * reservation. If this parameter is not specified, ElastiCache automatically * generates an identifier for the reservation.

Example: * myreservationID

*/ inline PurchaseReservedCacheNodesOfferingRequest& WithReservedCacheNodeId(const char* value) { SetReservedCacheNodeId(value); return *this;} /** *

The number of cache node instances to reserve.

Default: 1 *

*/ inline int GetCacheNodeCount() const{ return m_cacheNodeCount; } /** *

The number of cache node instances to reserve.

Default: 1 *

*/ inline bool CacheNodeCountHasBeenSet() const { return m_cacheNodeCountHasBeenSet; } /** *

The number of cache node instances to reserve.

Default: 1 *

*/ inline void SetCacheNodeCount(int value) { m_cacheNodeCountHasBeenSet = true; m_cacheNodeCount = value; } /** *

The number of cache node instances to reserve.

Default: 1 *

*/ inline PurchaseReservedCacheNodesOfferingRequest& WithCacheNodeCount(int value) { SetCacheNodeCount(value); return *this;} /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline PurchaseReservedCacheNodesOfferingRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline PurchaseReservedCacheNodesOfferingRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline PurchaseReservedCacheNodesOfferingRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of tags to be added to this resource. A tag is a key-value pair. A tag * key must be accompanied by a tag value, although null is accepted.

*/ inline PurchaseReservedCacheNodesOfferingRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_reservedCacheNodesOfferingId; bool m_reservedCacheNodesOfferingIdHasBeenSet = false; Aws::String m_reservedCacheNodeId; bool m_reservedCacheNodeIdHasBeenSet = false; int m_cacheNodeCount; bool m_cacheNodeCountHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws