AWS SDK for C++  1.9.40
AWS SDK for C++
ListProposalVotesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace ManagedBlockchain
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ListProposalVotes"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline const Aws::String& GetNetworkId() const{ return m_networkId; }
45 
49  inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
50 
54  inline void SetNetworkId(const Aws::String& value) { m_networkIdHasBeenSet = true; m_networkId = value; }
55 
59  inline void SetNetworkId(Aws::String&& value) { m_networkIdHasBeenSet = true; m_networkId = std::move(value); }
60 
64  inline void SetNetworkId(const char* value) { m_networkIdHasBeenSet = true; m_networkId.assign(value); }
65 
69  inline ListProposalVotesRequest& WithNetworkId(const Aws::String& value) { SetNetworkId(value); return *this;}
70 
74  inline ListProposalVotesRequest& WithNetworkId(Aws::String&& value) { SetNetworkId(std::move(value)); return *this;}
75 
79  inline ListProposalVotesRequest& WithNetworkId(const char* value) { SetNetworkId(value); return *this;}
80 
81 
85  inline const Aws::String& GetProposalId() const{ return m_proposalId; }
86 
90  inline bool ProposalIdHasBeenSet() const { return m_proposalIdHasBeenSet; }
91 
95  inline void SetProposalId(const Aws::String& value) { m_proposalIdHasBeenSet = true; m_proposalId = value; }
96 
100  inline void SetProposalId(Aws::String&& value) { m_proposalIdHasBeenSet = true; m_proposalId = std::move(value); }
101 
105  inline void SetProposalId(const char* value) { m_proposalIdHasBeenSet = true; m_proposalId.assign(value); }
106 
110  inline ListProposalVotesRequest& WithProposalId(const Aws::String& value) { SetProposalId(value); return *this;}
111 
115  inline ListProposalVotesRequest& WithProposalId(Aws::String&& value) { SetProposalId(std::move(value)); return *this;}
116 
120  inline ListProposalVotesRequest& WithProposalId(const char* value) { SetProposalId(value); return *this;}
121 
122 
126  inline int GetMaxResults() const{ return m_maxResults; }
127 
131  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
132 
136  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
137 
141  inline ListProposalVotesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
142 
143 
148  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
149 
154  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
155 
160  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
161 
166  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
167 
172  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
173 
178  inline ListProposalVotesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
179 
184  inline ListProposalVotesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
185 
190  inline ListProposalVotesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
191 
192  private:
193 
194  Aws::String m_networkId;
195  bool m_networkIdHasBeenSet;
196 
197  Aws::String m_proposalId;
198  bool m_proposalIdHasBeenSet;
199 
200  int m_maxResults;
201  bool m_maxResultsHasBeenSet;
202 
203  Aws::String m_nextToken;
204  bool m_nextTokenHasBeenSet;
205  };
206 
207 } // namespace Model
208 } // namespace ManagedBlockchain
209 } // namespace Aws
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::SetProposalId
void SetProposalId(Aws::String &&value)
Definition: ListProposalVotesRequest.h:100
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::WithNetworkId
ListProposalVotesRequest & WithNetworkId(Aws::String &&value)
Definition: ListProposalVotesRequest.h:74
Aws::Http::URI
Definition: URI.h:32
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListProposalVotesRequest.h:148
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::GetProposalId
const Aws::String & GetProposalId() const
Definition: ListProposalVotesRequest.h:85
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListProposalVotesRequest.h:154
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListProposalVotesRequest.h:166
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListProposalVotesRequest.h:160
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::SetProposalId
void SetProposalId(const Aws::String &value)
Definition: ListProposalVotesRequest.h:95
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListProposalVotesRequest.h:34
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::SetNetworkId
void SetNetworkId(const Aws::String &value)
Definition: ListProposalVotesRequest.h:54
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::SetNetworkId
void SetNetworkId(const char *value)
Definition: ListProposalVotesRequest.h:64
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::WithNextToken
ListProposalVotesRequest & WithNextToken(const Aws::String &value)
Definition: ListProposalVotesRequest.h:178
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::SetNetworkId
void SetNetworkId(Aws::String &&value)
Definition: ListProposalVotesRequest.h:59
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::ProposalIdHasBeenSet
bool ProposalIdHasBeenSet() const
Definition: ListProposalVotesRequest.h:90
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::WithProposalId
ListProposalVotesRequest & WithProposalId(Aws::String &&value)
Definition: ListProposalVotesRequest.h:115
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListProposalVotesRequest.h:131
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::WithNetworkId
ListProposalVotesRequest & WithNetworkId(const char *value)
Definition: ListProposalVotesRequest.h:79
AWSString.h
Aws::ManagedBlockchain::ManagedBlockchainRequest
Definition: ManagedBlockchainRequest.h:17
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::GetNetworkId
const Aws::String & GetNetworkId() const
Definition: ListProposalVotesRequest.h:44
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListProposalVotesRequest.h:126
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::NetworkIdHasBeenSet
bool NetworkIdHasBeenSet() const
Definition: ListProposalVotesRequest.h:49
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListProposalVotesRequest.h:136
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::WithMaxResults
ListProposalVotesRequest & WithMaxResults(int value)
Definition: ListProposalVotesRequest.h:141
Aws::ManagedBlockchain::Model::ListProposalVotesRequest
Definition: ListProposalVotesRequest.h:26
ManagedBlockchainRequest.h
AWS_MANAGEDBLOCKCHAIN_API
#define AWS_MANAGEDBLOCKCHAIN_API
Definition: ManagedBlockchain_EXPORTS.h:28
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::WithNextToken
ListProposalVotesRequest & WithNextToken(const char *value)
Definition: ListProposalVotesRequest.h:190
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws
Definition: AccessManagementClient.h:15
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::WithNextToken
ListProposalVotesRequest & WithNextToken(Aws::String &&value)
Definition: ListProposalVotesRequest.h:184
ManagedBlockchain_EXPORTS.h
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::SetProposalId
void SetProposalId(const char *value)
Definition: ListProposalVotesRequest.h:105
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::WithNetworkId
ListProposalVotesRequest & WithNetworkId(const Aws::String &value)
Definition: ListProposalVotesRequest.h:69
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::WithProposalId
ListProposalVotesRequest & WithProposalId(const Aws::String &value)
Definition: ListProposalVotesRequest.h:110
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::WithProposalId
ListProposalVotesRequest & WithProposalId(const char *value)
Definition: ListProposalVotesRequest.h:120
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListProposalVotesRequest.h:172
Aws::ManagedBlockchain::Model::ListProposalVotesRequest::ListProposalVotesRequest
ListProposalVotesRequest()