/** * 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 QLDB { namespace Model { class ListLedgersResult { public: AWS_QLDB_API ListLedgersResult(); AWS_QLDB_API ListLedgersResult(const Aws::AmazonWebServiceResult& result); AWS_QLDB_API ListLedgersResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ledgers that are associated with the current Amazon Web Services account * and Region.

*/ inline const Aws::Vector& GetLedgers() const{ return m_ledgers; } /** *

The ledgers that are associated with the current Amazon Web Services account * and Region.

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

The ledgers that are associated with the current Amazon Web Services account * and Region.

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

The ledgers that are associated with the current Amazon Web Services account * and Region.

*/ inline ListLedgersResult& WithLedgers(const Aws::Vector& value) { SetLedgers(value); return *this;} /** *

The ledgers that are associated with the current Amazon Web Services account * and Region.

*/ inline ListLedgersResult& WithLedgers(Aws::Vector&& value) { SetLedgers(std::move(value)); return *this;} /** *

The ledgers that are associated with the current Amazon Web Services account * and Region.

*/ inline ListLedgersResult& AddLedgers(const LedgerSummary& value) { m_ledgers.push_back(value); return *this; } /** *

The ledgers that are associated with the current Amazon Web Services account * and Region.

*/ inline ListLedgersResult& AddLedgers(LedgerSummary&& value) { m_ledgers.push_back(std::move(value)); return *this; } /** *

A pagination token, indicating whether there are more results available:

*
  • If NextToken is empty, then the last page of results * has been processed and there are no more results to be retrieved.

  • *

    If NextToken is not empty, then there are more results * available. To retrieve the next page of results, use the value of * NextToken in a subsequent ListLedgers call.

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

A pagination token, indicating whether there are more results available:

*
  • If NextToken is empty, then the last page of results * has been processed and there are no more results to be retrieved.

  • *

    If NextToken is not empty, then there are more results * available. To retrieve the next page of results, use the value of * NextToken in a subsequent ListLedgers call.

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

A pagination token, indicating whether there are more results available:

*
  • If NextToken is empty, then the last page of results * has been processed and there are no more results to be retrieved.

  • *

    If NextToken is not empty, then there are more results * available. To retrieve the next page of results, use the value of * NextToken in a subsequent ListLedgers call.

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

A pagination token, indicating whether there are more results available:

*
  • If NextToken is empty, then the last page of results * has been processed and there are no more results to be retrieved.

  • *

    If NextToken is not empty, then there are more results * available. To retrieve the next page of results, use the value of * NextToken in a subsequent ListLedgers call.

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

A pagination token, indicating whether there are more results available:

*
  • If NextToken is empty, then the last page of results * has been processed and there are no more results to be retrieved.

  • *

    If NextToken is not empty, then there are more results * available. To retrieve the next page of results, use the value of * NextToken in a subsequent ListLedgers call.

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

A pagination token, indicating whether there are more results available:

*
  • If NextToken is empty, then the last page of results * has been processed and there are no more results to be retrieved.

  • *

    If NextToken is not empty, then there are more results * available. To retrieve the next page of results, use the value of * NextToken in a subsequent ListLedgers call.

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

A pagination token, indicating whether there are more results available:

*
  • If NextToken is empty, then the last page of results * has been processed and there are no more results to be retrieved.

  • *

    If NextToken is not empty, then there are more results * available. To retrieve the next page of results, use the value of * NextToken in a subsequent ListLedgers call.

  • *
*/ inline ListLedgersResult& WithNextToken(const char* value) { SetNextToken(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 ListLedgersResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListLedgersResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListLedgersResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_ledgers; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace QLDB } // namespace Aws