Struct aws_sdk_wafv2::types::builders::DefaultActionBuilder
source · #[non_exhaustive]pub struct DefaultActionBuilder { /* private fields */ }
Expand description
A builder for DefaultAction
.
Implementations§
source§impl DefaultActionBuilder
impl DefaultActionBuilder
sourcepub fn block(self, input: BlockAction) -> Self
pub fn block(self, input: BlockAction) -> Self
Specifies that WAF should block requests by default.
sourcepub fn set_block(self, input: Option<BlockAction>) -> Self
pub fn set_block(self, input: Option<BlockAction>) -> Self
Specifies that WAF should block requests by default.
sourcepub fn get_block(&self) -> &Option<BlockAction>
pub fn get_block(&self) -> &Option<BlockAction>
Specifies that WAF should block requests by default.
sourcepub fn allow(self, input: AllowAction) -> Self
pub fn allow(self, input: AllowAction) -> Self
Specifies that WAF should allow requests by default.
sourcepub fn set_allow(self, input: Option<AllowAction>) -> Self
pub fn set_allow(self, input: Option<AllowAction>) -> Self
Specifies that WAF should allow requests by default.
sourcepub fn get_allow(&self) -> &Option<AllowAction>
pub fn get_allow(&self) -> &Option<AllowAction>
Specifies that WAF should allow requests by default.
sourcepub fn build(self) -> DefaultAction
pub fn build(self) -> DefaultAction
Consumes the builder and constructs a DefaultAction
.
Trait Implementations§
source§impl Clone for DefaultActionBuilder
impl Clone for DefaultActionBuilder
source§fn clone(&self) -> DefaultActionBuilder
fn clone(&self) -> DefaultActionBuilder
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 DefaultActionBuilder
impl Debug for DefaultActionBuilder
source§impl Default for DefaultActionBuilder
impl Default for DefaultActionBuilder
source§fn default() -> DefaultActionBuilder
fn default() -> DefaultActionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DefaultActionBuilder
impl PartialEq for DefaultActionBuilder
source§fn eq(&self, other: &DefaultActionBuilder) -> bool
fn eq(&self, other: &DefaultActionBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DefaultActionBuilder
Auto Trait Implementations§
impl Freeze for DefaultActionBuilder
impl RefUnwindSafe for DefaultActionBuilder
impl Send for DefaultActionBuilder
impl Sync for DefaultActionBuilder
impl Unpin for DefaultActionBuilder
impl UnwindSafe for DefaultActionBuilder
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.