Struct aws_sdk_cognitoidentityprovider::operation::verify_software_token::builders::VerifySoftwareTokenInputBuilder
source · #[non_exhaustive]pub struct VerifySoftwareTokenInputBuilder { /* private fields */ }
Expand description
A builder for VerifySoftwareTokenInput
.
Implementations§
source§impl VerifySoftwareTokenInputBuilder
impl VerifySoftwareTokenInputBuilder
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 whose software token you want to verify.
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 whose software token you want to verify.
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 whose software token you want to verify.
sourcepub fn session(self, input: impl Into<String>) -> Self
pub fn session(self, input: impl Into<String>) -> Self
The session that should be passed both ways in challenge-response calls to the service.
sourcepub fn set_session(self, input: Option<String>) -> Self
pub fn set_session(self, input: Option<String>) -> Self
The session that should be passed both ways in challenge-response calls to the service.
sourcepub fn get_session(&self) -> &Option<String>
pub fn get_session(&self) -> &Option<String>
The session that should be passed both ways in challenge-response calls to the service.
sourcepub fn user_code(self, input: impl Into<String>) -> Self
pub fn user_code(self, input: impl Into<String>) -> Self
The one- time password computed using the secret code returned by AssociateSoftwareToken.
This field is required.sourcepub fn set_user_code(self, input: Option<String>) -> Self
pub fn set_user_code(self, input: Option<String>) -> Self
The one- time password computed using the secret code returned by AssociateSoftwareToken.
sourcepub fn get_user_code(&self) -> &Option<String>
pub fn get_user_code(&self) -> &Option<String>
The one- time password computed using the secret code returned by AssociateSoftwareToken.
sourcepub fn friendly_device_name(self, input: impl Into<String>) -> Self
pub fn friendly_device_name(self, input: impl Into<String>) -> Self
The friendly device name.
sourcepub fn set_friendly_device_name(self, input: Option<String>) -> Self
pub fn set_friendly_device_name(self, input: Option<String>) -> Self
The friendly device name.
sourcepub fn get_friendly_device_name(&self) -> &Option<String>
pub fn get_friendly_device_name(&self) -> &Option<String>
The friendly device name.
sourcepub fn build(self) -> Result<VerifySoftwareTokenInput, BuildError>
pub fn build(self) -> Result<VerifySoftwareTokenInput, BuildError>
Consumes the builder and constructs a VerifySoftwareTokenInput
.
source§impl VerifySoftwareTokenInputBuilder
impl VerifySoftwareTokenInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<VerifySoftwareTokenOutput, SdkError<VerifySoftwareTokenError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<VerifySoftwareTokenOutput, SdkError<VerifySoftwareTokenError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for VerifySoftwareTokenInputBuilder
impl Clone for VerifySoftwareTokenInputBuilder
source§fn clone(&self) -> VerifySoftwareTokenInputBuilder
fn clone(&self) -> VerifySoftwareTokenInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for VerifySoftwareTokenInputBuilder
impl Default for VerifySoftwareTokenInputBuilder
source§fn default() -> VerifySoftwareTokenInputBuilder
fn default() -> VerifySoftwareTokenInputBuilder
source§impl PartialEq for VerifySoftwareTokenInputBuilder
impl PartialEq for VerifySoftwareTokenInputBuilder
source§fn eq(&self, other: &VerifySoftwareTokenInputBuilder) -> bool
fn eq(&self, other: &VerifySoftwareTokenInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VerifySoftwareTokenInputBuilder
Auto Trait Implementations§
impl Freeze for VerifySoftwareTokenInputBuilder
impl RefUnwindSafe for VerifySoftwareTokenInputBuilder
impl Send for VerifySoftwareTokenInputBuilder
impl Sync for VerifySoftwareTokenInputBuilder
impl Unpin for VerifySoftwareTokenInputBuilder
impl UnwindSafe for VerifySoftwareTokenInputBuilder
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