Struct aws_sdk_amplifyuibuilder::operation::refresh_token::builders::RefreshTokenOutputBuilder
source · #[non_exhaustive]pub struct RefreshTokenOutputBuilder { /* private fields */ }Expand description
A builder for RefreshTokenOutput.
Implementations§
source§impl RefreshTokenOutputBuilder
impl RefreshTokenOutputBuilder
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 build(self) -> Result<RefreshTokenOutput, BuildError>
pub fn build(self) -> Result<RefreshTokenOutput, BuildError>
Consumes the builder and constructs a RefreshTokenOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RefreshTokenOutputBuilder
impl Clone for RefreshTokenOutputBuilder
source§fn clone(&self) -> RefreshTokenOutputBuilder
fn clone(&self) -> RefreshTokenOutputBuilder
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 Debug for RefreshTokenOutputBuilder
impl Debug for RefreshTokenOutputBuilder
source§impl Default for RefreshTokenOutputBuilder
impl Default for RefreshTokenOutputBuilder
source§fn default() -> RefreshTokenOutputBuilder
fn default() -> RefreshTokenOutputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for RefreshTokenOutputBuilder
impl PartialEq for RefreshTokenOutputBuilder
source§fn eq(&self, other: &RefreshTokenOutputBuilder) -> bool
fn eq(&self, other: &RefreshTokenOutputBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RefreshTokenOutputBuilder
Auto Trait Implementations§
impl Freeze for RefreshTokenOutputBuilder
impl RefUnwindSafe for RefreshTokenOutputBuilder
impl Send for RefreshTokenOutputBuilder
impl Sync for RefreshTokenOutputBuilder
impl Unpin for RefreshTokenOutputBuilder
impl UnwindSafe for RefreshTokenOutputBuilder
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.