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 get_block(&self) -> &Option<BlockAction>
pub fn get_block(&self) -> &Option<BlockAction>
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 get_count(&self) -> &Option<CountAction>
pub fn get_count(&self) -> &Option<CountAction>
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
source§impl PartialEq for ResponseActionBuilder
impl PartialEq for ResponseActionBuilder
impl StructuralPartialEq for ResponseActionBuilder
Auto Trait Implementations§
impl Freeze for ResponseActionBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more