aws_sdk_managedblockchainquery/client/
get_token_balance.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 [`GetTokenBalance`](crate::operation::get_token_balance::builders::GetTokenBalanceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`token_identifier(TokenIdentifier)`](crate::operation::get_token_balance::builders::GetTokenBalanceFluentBuilder::token_identifier) / [`set_token_identifier(Option<TokenIdentifier>)`](crate::operation::get_token_balance::builders::GetTokenBalanceFluentBuilder::set_token_identifier):<br>required: **true**<br><p>The container for the identifier for the token, including the unique token ID and its blockchain network.</p><br>
7    ///   - [`owner_identifier(OwnerIdentifier)`](crate::operation::get_token_balance::builders::GetTokenBalanceFluentBuilder::owner_identifier) / [`set_owner_identifier(Option<OwnerIdentifier>)`](crate::operation::get_token_balance::builders::GetTokenBalanceFluentBuilder::set_owner_identifier):<br>required: **true**<br><p>The container for the identifier for the owner.</p><br>
8    ///   - [`at_blockchain_instant(BlockchainInstant)`](crate::operation::get_token_balance::builders::GetTokenBalanceFluentBuilder::at_blockchain_instant) / [`set_at_blockchain_instant(Option<BlockchainInstant>)`](crate::operation::get_token_balance::builders::GetTokenBalanceFluentBuilder::set_at_blockchain_instant):<br>required: **false**<br><p>The time for when the TokenBalance is requested or the current time if a time is not provided in the request.</p><note>  <p>This time will only be recorded up to the second.</p> </note><br>
9    /// - On success, responds with [`GetTokenBalanceOutput`](crate::operation::get_token_balance::GetTokenBalanceOutput) with field(s):
10    ///   - [`owner_identifier(Option<OwnerIdentifier>)`](crate::operation::get_token_balance::GetTokenBalanceOutput::owner_identifier): <p>The container for the owner identifier.</p>
11    ///   - [`token_identifier(Option<TokenIdentifier>)`](crate::operation::get_token_balance::GetTokenBalanceOutput::token_identifier): <p>The container for the identifier for the token including the unique token ID and its blockchain network.</p><note>  <p>Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.</p> </note>
12    ///   - [`balance(String)`](crate::operation::get_token_balance::GetTokenBalanceOutput::balance): <p>The container for the token balance.</p>
13    ///   - [`at_blockchain_instant(Option<BlockchainInstant>)`](crate::operation::get_token_balance::GetTokenBalanceOutput::at_blockchain_instant): <p>The container for time.</p>
14    ///   - [`last_updated_time(Option<BlockchainInstant>)`](crate::operation::get_token_balance::GetTokenBalanceOutput::last_updated_time): <p>The container for time.</p>
15    /// - On failure, responds with [`SdkError<GetTokenBalanceError>`](crate::operation::get_token_balance::GetTokenBalanceError)
16    pub fn get_token_balance(&self) -> crate::operation::get_token_balance::builders::GetTokenBalanceFluentBuilder {
17        crate::operation::get_token_balance::builders::GetTokenBalanceFluentBuilder::new(self.handle.clone())
18    }
19}