Struct aws_sdk_waf::types::builders::PredicateBuilder
source · #[non_exhaustive]pub struct PredicateBuilder { /* private fields */ }Expand description
A builder for Predicate.
Implementations§
source§impl PredicateBuilder
impl PredicateBuilder
sourcepub fn negated(self, input: bool) -> Self
pub fn negated(self, input: bool) -> Self
Set Negated to False if you want AWS WAF to allow, block, or count requests based on the settings in the specified ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, RegexMatchSet, GeoMatchSet, or SizeConstraintSet. For example, if an IPSet includes the IP address 192.0.2.44, AWS WAF will allow or block requests based on that IP address.
Set Negated to True if you want AWS WAF to allow or block a request based on the negation of the settings in the ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, RegexMatchSet, GeoMatchSet, or SizeConstraintSet. For example, if an IPSet includes the IP address 192.0.2.44, AWS WAF will allow, block, or count requests based on all IP addresses except 192.0.2.44.
sourcepub fn set_negated(self, input: Option<bool>) -> Self
pub fn set_negated(self, input: Option<bool>) -> Self
Set Negated to False if you want AWS WAF to allow, block, or count requests based on the settings in the specified ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, RegexMatchSet, GeoMatchSet, or SizeConstraintSet. For example, if an IPSet includes the IP address 192.0.2.44, AWS WAF will allow or block requests based on that IP address.
Set Negated to True if you want AWS WAF to allow or block a request based on the negation of the settings in the ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, RegexMatchSet, GeoMatchSet, or SizeConstraintSet. For example, if an IPSet includes the IP address 192.0.2.44, AWS WAF will allow, block, or count requests based on all IP addresses except 192.0.2.44.
sourcepub fn get_negated(&self) -> &Option<bool>
pub fn get_negated(&self) -> &Option<bool>
Set Negated to False if you want AWS WAF to allow, block, or count requests based on the settings in the specified ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, RegexMatchSet, GeoMatchSet, or SizeConstraintSet. For example, if an IPSet includes the IP address 192.0.2.44, AWS WAF will allow or block requests based on that IP address.
Set Negated to True if you want AWS WAF to allow or block a request based on the negation of the settings in the ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, RegexMatchSet, GeoMatchSet, or SizeConstraintSet. For example, if an IPSet includes the IP address 192.0.2.44, AWS WAF will allow, block, or count requests based on all IP addresses except 192.0.2.44.
sourcepub fn type(self, input: PredicateType) -> Self
pub fn type(self, input: PredicateType) -> Self
The type of predicate in a Rule, such as ByteMatch or IPSet.
sourcepub fn set_type(self, input: Option<PredicateType>) -> Self
pub fn set_type(self, input: Option<PredicateType>) -> Self
The type of predicate in a Rule, such as ByteMatch or IPSet.
sourcepub fn get_type(&self) -> &Option<PredicateType>
pub fn get_type(&self) -> &Option<PredicateType>
The type of predicate in a Rule, such as ByteMatch or IPSet.
sourcepub fn data_id(self, input: impl Into<String>) -> Self
pub fn data_id(self, input: impl Into<String>) -> Self
A unique identifier for a predicate in a Rule, such as ByteMatchSetId or IPSetId. The ID is returned by the corresponding Create or List command.
sourcepub fn set_data_id(self, input: Option<String>) -> Self
pub fn set_data_id(self, input: Option<String>) -> Self
A unique identifier for a predicate in a Rule, such as ByteMatchSetId or IPSetId. The ID is returned by the corresponding Create or List command.
sourcepub fn get_data_id(&self) -> &Option<String>
pub fn get_data_id(&self) -> &Option<String>
A unique identifier for a predicate in a Rule, such as ByteMatchSetId or IPSetId. The ID is returned by the corresponding Create or List command.
Trait Implementations§
source§impl Clone for PredicateBuilder
impl Clone for PredicateBuilder
source§fn clone(&self) -> PredicateBuilder
fn clone(&self) -> PredicateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PredicateBuilder
impl Debug for PredicateBuilder
source§impl Default for PredicateBuilder
impl Default for PredicateBuilder
source§fn default() -> PredicateBuilder
fn default() -> PredicateBuilder
source§impl PartialEq for PredicateBuilder
impl PartialEq for PredicateBuilder
source§fn eq(&self, other: &PredicateBuilder) -> bool
fn eq(&self, other: &PredicateBuilder) -> bool
self and other values to be equal, and is used
by ==.