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
source§fn eq(&self, other: &RegexMatchSetBuilder) -> bool
fn eq(&self, other: &RegexMatchSetBuilder) -> bool
self and other values to be equal, and is used
by ==.