Struct aws_sdk_managedblockchainquery::operation::get_token_balance::builders::GetTokenBalanceFluentBuilder
source · pub struct GetTokenBalanceFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GetTokenBalance
.
Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the blockchain.
Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.
Implementations§
source§impl GetTokenBalanceFluentBuilder
impl GetTokenBalanceFluentBuilder
sourcepub fn as_input(&self) -> &GetTokenBalanceInputBuilder
pub fn as_input(&self) -> &GetTokenBalanceInputBuilder
Access the GetTokenBalance as a reference.
sourcepub async fn send(
self
) -> Result<GetTokenBalanceOutput, SdkError<GetTokenBalanceError, HttpResponse>>
pub async fn send( self ) -> Result<GetTokenBalanceOutput, SdkError<GetTokenBalanceError, 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 fn customize(
self
) -> CustomizableOperation<GetTokenBalanceOutput, GetTokenBalanceError, Self>
pub fn customize( self ) -> CustomizableOperation<GetTokenBalanceOutput, GetTokenBalanceError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn token_identifier(self, input: TokenIdentifier) -> Self
pub fn token_identifier(self, input: TokenIdentifier) -> Self
The container for the identifier for the token, including the unique token ID and its blockchain network.
sourcepub fn set_token_identifier(self, input: Option<TokenIdentifier>) -> Self
pub fn set_token_identifier(self, input: Option<TokenIdentifier>) -> Self
The container for the identifier for the token, including the unique token ID and its blockchain network.
sourcepub fn get_token_identifier(&self) -> &Option<TokenIdentifier>
pub fn get_token_identifier(&self) -> &Option<TokenIdentifier>
The container for the identifier for the token, including the unique token ID and its blockchain network.
sourcepub fn owner_identifier(self, input: OwnerIdentifier) -> Self
pub fn owner_identifier(self, input: OwnerIdentifier) -> Self
The container for the identifier for the owner.
sourcepub fn set_owner_identifier(self, input: Option<OwnerIdentifier>) -> Self
pub fn set_owner_identifier(self, input: Option<OwnerIdentifier>) -> Self
The container for the identifier for the owner.
sourcepub fn get_owner_identifier(&self) -> &Option<OwnerIdentifier>
pub fn get_owner_identifier(&self) -> &Option<OwnerIdentifier>
The container for the identifier for the owner.
sourcepub fn at_blockchain_instant(self, input: BlockchainInstant) -> Self
pub fn at_blockchain_instant(self, input: BlockchainInstant) -> Self
The time for when the TokenBalance is requested or the current time if a time is not provided in the request.
This time will only be recorded up to the second.
sourcepub fn set_at_blockchain_instant(self, input: Option<BlockchainInstant>) -> Self
pub fn set_at_blockchain_instant(self, input: Option<BlockchainInstant>) -> Self
The time for when the TokenBalance is requested or the current time if a time is not provided in the request.
This time will only be recorded up to the second.
sourcepub fn get_at_blockchain_instant(&self) -> &Option<BlockchainInstant>
pub fn get_at_blockchain_instant(&self) -> &Option<BlockchainInstant>
The time for when the TokenBalance is requested or the current time if a time is not provided in the request.
This time will only be recorded up to the second.
Trait Implementations§
source§impl Clone for GetTokenBalanceFluentBuilder
impl Clone for GetTokenBalanceFluentBuilder
source§fn clone(&self) -> GetTokenBalanceFluentBuilder
fn clone(&self) -> GetTokenBalanceFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more