#[non_exhaustive]pub struct AuthenticationResultTypeBuilder { /* private fields */ }Expand description
A builder for AuthenticationResultType.
Implementations§
source§impl AuthenticationResultTypeBuilder
impl AuthenticationResultTypeBuilder
sourcepub fn access_token(self, input: impl Into<String>) -> Self
pub fn access_token(self, input: impl Into<String>) -> Self
A valid access token that Amazon Cognito issued to the user who you want to authenticate.
sourcepub fn set_access_token(self, input: Option<String>) -> Self
pub fn set_access_token(self, input: Option<String>) -> Self
A valid access token that Amazon Cognito issued to the user who you want to authenticate.
sourcepub fn get_access_token(&self) -> &Option<String>
pub fn get_access_token(&self) -> &Option<String>
A valid access token that Amazon Cognito issued to the user who you want to authenticate.
sourcepub fn expires_in(self, input: i32) -> Self
pub fn expires_in(self, input: i32) -> Self
The expiration period of the authentication result in seconds.
sourcepub fn set_expires_in(self, input: Option<i32>) -> Self
pub fn set_expires_in(self, input: Option<i32>) -> Self
The expiration period of the authentication result in seconds.
sourcepub fn get_expires_in(&self) -> &Option<i32>
pub fn get_expires_in(&self) -> &Option<i32>
The expiration period of the authentication result in seconds.
sourcepub fn token_type(self, input: impl Into<String>) -> Self
pub fn token_type(self, input: impl Into<String>) -> Self
The token type.
sourcepub fn set_token_type(self, input: Option<String>) -> Self
pub fn set_token_type(self, input: Option<String>) -> Self
The token type.
sourcepub fn get_token_type(&self) -> &Option<String>
pub fn get_token_type(&self) -> &Option<String>
The token type.
sourcepub fn refresh_token(self, input: impl Into<String>) -> Self
pub fn refresh_token(self, input: impl Into<String>) -> Self
The refresh token.
sourcepub fn set_refresh_token(self, input: Option<String>) -> Self
pub fn set_refresh_token(self, input: Option<String>) -> Self
The refresh token.
sourcepub fn get_refresh_token(&self) -> &Option<String>
pub fn get_refresh_token(&self) -> &Option<String>
The refresh token.
sourcepub fn set_id_token(self, input: Option<String>) -> Self
pub fn set_id_token(self, input: Option<String>) -> Self
The ID token.
sourcepub fn get_id_token(&self) -> &Option<String>
pub fn get_id_token(&self) -> &Option<String>
The ID token.
sourcepub fn new_device_metadata(self, input: NewDeviceMetadataType) -> Self
pub fn new_device_metadata(self, input: NewDeviceMetadataType) -> Self
The new device metadata from an authentication result.
sourcepub fn set_new_device_metadata(
self,
input: Option<NewDeviceMetadataType>
) -> Self
pub fn set_new_device_metadata( self, input: Option<NewDeviceMetadataType> ) -> Self
The new device metadata from an authentication result.
sourcepub fn get_new_device_metadata(&self) -> &Option<NewDeviceMetadataType>
pub fn get_new_device_metadata(&self) -> &Option<NewDeviceMetadataType>
The new device metadata from an authentication result.
sourcepub fn build(self) -> AuthenticationResultType
pub fn build(self) -> AuthenticationResultType
Consumes the builder and constructs a AuthenticationResultType.
Trait Implementations§
source§impl Clone for AuthenticationResultTypeBuilder
impl Clone for AuthenticationResultTypeBuilder
source§fn clone(&self) -> AuthenticationResultTypeBuilder
fn clone(&self) -> AuthenticationResultTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AuthenticationResultTypeBuilder
impl Default for AuthenticationResultTypeBuilder
source§fn default() -> AuthenticationResultTypeBuilder
fn default() -> AuthenticationResultTypeBuilder
source§impl PartialEq for AuthenticationResultTypeBuilder
impl PartialEq for AuthenticationResultTypeBuilder
source§fn eq(&self, other: &AuthenticationResultTypeBuilder) -> bool
fn eq(&self, other: &AuthenticationResultTypeBuilder) -> bool
self and other values to be equal, and is used
by ==.