#[non_exhaustive]pub struct AwsWafv2RulesActionDetailsBuilder { /* private fields */ }
Expand description
A builder for AwsWafv2RulesActionDetails
.
Implementations§
source§impl AwsWafv2RulesActionDetailsBuilder
impl AwsWafv2RulesActionDetailsBuilder
sourcepub fn allow(self, input: AwsWafv2ActionAllowDetails) -> Self
pub fn allow(self, input: AwsWafv2ActionAllowDetails) -> Self
Instructs WAF to allow the web request.
sourcepub fn set_allow(self, input: Option<AwsWafv2ActionAllowDetails>) -> Self
pub fn set_allow(self, input: Option<AwsWafv2ActionAllowDetails>) -> Self
Instructs WAF to allow the web request.
sourcepub fn get_allow(&self) -> &Option<AwsWafv2ActionAllowDetails>
pub fn get_allow(&self) -> &Option<AwsWafv2ActionAllowDetails>
Instructs WAF to allow the web request.
sourcepub fn block(self, input: AwsWafv2ActionBlockDetails) -> Self
pub fn block(self, input: AwsWafv2ActionBlockDetails) -> Self
Instructs WAF to block the web request.
sourcepub fn set_block(self, input: Option<AwsWafv2ActionBlockDetails>) -> Self
pub fn set_block(self, input: Option<AwsWafv2ActionBlockDetails>) -> Self
Instructs WAF to block the web request.
sourcepub fn get_block(&self) -> &Option<AwsWafv2ActionBlockDetails>
pub fn get_block(&self) -> &Option<AwsWafv2ActionBlockDetails>
Instructs WAF to block the web request.
sourcepub fn captcha(self, input: AwsWafv2RulesActionCaptchaDetails) -> Self
pub fn captcha(self, input: AwsWafv2RulesActionCaptchaDetails) -> Self
Instructs WAF to run a CAPTCHA check against the web request.
sourcepub fn set_captcha(
self,
input: Option<AwsWafv2RulesActionCaptchaDetails>
) -> Self
pub fn set_captcha( self, input: Option<AwsWafv2RulesActionCaptchaDetails> ) -> Self
Instructs WAF to run a CAPTCHA check against the web request.
sourcepub fn get_captcha(&self) -> &Option<AwsWafv2RulesActionCaptchaDetails>
pub fn get_captcha(&self) -> &Option<AwsWafv2RulesActionCaptchaDetails>
Instructs WAF to run a CAPTCHA check against the web request.
sourcepub fn count(self, input: AwsWafv2RulesActionCountDetails) -> Self
pub fn count(self, input: AwsWafv2RulesActionCountDetails) -> Self
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
sourcepub fn set_count(self, input: Option<AwsWafv2RulesActionCountDetails>) -> Self
pub fn set_count(self, input: Option<AwsWafv2RulesActionCountDetails>) -> Self
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
sourcepub fn get_count(&self) -> &Option<AwsWafv2RulesActionCountDetails>
pub fn get_count(&self) -> &Option<AwsWafv2RulesActionCountDetails>
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
sourcepub fn build(self) -> AwsWafv2RulesActionDetails
pub fn build(self) -> AwsWafv2RulesActionDetails
Consumes the builder and constructs a AwsWafv2RulesActionDetails
.
Trait Implementations§
source§impl Clone for AwsWafv2RulesActionDetailsBuilder
impl Clone for AwsWafv2RulesActionDetailsBuilder
source§fn clone(&self) -> AwsWafv2RulesActionDetailsBuilder
fn clone(&self) -> AwsWafv2RulesActionDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AwsWafv2RulesActionDetailsBuilder
impl Default for AwsWafv2RulesActionDetailsBuilder
source§fn default() -> AwsWafv2RulesActionDetailsBuilder
fn default() -> AwsWafv2RulesActionDetailsBuilder
source§impl PartialEq for AwsWafv2RulesActionDetailsBuilder
impl PartialEq for AwsWafv2RulesActionDetailsBuilder
source§fn eq(&self, other: &AwsWafv2RulesActionDetailsBuilder) -> bool
fn eq(&self, other: &AwsWafv2RulesActionDetailsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.