1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ExchangeCodeForToken`](crate::operation::exchange_code_for_token::builders::ExchangeCodeForTokenFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`provider(TokenProviders)`](crate::operation::exchange_code_for_token::builders::ExchangeCodeForTokenFluentBuilder::provider) / [`set_provider(Option<TokenProviders>)`](crate::operation::exchange_code_for_token::builders::ExchangeCodeForTokenFluentBuilder::set_provider):<br>required: **true**<br><p>The third-party provider for the token. The only valid value is <code>figma</code>.</p><br>
    ///   - [`request(ExchangeCodeForTokenRequestBody)`](crate::operation::exchange_code_for_token::builders::ExchangeCodeForTokenFluentBuilder::request) / [`set_request(Option<ExchangeCodeForTokenRequestBody>)`](crate::operation::exchange_code_for_token::builders::ExchangeCodeForTokenFluentBuilder::set_request):<br>required: **true**<br><p>Describes the configuration of the request.</p><br>
    /// - On success, responds with [`ExchangeCodeForTokenOutput`](crate::operation::exchange_code_for_token::ExchangeCodeForTokenOutput) with field(s):
    ///   - [`access_token(String)`](crate::operation::exchange_code_for_token::ExchangeCodeForTokenOutput::access_token): <p>The access token.</p>
    ///   - [`expires_in(i32)`](crate::operation::exchange_code_for_token::ExchangeCodeForTokenOutput::expires_in): <p>The date and time when the new access token expires.</p>
    ///   - [`refresh_token(String)`](crate::operation::exchange_code_for_token::ExchangeCodeForTokenOutput::refresh_token): <p>The token to use to refresh a previously issued access token that might have expired.</p>
    /// - On failure, responds with [`SdkError<ExchangeCodeForTokenError>`](crate::operation::exchange_code_for_token::ExchangeCodeForTokenError)
    pub fn exchange_code_for_token(&self) -> crate::operation::exchange_code_for_token::builders::ExchangeCodeForTokenFluentBuilder {
        crate::operation::exchange_code_for_token::builders::ExchangeCodeForTokenFluentBuilder::new(self.handle.clone())
    }
}