Struct aws_sdk_wafv2::types::builders::ImmunityTimePropertyBuilder
source · #[non_exhaustive]pub struct ImmunityTimePropertyBuilder { /* private fields */ }Expand description
A builder for ImmunityTimeProperty.
Implementations§
source§impl ImmunityTimePropertyBuilder
impl ImmunityTimePropertyBuilder
sourcepub fn immunity_time(self, input: i64) -> Self
pub fn immunity_time(self, input: i64) -> Self
The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by WAF. The default setting is 300.
For the Challenge action, the minimum setting is 300.
This field is required.sourcepub fn set_immunity_time(self, input: Option<i64>) -> Self
pub fn set_immunity_time(self, input: Option<i64>) -> Self
The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by WAF. The default setting is 300.
For the Challenge action, the minimum setting is 300.
sourcepub fn get_immunity_time(&self) -> &Option<i64>
pub fn get_immunity_time(&self) -> &Option<i64>
The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by WAF. The default setting is 300.
For the Challenge action, the minimum setting is 300.
sourcepub fn build(self) -> Result<ImmunityTimeProperty, BuildError>
pub fn build(self) -> Result<ImmunityTimeProperty, BuildError>
Consumes the builder and constructs a ImmunityTimeProperty.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ImmunityTimePropertyBuilder
impl Clone for ImmunityTimePropertyBuilder
source§fn clone(&self) -> ImmunityTimePropertyBuilder
fn clone(&self) -> ImmunityTimePropertyBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ImmunityTimePropertyBuilder
impl Debug for ImmunityTimePropertyBuilder
source§impl Default for ImmunityTimePropertyBuilder
impl Default for ImmunityTimePropertyBuilder
source§fn default() -> ImmunityTimePropertyBuilder
fn default() -> ImmunityTimePropertyBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ImmunityTimePropertyBuilder
impl PartialEq for ImmunityTimePropertyBuilder
source§fn eq(&self, other: &ImmunityTimePropertyBuilder) -> bool
fn eq(&self, other: &ImmunityTimePropertyBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ImmunityTimePropertyBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ImmunityTimePropertyBuilder
impl Send for ImmunityTimePropertyBuilder
impl Sync for ImmunityTimePropertyBuilder
impl Unpin for ImmunityTimePropertyBuilder
impl UnwindSafe for ImmunityTimePropertyBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.