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
source§fn eq(&self, other: &ResponseActionBuilder) -> bool
fn eq(&self, other: &ResponseActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.