aws_sdk_mturk/client/
get_account_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 [`GetAccountBalance`](crate::operation::get_account_balance::builders::GetAccountBalanceFluentBuilder) operation.
4    ///
5    /// - The fluent builder takes no input, just [`send`](crate::operation::get_account_balance::builders::GetAccountBalanceFluentBuilder::send) it.
6    /// - On success, responds with [`GetAccountBalanceOutput`](crate::operation::get_account_balance::GetAccountBalanceOutput) with field(s):
7    ///   - [`available_balance(Option<String>)`](crate::operation::get_account_balance::GetAccountBalanceOutput::available_balance): <p>A string representing a currency amount.</p>
8    ///   - [`on_hold_balance(Option<String>)`](crate::operation::get_account_balance::GetAccountBalanceOutput::on_hold_balance): <p>A string representing a currency amount.</p>
9    /// - On failure, responds with [`SdkError<GetAccountBalanceError>`](crate::operation::get_account_balance::GetAccountBalanceError)
10    pub fn get_account_balance(&self) -> crate::operation::get_account_balance::builders::GetAccountBalanceFluentBuilder {
11        crate::operation::get_account_balance::builders::GetAccountBalanceFluentBuilder::new(self.handle.clone())
12    }
13}