Struct aws_sdk_wafv2::types::builders::ChallengeResponseBuilder
source · #[non_exhaustive]pub struct ChallengeResponseBuilder { /* private fields */ }
Expand description
A builder for ChallengeResponse
.
Implementations§
source§impl ChallengeResponseBuilder
impl ChallengeResponseBuilder
sourcepub fn response_code(self, input: i32) -> Self
pub fn response_code(self, input: i32) -> Self
The HTTP response code indicating the status of the challenge token in the web request. If the token is missing, invalid, or expired, this code is 202 Request Accepted
.
sourcepub fn set_response_code(self, input: Option<i32>) -> Self
pub fn set_response_code(self, input: Option<i32>) -> Self
The HTTP response code indicating the status of the challenge token in the web request. If the token is missing, invalid, or expired, this code is 202 Request Accepted
.
sourcepub fn get_response_code(&self) -> &Option<i32>
pub fn get_response_code(&self) -> &Option<i32>
The HTTP response code indicating the status of the challenge token in the web request. If the token is missing, invalid, or expired, this code is 202 Request Accepted
.
sourcepub fn solve_timestamp(self, input: i64) -> Self
pub fn solve_timestamp(self, input: i64) -> Self
The time that the challenge was last solved for the supplied token.
sourcepub fn set_solve_timestamp(self, input: Option<i64>) -> Self
pub fn set_solve_timestamp(self, input: Option<i64>) -> Self
The time that the challenge was last solved for the supplied token.
sourcepub fn get_solve_timestamp(&self) -> &Option<i64>
pub fn get_solve_timestamp(&self) -> &Option<i64>
The time that the challenge was last solved for the supplied token.
sourcepub fn failure_reason(self, input: FailureReason) -> Self
pub fn failure_reason(self, input: FailureReason) -> Self
The reason for failure, populated when the evaluation of the token fails.
sourcepub fn set_failure_reason(self, input: Option<FailureReason>) -> Self
pub fn set_failure_reason(self, input: Option<FailureReason>) -> Self
The reason for failure, populated when the evaluation of the token fails.
sourcepub fn get_failure_reason(&self) -> &Option<FailureReason>
pub fn get_failure_reason(&self) -> &Option<FailureReason>
The reason for failure, populated when the evaluation of the token fails.
sourcepub fn build(self) -> ChallengeResponse
pub fn build(self) -> ChallengeResponse
Consumes the builder and constructs a ChallengeResponse
.
Trait Implementations§
source§impl Clone for ChallengeResponseBuilder
impl Clone for ChallengeResponseBuilder
source§fn clone(&self) -> ChallengeResponseBuilder
fn clone(&self) -> ChallengeResponseBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ChallengeResponseBuilder
impl Debug for ChallengeResponseBuilder
source§impl Default for ChallengeResponseBuilder
impl Default for ChallengeResponseBuilder
source§fn default() -> ChallengeResponseBuilder
fn default() -> ChallengeResponseBuilder
source§impl PartialEq for ChallengeResponseBuilder
impl PartialEq for ChallengeResponseBuilder
source§fn eq(&self, other: &ChallengeResponseBuilder) -> bool
fn eq(&self, other: &ChallengeResponseBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ChallengeResponseBuilder
Auto Trait Implementations§
impl Freeze for ChallengeResponseBuilder
impl RefUnwindSafe for ChallengeResponseBuilder
impl Send for ChallengeResponseBuilder
impl Sync for ChallengeResponseBuilder
impl Unpin for ChallengeResponseBuilder
impl UnwindSafe for ChallengeResponseBuilder
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