Struct aws_sdk_shield::types::builders::ResponseActionBuilder
source · #[non_exhaustive]pub struct ResponseActionBuilder { /* private fields */ }Expand description
A builder for ResponseAction.
Implementations§
source§impl ResponseActionBuilder
impl ResponseActionBuilder
sourcepub fn block(self, input: BlockAction) -> Self
pub fn block(self, input: BlockAction) -> Self
Specifies that Shield Advanced should configure its WAF rules with the WAF Block action.
You must specify exactly one action, either Block or Count.
sourcepub fn set_block(self, input: Option<BlockAction>) -> Self
pub fn set_block(self, input: Option<BlockAction>) -> Self
Specifies that Shield Advanced should configure its WAF rules with the WAF Block action.
You must specify exactly one action, either Block or Count.
sourcepub fn count(self, input: CountAction) -> Self
pub fn count(self, input: CountAction) -> Self
Specifies that Shield Advanced should configure its WAF rules with the WAF Count action.
You must specify exactly one action, either Block or Count.
sourcepub fn set_count(self, input: Option<CountAction>) -> Self
pub fn set_count(self, input: Option<CountAction>) -> Self
Specifies that Shield Advanced should configure its WAF rules with the WAF Count action.
You must specify exactly one action, either Block or Count.
sourcepub fn build(self) -> ResponseAction
pub fn build(self) -> ResponseAction
Consumes the builder and constructs a ResponseAction.
Trait Implementations§
source§impl Clone for ResponseActionBuilder
impl Clone for ResponseActionBuilder
source§fn clone(&self) -> ResponseActionBuilder
fn clone(&self) -> ResponseActionBuilder
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 ResponseActionBuilder
impl Debug for ResponseActionBuilder
source§impl Default for ResponseActionBuilder
impl Default for ResponseActionBuilder
source§fn default() -> ResponseActionBuilder
fn default() -> ResponseActionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<ResponseActionBuilder> for ResponseActionBuilder
impl PartialEq<ResponseActionBuilder> for ResponseActionBuilder
source§fn eq(&self, other: &ResponseActionBuilder) -> bool
fn eq(&self, other: &ResponseActionBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ResponseActionBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ResponseActionBuilder
impl Send for ResponseActionBuilder
impl Sync for ResponseActionBuilder
impl Unpin for ResponseActionBuilder
impl UnwindSafe for ResponseActionBuilder
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