Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns the list of votes for a specified proposal, including the value of each vote and the unique identifier of the member that cast the vote.
Applies only to Hyperledger Fabric.
Synopsis
- data ListProposalVotes = ListProposalVotes' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- networkId :: Text
- proposalId :: Text
- newListProposalVotes :: Text -> Text -> ListProposalVotes
- listProposalVotes_nextToken :: Lens' ListProposalVotes (Maybe Text)
- listProposalVotes_maxResults :: Lens' ListProposalVotes (Maybe Natural)
- listProposalVotes_networkId :: Lens' ListProposalVotes Text
- listProposalVotes_proposalId :: Lens' ListProposalVotes Text
- data ListProposalVotesResponse = ListProposalVotesResponse' {
- nextToken :: Maybe Text
- proposalVotes :: Maybe [VoteSummary]
- httpStatus :: Int
- newListProposalVotesResponse :: Int -> ListProposalVotesResponse
- listProposalVotesResponse_nextToken :: Lens' ListProposalVotesResponse (Maybe Text)
- listProposalVotesResponse_proposalVotes :: Lens' ListProposalVotesResponse (Maybe [VoteSummary])
- listProposalVotesResponse_httpStatus :: Lens' ListProposalVotesResponse Int
Creating a Request
data ListProposalVotes Source #
See: newListProposalVotes
smart constructor.
ListProposalVotes' | |
|
Instances
:: Text | |
-> Text | |
-> ListProposalVotes |
Create a value of ListProposalVotes
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextToken:ListProposalVotes'
, listProposalVotes_nextToken
- The pagination token that indicates the next set of results to retrieve.
$sel:maxResults:ListProposalVotes'
, listProposalVotes_maxResults
- The maximum number of votes to return.
$sel:networkId:ListProposalVotes'
, listProposalVotes_networkId
- The unique identifier of the network.
$sel:proposalId:ListProposalVotes'
, listProposalVotes_proposalId
- The unique identifier of the proposal.
Request Lenses
listProposalVotes_nextToken :: Lens' ListProposalVotes (Maybe Text) Source #
The pagination token that indicates the next set of results to retrieve.
listProposalVotes_maxResults :: Lens' ListProposalVotes (Maybe Natural) Source #
The maximum number of votes to return.
listProposalVotes_networkId :: Lens' ListProposalVotes Text Source #
The unique identifier of the network.
listProposalVotes_proposalId :: Lens' ListProposalVotes Text Source #
The unique identifier of the proposal.
Destructuring the Response
data ListProposalVotesResponse Source #
See: newListProposalVotesResponse
smart constructor.
ListProposalVotesResponse' | |
|
Instances
newListProposalVotesResponse Source #
Create a value of ListProposalVotesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextToken:ListProposalVotes'
, listProposalVotesResponse_nextToken
- The pagination token that indicates the next set of results to retrieve.
$sel:proposalVotes:ListProposalVotesResponse'
, listProposalVotesResponse_proposalVotes
- The list of votes.
$sel:httpStatus:ListProposalVotesResponse'
, listProposalVotesResponse_httpStatus
- The response's http status code.
Response Lenses
listProposalVotesResponse_nextToken :: Lens' ListProposalVotesResponse (Maybe Text) Source #
The pagination token that indicates the next set of results to retrieve.
listProposalVotesResponse_proposalVotes :: Lens' ListProposalVotesResponse (Maybe [VoteSummary]) Source #
The list of votes.
listProposalVotesResponse_httpStatus :: Lens' ListProposalVotesResponse Int Source #
The response's http status code.