Struct aws_sdk_managedblockchainquery::operation::list_token_balances::builders::ListTokenBalancesFluentBuilder
source · pub struct ListTokenBalancesFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to ListTokenBalances.
This action returns the following for a given a blockchain network:
-
Lists all token balances owned by an address (either a contact address or a wallet address).
-
Lists all token balances for all tokens created by a contract.
-
Lists all token balances for a given token.
You must always specify the network property of the tokenFilter when using this operation.
Implementations§
source§impl ListTokenBalancesFluentBuilder
impl ListTokenBalancesFluentBuilder
sourcepub fn as_input(&self) -> &ListTokenBalancesInputBuilder
pub fn as_input(&self) -> &ListTokenBalancesInputBuilder
Access the ListTokenBalances as a reference.
sourcepub async fn send(
self
) -> Result<ListTokenBalancesOutput, SdkError<ListTokenBalancesError, HttpResponse>>
pub async fn send( self ) -> Result<ListTokenBalancesOutput, SdkError<ListTokenBalancesError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ListTokenBalancesOutput, ListTokenBalancesError, Self>, SdkError<ListTokenBalancesError>>
pub async fn customize( self ) -> Result<CustomizableOperation<ListTokenBalancesOutput, ListTokenBalancesError, Self>, SdkError<ListTokenBalancesError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn into_paginator(self) -> ListTokenBalancesPaginator
pub fn into_paginator(self) -> ListTokenBalancesPaginator
Create a paginator for this request
Paginators are used by calling send().await which returns a Stream.
sourcepub fn owner_filter(self, input: OwnerFilter) -> Self
pub fn owner_filter(self, input: OwnerFilter) -> Self
The contract or wallet address on the blockchain network by which to filter the request. You must specify the address property of the ownerFilter when listing balances of tokens owned by the address.
sourcepub fn set_owner_filter(self, input: Option<OwnerFilter>) -> Self
pub fn set_owner_filter(self, input: Option<OwnerFilter>) -> Self
The contract or wallet address on the blockchain network by which to filter the request. You must specify the address property of the ownerFilter when listing balances of tokens owned by the address.
sourcepub fn get_owner_filter(&self) -> &Option<OwnerFilter>
pub fn get_owner_filter(&self) -> &Option<OwnerFilter>
The contract or wallet address on the blockchain network by which to filter the request. You must specify the address property of the ownerFilter when listing balances of tokens owned by the address.
sourcepub fn token_filter(self, input: TokenFilter) -> Self
pub fn token_filter(self, input: TokenFilter) -> Self
The contract address or a token identifier on the blockchain network by which to filter the request. You must specify the contractAddress property of this container when listing tokens minted by a contract.
You must always specify the network property of this container when using this operation.
sourcepub fn set_token_filter(self, input: Option<TokenFilter>) -> Self
pub fn set_token_filter(self, input: Option<TokenFilter>) -> Self
The contract address or a token identifier on the blockchain network by which to filter the request. You must specify the contractAddress property of this container when listing tokens minted by a contract.
You must always specify the network property of this container when using this operation.
sourcepub fn get_token_filter(&self) -> &Option<TokenFilter>
pub fn get_token_filter(&self) -> &Option<TokenFilter>
The contract address or a token identifier on the blockchain network by which to filter the request. You must specify the contractAddress property of this container when listing tokens minted by a contract.
You must always specify the network property of this container when using this operation.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
The pagination token that indicates the next set of results to retrieve.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
The pagination token that indicates the next set of results to retrieve.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
The pagination token that indicates the next set of results to retrieve.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of token balances to return.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of token balances to return.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
The maximum number of token balances to return.
Trait Implementations§
source§impl Clone for ListTokenBalancesFluentBuilder
impl Clone for ListTokenBalancesFluentBuilder
source§fn clone(&self) -> ListTokenBalancesFluentBuilder
fn clone(&self) -> ListTokenBalancesFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more