AWS SDK for C++  1.9.160
AWS SDK for C++
ListProposalVotesResult.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<VoteSummary>& GetProposalVotes() const{ return m_proposalVotes; }
41 
45  inline void SetProposalVotes(const Aws::Vector<VoteSummary>& value) { m_proposalVotes = value; }
46 
50  inline void SetProposalVotes(Aws::Vector<VoteSummary>&& value) { m_proposalVotes = std::move(value); }
51 
55  inline ListProposalVotesResult& WithProposalVotes(const Aws::Vector<VoteSummary>& value) { SetProposalVotes(value); return *this;}
56 
60  inline ListProposalVotesResult& WithProposalVotes(Aws::Vector<VoteSummary>&& value) { SetProposalVotes(std::move(value)); return *this;}
61 
65  inline ListProposalVotesResult& AddProposalVotes(const VoteSummary& value) { m_proposalVotes.push_back(value); return *this; }
66 
70  inline ListProposalVotesResult& AddProposalVotes(VoteSummary&& value) { m_proposalVotes.push_back(std::move(value)); return *this; }
71 
72 
77  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
78 
83  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
84 
89  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
90 
95  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
96 
101  inline ListProposalVotesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 
107  inline ListProposalVotesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
108 
113  inline ListProposalVotesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
114 
115  private:
116 
117  Aws::Vector<VoteSummary> m_proposalVotes;
118 
119  Aws::String m_nextToken;
120  };
121 
122 } // namespace Model
123 } // namespace ManagedBlockchain
124 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ManagedBlockchain::Model::ListProposalVotesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListProposalVotesResult.h:89
Aws::ManagedBlockchain::Model::ListProposalVotesResult::WithProposalVotes
ListProposalVotesResult & WithProposalVotes(Aws::Vector< VoteSummary > &&value)
Definition: ListProposalVotesResult.h:60
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ManagedBlockchain::Model::ListProposalVotesResult::WithNextToken
ListProposalVotesResult & WithNextToken(const Aws::String &value)
Definition: ListProposalVotesResult.h:101
AWSVector.h
Aws::ManagedBlockchain::Model::ListProposalVotesResult::SetProposalVotes
void SetProposalVotes(const Aws::Vector< VoteSummary > &value)
Definition: ListProposalVotesResult.h:45
Aws::ManagedBlockchain::Model::ListProposalVotesResult::operator=
ListProposalVotesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
VoteSummary.h
Aws::ManagedBlockchain::Model::ListProposalVotesResult::ListProposalVotesResult
ListProposalVotesResult()
Aws::ManagedBlockchain::Model::ListProposalVotesResult::AddProposalVotes
ListProposalVotesResult & AddProposalVotes(VoteSummary &&value)
Definition: ListProposalVotesResult.h:70
Aws::ManagedBlockchain::Model::ListProposalVotesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListProposalVotesResult.h:83
Aws::ManagedBlockchain::Model::ListProposalVotesResult::WithNextToken
ListProposalVotesResult & WithNextToken(const char *value)
Definition: ListProposalVotesResult.h:113
AWSString.h
Aws::ManagedBlockchain::Model::ListProposalVotesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListProposalVotesResult.h:77
Aws::ManagedBlockchain::Model::ListProposalVotesResult::SetProposalVotes
void SetProposalVotes(Aws::Vector< VoteSummary > &&value)
Definition: ListProposalVotesResult.h:50
Aws::ManagedBlockchain::Model::ListProposalVotesResult::AddProposalVotes
ListProposalVotesResult & AddProposalVotes(const VoteSummary &value)
Definition: ListProposalVotesResult.h:65
Aws::ManagedBlockchain::Model::ListProposalVotesResult::WithProposalVotes
ListProposalVotesResult & WithProposalVotes(const Aws::Vector< VoteSummary > &value)
Definition: ListProposalVotesResult.h:55
AWS_MANAGEDBLOCKCHAIN_API
#define AWS_MANAGEDBLOCKCHAIN_API
Definition: ManagedBlockchain_EXPORTS.h:28
Aws::ManagedBlockchain::Model::ListProposalVotesResult
Definition: ListProposalVotesResult.h:30
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ManagedBlockchain::Model::ListProposalVotesResult::ListProposalVotesResult
ListProposalVotesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ManagedBlockchain_EXPORTS.h
Aws::ManagedBlockchain::Model::ListProposalVotesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListProposalVotesResult.h:95
Aws::ManagedBlockchain::Model::ListProposalVotesResult::GetProposalVotes
const Aws::Vector< VoteSummary > & GetProposalVotes() const
Definition: ListProposalVotesResult.h:40
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ManagedBlockchain::Model::ListProposalVotesResult::WithNextToken
ListProposalVotesResult & WithNextToken(Aws::String &&value)
Definition: ListProposalVotesResult.h:107
Aws::ManagedBlockchain::Model::VoteSummary
Definition: VoteSummary.h:34