AWS SDK for C++  1.9.160
AWS SDK for C++
ListProposalsResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace ManagedBlockchain
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<ProposalSummary>& GetProposals() const{ return m_proposals; }
41 
45  inline void SetProposals(const Aws::Vector<ProposalSummary>& value) { m_proposals = value; }
46 
50  inline void SetProposals(Aws::Vector<ProposalSummary>&& value) { m_proposals = std::move(value); }
51 
55  inline ListProposalsResult& WithProposals(const Aws::Vector<ProposalSummary>& value) { SetProposals(value); return *this;}
56 
60  inline ListProposalsResult& WithProposals(Aws::Vector<ProposalSummary>&& value) { SetProposals(std::move(value)); return *this;}
61 
65  inline ListProposalsResult& AddProposals(const ProposalSummary& value) { m_proposals.push_back(value); return *this; }
66 
70  inline ListProposalsResult& AddProposals(ProposalSummary&& value) { m_proposals.push_back(std::move(value)); return *this; }
71 
72 
76  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
77 
81  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
82 
86  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
87 
91  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
92 
96  inline ListProposalsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
97 
101  inline ListProposalsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
102 
106  inline ListProposalsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
107 
108  private:
109 
110  Aws::Vector<ProposalSummary> m_proposals;
111 
112  Aws::String m_nextToken;
113  };
114 
115 } // namespace Model
116 } // namespace ManagedBlockchain
117 } // namespace Aws
Aws::ManagedBlockchain::Model::ListProposalsResult::GetProposals
const Aws::Vector< ProposalSummary > & GetProposals() const
Definition: ListProposalsResult.h:40
Aws::ManagedBlockchain::Model::ListProposalsResult::AddProposals
ListProposalsResult & AddProposals(ProposalSummary &&value)
Definition: ListProposalsResult.h:70
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ManagedBlockchain::Model::ListProposalsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListProposalsResult.h:86
Aws::ManagedBlockchain::Model::ListProposalsResult::WithNextToken
ListProposalsResult & WithNextToken(const char *value)
Definition: ListProposalsResult.h:106
ProposalSummary.h
Aws::ManagedBlockchain::Model::ListProposalsResult::WithNextToken
ListProposalsResult & WithNextToken(Aws::String &&value)
Definition: ListProposalsResult.h:101
Aws::ManagedBlockchain::Model::ListProposalsResult::SetProposals
void SetProposals(const Aws::Vector< ProposalSummary > &value)
Definition: ListProposalsResult.h:45
Aws::ManagedBlockchain::Model::ListProposalsResult
Definition: ListProposalsResult.h:30
Aws::ManagedBlockchain::Model::ListProposalsResult::WithProposals
ListProposalsResult & WithProposals(Aws::Vector< ProposalSummary > &&value)
Definition: ListProposalsResult.h:60
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ManagedBlockchain::Model::ListProposalsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListProposalsResult.h:81
AWSVector.h
Aws::ManagedBlockchain::Model::ListProposalsResult::SetProposals
void SetProposals(Aws::Vector< ProposalSummary > &&value)
Definition: ListProposalsResult.h:50
Aws::ManagedBlockchain::Model::ListProposalsResult::ListProposalsResult
ListProposalsResult()
Aws::ManagedBlockchain::Model::ListProposalsResult::WithProposals
ListProposalsResult & WithProposals(const Aws::Vector< ProposalSummary > &value)
Definition: ListProposalsResult.h:55
Aws::ManagedBlockchain::Model::ListProposalsResult::operator=
ListProposalsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ManagedBlockchain::Model::ListProposalsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListProposalsResult.h:76
AWSString.h
Aws::ManagedBlockchain::Model::ListProposalsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListProposalsResult.h:91
AWS_MANAGEDBLOCKCHAIN_API
#define AWS_MANAGEDBLOCKCHAIN_API
Definition: ManagedBlockchain_EXPORTS.h:28
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ManagedBlockchain::Model::ListProposalsResult::ListProposalsResult
ListProposalsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ManagedBlockchain_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ManagedBlockchain::Model::ProposalSummary
Definition: ProposalSummary.h:35
Aws::ManagedBlockchain::Model::ListProposalsResult::WithNextToken
ListProposalsResult & WithNextToken(const Aws::String &value)
Definition: ListProposalsResult.h:96
Aws::ManagedBlockchain::Model::ListProposalsResult::AddProposals
ListProposalsResult & AddProposals(const ProposalSummary &value)
Definition: ListProposalsResult.h:65