/** * 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 MemoryDB { namespace Model { /** */ class PurchaseReservedNodesOfferingRequest : public MemoryDBRequest { public: AWS_MEMORYDB_API PurchaseReservedNodesOfferingRequest(); // 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 "PurchaseReservedNodesOffering"; } AWS_MEMORYDB_API Aws::String SerializePayload() const override; AWS_MEMORYDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the reserved node offering to purchase.

*/ inline const Aws::String& GetReservedNodesOfferingId() const{ return m_reservedNodesOfferingId; } /** *

The ID of the reserved node offering to purchase.

*/ inline bool ReservedNodesOfferingIdHasBeenSet() const { return m_reservedNodesOfferingIdHasBeenSet; } /** *

The ID of the reserved node offering to purchase.

*/ inline void SetReservedNodesOfferingId(const Aws::String& value) { m_reservedNodesOfferingIdHasBeenSet = true; m_reservedNodesOfferingId = value; } /** *

The ID of the reserved node offering to purchase.

*/ inline void SetReservedNodesOfferingId(Aws::String&& value) { m_reservedNodesOfferingIdHasBeenSet = true; m_reservedNodesOfferingId = std::move(value); } /** *

The ID of the reserved node offering to purchase.

*/ inline void SetReservedNodesOfferingId(const char* value) { m_reservedNodesOfferingIdHasBeenSet = true; m_reservedNodesOfferingId.assign(value); } /** *

The ID of the reserved node offering to purchase.

*/ inline PurchaseReservedNodesOfferingRequest& WithReservedNodesOfferingId(const Aws::String& value) { SetReservedNodesOfferingId(value); return *this;} /** *

The ID of the reserved node offering to purchase.

*/ inline PurchaseReservedNodesOfferingRequest& WithReservedNodesOfferingId(Aws::String&& value) { SetReservedNodesOfferingId(std::move(value)); return *this;} /** *

The ID of the reserved node offering to purchase.

*/ inline PurchaseReservedNodesOfferingRequest& WithReservedNodesOfferingId(const char* value) { SetReservedNodesOfferingId(value); return *this;} /** *

A customer-specified identifier to track this reservation.

*/ inline const Aws::String& GetReservationId() const{ return m_reservationId; } /** *

A customer-specified identifier to track this reservation.

*/ inline bool ReservationIdHasBeenSet() const { return m_reservationIdHasBeenSet; } /** *

A customer-specified identifier to track this reservation.

*/ inline void SetReservationId(const Aws::String& value) { m_reservationIdHasBeenSet = true; m_reservationId = value; } /** *

A customer-specified identifier to track this reservation.

*/ inline void SetReservationId(Aws::String&& value) { m_reservationIdHasBeenSet = true; m_reservationId = std::move(value); } /** *

A customer-specified identifier to track this reservation.

*/ inline void SetReservationId(const char* value) { m_reservationIdHasBeenSet = true; m_reservationId.assign(value); } /** *

A customer-specified identifier to track this reservation.

*/ inline PurchaseReservedNodesOfferingRequest& WithReservationId(const Aws::String& value) { SetReservationId(value); return *this;} /** *

A customer-specified identifier to track this reservation.

*/ inline PurchaseReservedNodesOfferingRequest& WithReservationId(Aws::String&& value) { SetReservationId(std::move(value)); return *this;} /** *

A customer-specified identifier to track this reservation.

*/ inline PurchaseReservedNodesOfferingRequest& WithReservationId(const char* value) { SetReservationId(value); return *this;} /** *

The number of node instances to reserve.

*/ inline int GetNodeCount() const{ return m_nodeCount; } /** *

The number of node instances to reserve.

*/ inline bool NodeCountHasBeenSet() const { return m_nodeCountHasBeenSet; } /** *

The number of node instances to reserve.

*/ inline void SetNodeCount(int value) { m_nodeCountHasBeenSet = true; m_nodeCount = value; } /** *

The number of node instances to reserve.

*/ inline PurchaseReservedNodesOfferingRequest& WithNodeCount(int value) { SetNodeCount(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 PurchaseReservedNodesOfferingRequest& 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 PurchaseReservedNodesOfferingRequest& 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 PurchaseReservedNodesOfferingRequest& 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 PurchaseReservedNodesOfferingRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_reservedNodesOfferingId; bool m_reservedNodesOfferingIdHasBeenSet = false; Aws::String m_reservationId; bool m_reservationIdHasBeenSet = false; int m_nodeCount; bool m_nodeCountHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace MemoryDB } // namespace Aws