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

The summary of each proposal made on the network.

*/ inline const Aws::Vector& GetProposals() const{ return m_proposals; } /** *

The summary of each proposal made on the network.

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

The summary of each proposal made on the network.

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

The summary of each proposal made on the network.

*/ inline ListProposalsResult& WithProposals(const Aws::Vector& value) { SetProposals(value); return *this;} /** *

The summary of each proposal made on the network.

*/ inline ListProposalsResult& WithProposals(Aws::Vector&& value) { SetProposals(std::move(value)); return *this;} /** *

The summary of each proposal made on the network.

*/ inline ListProposalsResult& AddProposals(const ProposalSummary& value) { m_proposals.push_back(value); return *this; } /** *

The summary of each proposal made on the network.

*/ inline ListProposalsResult& AddProposals(ProposalSummary&& value) { m_proposals.push_back(std::move(value)); return *this; } /** *

The pagination token that indicates the next set of results to retrieve.

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

The pagination token that indicates the next set of results to retrieve.

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

The pagination token that indicates the next set of results to retrieve.

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

The pagination token that indicates the next set of results to retrieve.

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

The pagination token that indicates the next set of results to retrieve.

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

The pagination token that indicates the next set of results to retrieve.

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

The pagination token that indicates the next set of results to retrieve.

*/ inline ListProposalsResult& 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 ListProposalsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListProposalsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListProposalsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_proposals; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace ManagedBlockchain } // namespace Aws