/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace MemoryDB { namespace Model { class PurchaseReservedNodesOfferingResult { public: AWS_MEMORYDB_API PurchaseReservedNodesOfferingResult(); AWS_MEMORYDB_API PurchaseReservedNodesOfferingResult(const Aws::AmazonWebServiceResult& result); AWS_MEMORYDB_API PurchaseReservedNodesOfferingResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Represents the output of a PurchaseReservedNodesOffering * operation.

*/ inline const ReservedNode& GetReservedNode() const{ return m_reservedNode; } /** *

Represents the output of a PurchaseReservedNodesOffering * operation.

*/ inline void SetReservedNode(const ReservedNode& value) { m_reservedNode = value; } /** *

Represents the output of a PurchaseReservedNodesOffering * operation.

*/ inline void SetReservedNode(ReservedNode&& value) { m_reservedNode = std::move(value); } /** *

Represents the output of a PurchaseReservedNodesOffering * operation.

*/ inline PurchaseReservedNodesOfferingResult& WithReservedNode(const ReservedNode& value) { SetReservedNode(value); return *this;} /** *

Represents the output of a PurchaseReservedNodesOffering * operation.

*/ inline PurchaseReservedNodesOfferingResult& WithReservedNode(ReservedNode&& value) { SetReservedNode(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline PurchaseReservedNodesOfferingResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PurchaseReservedNodesOfferingResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PurchaseReservedNodesOfferingResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: ReservedNode m_reservedNode; Aws::String m_requestId; }; } // namespace Model } // namespace MemoryDB } // namespace Aws