Struct aws_sdk_amplifyuibuilder::operation::exchange_code_for_token::builders::ExchangeCodeForTokenOutputBuilder
source · #[non_exhaustive]pub struct ExchangeCodeForTokenOutputBuilder { /* private fields */ }Expand description
A builder for ExchangeCodeForTokenOutput.
Implementations§
source§impl ExchangeCodeForTokenOutputBuilder
impl ExchangeCodeForTokenOutputBuilder
sourcepub fn access_token(self, input: impl Into<String>) -> Self
pub fn access_token(self, input: impl Into<String>) -> Self
The access token.
This field is required.sourcepub fn set_access_token(self, input: Option<String>) -> Self
pub fn set_access_token(self, input: Option<String>) -> Self
The access token.
sourcepub fn get_access_token(&self) -> &Option<String>
pub fn get_access_token(&self) -> &Option<String>
The access token.
sourcepub fn expires_in(self, input: i32) -> Self
pub fn expires_in(self, input: i32) -> Self
The date and time when the new access token expires.
This field is required.sourcepub fn set_expires_in(self, input: Option<i32>) -> Self
pub fn set_expires_in(self, input: Option<i32>) -> Self
The date and time when the new access token expires.
sourcepub fn get_expires_in(&self) -> &Option<i32>
pub fn get_expires_in(&self) -> &Option<i32>
The date and time when the new access token expires.
sourcepub fn refresh_token(self, input: impl Into<String>) -> Self
pub fn refresh_token(self, input: impl Into<String>) -> Self
The token to use to refresh a previously issued access token that might have expired.
This field is required.sourcepub fn set_refresh_token(self, input: Option<String>) -> Self
pub fn set_refresh_token(self, input: Option<String>) -> Self
The token to use to refresh a previously issued access token that might have expired.
sourcepub fn get_refresh_token(&self) -> &Option<String>
pub fn get_refresh_token(&self) -> &Option<String>
The token to use to refresh a previously issued access token that might have expired.
sourcepub fn build(self) -> Result<ExchangeCodeForTokenOutput, BuildError>
pub fn build(self) -> Result<ExchangeCodeForTokenOutput, BuildError>
Consumes the builder and constructs a ExchangeCodeForTokenOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ExchangeCodeForTokenOutputBuilder
impl Clone for ExchangeCodeForTokenOutputBuilder
source§fn clone(&self) -> ExchangeCodeForTokenOutputBuilder
fn clone(&self) -> ExchangeCodeForTokenOutputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for ExchangeCodeForTokenOutputBuilder
impl Default for ExchangeCodeForTokenOutputBuilder
source§fn default() -> ExchangeCodeForTokenOutputBuilder
fn default() -> ExchangeCodeForTokenOutputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ExchangeCodeForTokenOutputBuilder
impl PartialEq for ExchangeCodeForTokenOutputBuilder
source§fn eq(&self, other: &ExchangeCodeForTokenOutputBuilder) -> bool
fn eq(&self, other: &ExchangeCodeForTokenOutputBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ExchangeCodeForTokenOutputBuilder
Auto Trait Implementations§
impl Freeze for ExchangeCodeForTokenOutputBuilder
impl RefUnwindSafe for ExchangeCodeForTokenOutputBuilder
impl Send for ExchangeCodeForTokenOutputBuilder
impl Sync for ExchangeCodeForTokenOutputBuilder
impl Unpin for ExchangeCodeForTokenOutputBuilder
impl UnwindSafe for ExchangeCodeForTokenOutputBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.