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
impl StructuralPartialEq for PredicateBuilder
Auto Trait Implementations§
impl Freeze for PredicateBuilder
impl RefUnwindSafe for PredicateBuilder
impl Send for PredicateBuilder
impl Sync for PredicateBuilder
impl Unpin for PredicateBuilder
impl UnwindSafe for PredicateBuilder
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