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 ==
.