Struct aws_sdk_waf::types::builders::RegexMatchSetBuilder
source · #[non_exhaustive]pub struct RegexMatchSetBuilder { /* private fields */ }Expand description
A builder for RegexMatchSet.
Implementations§
source§impl RegexMatchSetBuilder
impl RegexMatchSetBuilder
sourcepub fn regex_match_set_id(self, input: impl Into<String>) -> Self
pub fn regex_match_set_id(self, input: impl Into<String>) -> Self
The RegexMatchSetId for a RegexMatchSet. You use RegexMatchSetId to get information about a RegexMatchSet (see GetRegexMatchSet), update a RegexMatchSet (see UpdateRegexMatchSet), insert a RegexMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a RegexMatchSet from AWS WAF (see DeleteRegexMatchSet).
RegexMatchSetId is returned by CreateRegexMatchSet and by ListRegexMatchSets.
sourcepub fn set_regex_match_set_id(self, input: Option<String>) -> Self
pub fn set_regex_match_set_id(self, input: Option<String>) -> Self
The RegexMatchSetId for a RegexMatchSet. You use RegexMatchSetId to get information about a RegexMatchSet (see GetRegexMatchSet), update a RegexMatchSet (see UpdateRegexMatchSet), insert a RegexMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a RegexMatchSet from AWS WAF (see DeleteRegexMatchSet).
RegexMatchSetId is returned by CreateRegexMatchSet and by ListRegexMatchSets.
sourcepub fn get_regex_match_set_id(&self) -> &Option<String>
pub fn get_regex_match_set_id(&self) -> &Option<String>
The RegexMatchSetId for a RegexMatchSet. You use RegexMatchSetId to get information about a RegexMatchSet (see GetRegexMatchSet), update a RegexMatchSet (see UpdateRegexMatchSet), insert a RegexMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a RegexMatchSet from AWS WAF (see DeleteRegexMatchSet).
RegexMatchSetId is returned by CreateRegexMatchSet and by ListRegexMatchSets.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A friendly name or description of the RegexMatchSet. You can't change Name after you create a RegexMatchSet.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A friendly name or description of the RegexMatchSet. You can't change Name after you create a RegexMatchSet.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
A friendly name or description of the RegexMatchSet. You can't change Name after you create a RegexMatchSet.
sourcepub fn regex_match_tuples(self, input: RegexMatchTuple) -> Self
pub fn regex_match_tuples(self, input: RegexMatchTuple) -> Self
Appends an item to regex_match_tuples.
To override the contents of this collection use set_regex_match_tuples.
Contains an array of RegexMatchTuple objects. Each RegexMatchTuple object contains:
-
The part of a web request that you want AWS WAF to inspect, such as a query string or the value of the
User-Agentheader. -
The identifier of the pattern (a regular expression) that you want AWS WAF to look for. For more information, see
RegexPatternSet. -
Whether to perform any conversions on the request, such as converting it to lowercase, before inspecting it for the specified string.
sourcepub fn set_regex_match_tuples(self, input: Option<Vec<RegexMatchTuple>>) -> Self
pub fn set_regex_match_tuples(self, input: Option<Vec<RegexMatchTuple>>) -> Self
Contains an array of RegexMatchTuple objects. Each RegexMatchTuple object contains:
-
The part of a web request that you want AWS WAF to inspect, such as a query string or the value of the
User-Agentheader. -
The identifier of the pattern (a regular expression) that you want AWS WAF to look for. For more information, see
RegexPatternSet. -
Whether to perform any conversions on the request, such as converting it to lowercase, before inspecting it for the specified string.
sourcepub fn get_regex_match_tuples(&self) -> &Option<Vec<RegexMatchTuple>>
pub fn get_regex_match_tuples(&self) -> &Option<Vec<RegexMatchTuple>>
Contains an array of RegexMatchTuple objects. Each RegexMatchTuple object contains:
-
The part of a web request that you want AWS WAF to inspect, such as a query string or the value of the
User-Agentheader. -
The identifier of the pattern (a regular expression) that you want AWS WAF to look for. For more information, see
RegexPatternSet. -
Whether to perform any conversions on the request, such as converting it to lowercase, before inspecting it for the specified string.
sourcepub fn build(self) -> RegexMatchSet
pub fn build(self) -> RegexMatchSet
Consumes the builder and constructs a RegexMatchSet.
Trait Implementations§
source§impl Clone for RegexMatchSetBuilder
impl Clone for RegexMatchSetBuilder
source§fn clone(&self) -> RegexMatchSetBuilder
fn clone(&self) -> RegexMatchSetBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RegexMatchSetBuilder
impl Debug for RegexMatchSetBuilder
source§impl Default for RegexMatchSetBuilder
impl Default for RegexMatchSetBuilder
source§fn default() -> RegexMatchSetBuilder
fn default() -> RegexMatchSetBuilder
source§impl PartialEq for RegexMatchSetBuilder
impl PartialEq for RegexMatchSetBuilder
impl StructuralPartialEq for RegexMatchSetBuilder
Auto Trait Implementations§
impl Freeze for RegexMatchSetBuilder
impl RefUnwindSafe for RegexMatchSetBuilder
impl Send for RegexMatchSetBuilder
impl Sync for RegexMatchSetBuilder
impl Unpin for RegexMatchSetBuilder
impl UnwindSafe for RegexMatchSetBuilder
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