// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetDelegatedAccessToken`](crate::operation::get_delegated_access_token::builders::GetDelegatedAccessTokenFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`trade_in_token(impl Into<String>)`](crate::operation::get_delegated_access_token::builders::GetDelegatedAccessTokenFluentBuilder::trade_in_token) / [`set_trade_in_token(Option<String>)`](crate::operation::get_delegated_access_token::builders::GetDelegatedAccessTokenFluentBuilder::set_trade_in_token):<br>required: **true**<br><p>The token to exchange for temporary Amazon Web Services credentials. This token must be valid and unexpired at the time of the request.</p><br>
    /// - On success, responds with [`GetDelegatedAccessTokenOutput`](crate::operation::get_delegated_access_token::GetDelegatedAccessTokenOutput) with field(s):
    ///   - [`credentials(Option<Credentials>)`](crate::operation::get_delegated_access_token::GetDelegatedAccessTokenOutput::credentials): <p>Amazon Web Services credentials for API authentication.</p>
    ///   - [`packed_policy_size(Option<i32>)`](crate::operation::get_delegated_access_token::GetDelegatedAccessTokenOutput::packed_policy_size): <p>The percentage of the maximum policy size that is used by the session policy. The policy size is calculated as the sum of all the session policies and permission boundaries attached to the session. If the packed size exceeds 100%, the request fails.</p>
    ///   - [`assumed_principal(Option<String>)`](crate::operation::get_delegated_access_token::GetDelegatedAccessTokenOutput::assumed_principal): <p>The Amazon Resource Name (ARN) of the principal that was assumed when obtaining the delegated access token. This ARN identifies the IAM entity whose permissions are granted by the temporary credentials.</p>
    /// - On failure, responds with [`SdkError<GetDelegatedAccessTokenError>`](crate::operation::get_delegated_access_token::GetDelegatedAccessTokenError)
    pub fn get_delegated_access_token(&self) -> crate::operation::get_delegated_access_token::builders::GetDelegatedAccessTokenFluentBuilder {
        crate::operation::get_delegated_access_token::builders::GetDelegatedAccessTokenFluentBuilder::new(self.handle.clone())
    }
}
