Struct aws_sdk_amplifyuibuilder::operation::exchange_code_for_token::builders::ExchangeCodeForTokenFluentBuilder
source · pub struct ExchangeCodeForTokenFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to ExchangeCodeForToken.
This is for internal use.
Amplify uses this action to exchange an access code for a token.
Implementations§
source§impl ExchangeCodeForTokenFluentBuilder
impl ExchangeCodeForTokenFluentBuilder
sourcepub fn as_input(&self) -> &ExchangeCodeForTokenInputBuilder
pub fn as_input(&self) -> &ExchangeCodeForTokenInputBuilder
Access the ExchangeCodeForToken as a reference.
sourcepub async fn send(
self
) -> Result<ExchangeCodeForTokenOutput, SdkError<ExchangeCodeForTokenError, HttpResponse>>
pub async fn send( self ) -> Result<ExchangeCodeForTokenOutput, SdkError<ExchangeCodeForTokenError, 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<ExchangeCodeForTokenOutput, ExchangeCodeForTokenError, Self>
pub fn customize( self ) -> CustomizableOperation<ExchangeCodeForTokenOutput, ExchangeCodeForTokenError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn provider(self, input: TokenProviders) -> Self
pub fn provider(self, input: TokenProviders) -> Self
The third-party provider for the token. The only valid value is figma.
sourcepub fn set_provider(self, input: Option<TokenProviders>) -> Self
pub fn set_provider(self, input: Option<TokenProviders>) -> Self
The third-party provider for the token. The only valid value is figma.
sourcepub fn get_provider(&self) -> &Option<TokenProviders>
pub fn get_provider(&self) -> &Option<TokenProviders>
The third-party provider for the token. The only valid value is figma.
sourcepub fn request(self, input: ExchangeCodeForTokenRequestBody) -> Self
pub fn request(self, input: ExchangeCodeForTokenRequestBody) -> Self
Describes the configuration of the request.
sourcepub fn set_request(self, input: Option<ExchangeCodeForTokenRequestBody>) -> Self
pub fn set_request(self, input: Option<ExchangeCodeForTokenRequestBody>) -> Self
Describes the configuration of the request.
sourcepub fn get_request(&self) -> &Option<ExchangeCodeForTokenRequestBody>
pub fn get_request(&self) -> &Option<ExchangeCodeForTokenRequestBody>
Describes the configuration of the request.
Trait Implementations§
source§impl Clone for ExchangeCodeForTokenFluentBuilder
impl Clone for ExchangeCodeForTokenFluentBuilder
source§fn clone(&self) -> ExchangeCodeForTokenFluentBuilder
fn clone(&self) -> ExchangeCodeForTokenFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ExchangeCodeForTokenFluentBuilder
impl !RefUnwindSafe for ExchangeCodeForTokenFluentBuilder
impl Send for ExchangeCodeForTokenFluentBuilder
impl Sync for ExchangeCodeForTokenFluentBuilder
impl Unpin for ExchangeCodeForTokenFluentBuilder
impl !UnwindSafe for ExchangeCodeForTokenFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more