#[non_exhaustive]pub struct AwsWafRuleDetailsBuilder { /* private fields */ }Expand description
A builder for AwsWafRuleDetails.
Implementations§
source§impl AwsWafRuleDetailsBuilder
impl AwsWafRuleDetailsBuilder
sourcepub fn metric_name(self, input: impl Into<String>) -> Self
pub fn metric_name(self, input: impl Into<String>) -> Self
The name of the metrics for this rule.
sourcepub fn set_metric_name(self, input: Option<String>) -> Self
pub fn set_metric_name(self, input: Option<String>) -> Self
The name of the metrics for this rule.
sourcepub fn get_metric_name(&self) -> &Option<String>
pub fn get_metric_name(&self) -> &Option<String>
The name of the metrics for this rule.
sourcepub fn predicate_list(self, input: AwsWafRulePredicateListDetails) -> Self
pub fn predicate_list(self, input: AwsWafRulePredicateListDetails) -> Self
Appends an item to predicate_list.
To override the contents of this collection use set_predicate_list.
Specifies the ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, RegexMatchSet, GeoMatchSet, and SizeConstraintSet objects that you want to add to a rule and, for each object, indicates whether you want to negate the settings.
sourcepub fn set_predicate_list(
self,
input: Option<Vec<AwsWafRulePredicateListDetails>>,
) -> Self
pub fn set_predicate_list( self, input: Option<Vec<AwsWafRulePredicateListDetails>>, ) -> Self
Specifies the ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, RegexMatchSet, GeoMatchSet, and SizeConstraintSet objects that you want to add to a rule and, for each object, indicates whether you want to negate the settings.
sourcepub fn get_predicate_list(&self) -> &Option<Vec<AwsWafRulePredicateListDetails>>
pub fn get_predicate_list(&self) -> &Option<Vec<AwsWafRulePredicateListDetails>>
Specifies the ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, RegexMatchSet, GeoMatchSet, and SizeConstraintSet objects that you want to add to a rule and, for each object, indicates whether you want to negate the settings.
sourcepub fn set_rule_id(self, input: Option<String>) -> Self
pub fn set_rule_id(self, input: Option<String>) -> Self
The ID of the WAF rule.
sourcepub fn get_rule_id(&self) -> &Option<String>
pub fn get_rule_id(&self) -> &Option<String>
The ID of the WAF rule.
sourcepub fn build(self) -> AwsWafRuleDetails
pub fn build(self) -> AwsWafRuleDetails
Consumes the builder and constructs a AwsWafRuleDetails.
Trait Implementations§
source§impl Clone for AwsWafRuleDetailsBuilder
impl Clone for AwsWafRuleDetailsBuilder
source§fn clone(&self) -> AwsWafRuleDetailsBuilder
fn clone(&self) -> AwsWafRuleDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AwsWafRuleDetailsBuilder
impl Debug for AwsWafRuleDetailsBuilder
source§impl Default for AwsWafRuleDetailsBuilder
impl Default for AwsWafRuleDetailsBuilder
source§fn default() -> AwsWafRuleDetailsBuilder
fn default() -> AwsWafRuleDetailsBuilder
source§impl PartialEq for AwsWafRuleDetailsBuilder
impl PartialEq for AwsWafRuleDetailsBuilder
impl StructuralPartialEq for AwsWafRuleDetailsBuilder
Auto Trait Implementations§
impl Freeze for AwsWafRuleDetailsBuilder
impl RefUnwindSafe for AwsWafRuleDetailsBuilder
impl Send for AwsWafRuleDetailsBuilder
impl Sync for AwsWafRuleDetailsBuilder
impl Unpin for AwsWafRuleDetailsBuilder
impl UnwindSafe for AwsWafRuleDetailsBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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