aws_sdk_managedblockchain/client/
list_proposal_votes.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`ListProposalVotes`](crate::operation::list_proposal_votes::builders::ListProposalVotesFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_proposal_votes::builders::ListProposalVotesFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`network_id(impl Into<String>)`](crate::operation::list_proposal_votes::builders::ListProposalVotesFluentBuilder::network_id) / [`set_network_id(Option<String>)`](crate::operation::list_proposal_votes::builders::ListProposalVotesFluentBuilder::set_network_id):<br>required: **true**<br><p>The unique identifier of the network.</p><br>
8    ///   - [`proposal_id(impl Into<String>)`](crate::operation::list_proposal_votes::builders::ListProposalVotesFluentBuilder::proposal_id) / [`set_proposal_id(Option<String>)`](crate::operation::list_proposal_votes::builders::ListProposalVotesFluentBuilder::set_proposal_id):<br>required: **true**<br><p>The unique identifier of the proposal.</p><br>
9    ///   - [`max_results(i32)`](crate::operation::list_proposal_votes::builders::ListProposalVotesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_proposal_votes::builders::ListProposalVotesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of votes to return.</p><br>
10    ///   - [`next_token(impl Into<String>)`](crate::operation::list_proposal_votes::builders::ListProposalVotesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_proposal_votes::builders::ListProposalVotesFluentBuilder::set_next_token):<br>required: **false**<br><p>The pagination token that indicates the next set of results to retrieve.</p><br>
11    /// - On success, responds with [`ListProposalVotesOutput`](crate::operation::list_proposal_votes::ListProposalVotesOutput) with field(s):
12    ///   - [`proposal_votes(Option<Vec::<VoteSummary>>)`](crate::operation::list_proposal_votes::ListProposalVotesOutput::proposal_votes): <p>The list of votes.</p>
13    ///   - [`next_token(Option<String>)`](crate::operation::list_proposal_votes::ListProposalVotesOutput::next_token): <p>The pagination token that indicates the next set of results to retrieve.</p>
14    /// - On failure, responds with [`SdkError<ListProposalVotesError>`](crate::operation::list_proposal_votes::ListProposalVotesError)
15    pub fn list_proposal_votes(&self) -> crate::operation::list_proposal_votes::builders::ListProposalVotesFluentBuilder {
16        crate::operation::list_proposal_votes::builders::ListProposalVotesFluentBuilder::new(self.handle.clone())
17    }
18}