Struct aws_sdk_wafv2::types::builders::CaptchaResponseBuilder
source · #[non_exhaustive]pub struct CaptchaResponseBuilder { /* private fields */ }
Expand description
A builder for CaptchaResponse
.
Implementations§
source§impl CaptchaResponseBuilder
impl CaptchaResponseBuilder
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 CAPTCHA
token in the web request. If the token is missing, invalid, or expired, this code is 405 Method Not Allowed
.
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 CAPTCHA
token in the web request. If the token is missing, invalid, or expired, this code is 405 Method Not Allowed
.
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 CAPTCHA
token in the web request. If the token is missing, invalid, or expired, this code is 405 Method Not Allowed
.
sourcepub fn solve_timestamp(self, input: i64) -> Self
pub fn solve_timestamp(self, input: i64) -> Self
The time that the CAPTCHA
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 CAPTCHA
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 CAPTCHA
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) -> CaptchaResponse
pub fn build(self) -> CaptchaResponse
Consumes the builder and constructs a CaptchaResponse
.
Trait Implementations§
source§impl Clone for CaptchaResponseBuilder
impl Clone for CaptchaResponseBuilder
source§fn clone(&self) -> CaptchaResponseBuilder
fn clone(&self) -> CaptchaResponseBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CaptchaResponseBuilder
impl Debug for CaptchaResponseBuilder
source§impl Default for CaptchaResponseBuilder
impl Default for CaptchaResponseBuilder
source§fn default() -> CaptchaResponseBuilder
fn default() -> CaptchaResponseBuilder
source§impl PartialEq for CaptchaResponseBuilder
impl PartialEq for CaptchaResponseBuilder
source§fn eq(&self, other: &CaptchaResponseBuilder) -> bool
fn eq(&self, other: &CaptchaResponseBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CaptchaResponseBuilder
Auto Trait Implementations§
impl Freeze for CaptchaResponseBuilder
impl RefUnwindSafe for CaptchaResponseBuilder
impl Send for CaptchaResponseBuilder
impl Sync for CaptchaResponseBuilder
impl Unpin for CaptchaResponseBuilder
impl UnwindSafe for CaptchaResponseBuilder
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