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