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

An optional marker returned from a prior request. Use this marker for * pagination of results from this operation. If this parameter is specified, the * response includes only records beyond the marker, up to the value specified by * MaxRecords.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

An optional marker returned from a prior request. Use this marker for * pagination of results from this operation. If this parameter is specified, the * response includes only records beyond the marker, up to the value specified by * MaxRecords.

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

An optional marker returned from a prior request. Use this marker for * pagination of results from this operation. If this parameter is specified, the * response includes only records beyond the marker, up to the value specified by * MaxRecords.

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

An optional marker returned from a prior request. Use this marker for * pagination of results from this operation. If this parameter is specified, the * response includes only records beyond the marker, up to the value specified by * MaxRecords.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

An optional marker returned from a prior request. Use this marker for * pagination of results from this operation. If this parameter is specified, the * response includes only records beyond the marker, up to the value specified by * MaxRecords.

*/ inline DescribeReservedNodesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

An optional marker returned from a prior request. Use this marker for * pagination of results from this operation. If this parameter is specified, the * response includes only records beyond the marker, up to the value specified by * MaxRecords.

*/ inline DescribeReservedNodesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

An optional marker returned from a prior request. Use this marker for * pagination of results from this operation. If this parameter is specified, the * response includes only records beyond the marker, up to the value specified by * MaxRecords.

*/ inline DescribeReservedNodesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

Returns information about reserved nodes for this account, or about a * specified reserved node.

*/ inline const Aws::Vector& GetReservedNodes() const{ return m_reservedNodes; } /** *

Returns information about reserved nodes for this account, or about a * specified reserved node.

*/ inline void SetReservedNodes(const Aws::Vector& value) { m_reservedNodes = value; } /** *

Returns information about reserved nodes for this account, or about a * specified reserved node.

*/ inline void SetReservedNodes(Aws::Vector&& value) { m_reservedNodes = std::move(value); } /** *

Returns information about reserved nodes for this account, or about a * specified reserved node.

*/ inline DescribeReservedNodesResult& WithReservedNodes(const Aws::Vector& value) { SetReservedNodes(value); return *this;} /** *

Returns information about reserved nodes for this account, or about a * specified reserved node.

*/ inline DescribeReservedNodesResult& WithReservedNodes(Aws::Vector&& value) { SetReservedNodes(std::move(value)); return *this;} /** *

Returns information about reserved nodes for this account, or about a * specified reserved node.

*/ inline DescribeReservedNodesResult& AddReservedNodes(const ReservedNode& value) { m_reservedNodes.push_back(value); return *this; } /** *

Returns information about reserved nodes for this account, or about a * specified reserved node.

*/ inline DescribeReservedNodesResult& AddReservedNodes(ReservedNode&& value) { m_reservedNodes.push_back(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 DescribeReservedNodesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeReservedNodesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeReservedNodesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_nextToken; Aws::Vector m_reservedNodes; Aws::String m_requestId; }; } // namespace Model } // namespace MemoryDB } // namespace Aws