Struct aws_sdk_waf::types::builders::RegexPatternSetBuilder
source · #[non_exhaustive]pub struct RegexPatternSetBuilder { /* private fields */ }Expand description
A builder for RegexPatternSet.
Implementations§
source§impl RegexPatternSetBuilder
impl RegexPatternSetBuilder
sourcepub fn regex_pattern_set_id(self, input: impl Into<String>) -> Self
pub fn regex_pattern_set_id(self, input: impl Into<String>) -> Self
The identifier for the RegexPatternSet. You use RegexPatternSetId to get information about a RegexPatternSet, update a RegexPatternSet, remove a RegexPatternSet from a RegexMatchSet, and delete a RegexPatternSet from AWS WAF.
RegexMatchSetId is returned by CreateRegexPatternSet and by ListRegexPatternSets.
sourcepub fn set_regex_pattern_set_id(self, input: Option<String>) -> Self
pub fn set_regex_pattern_set_id(self, input: Option<String>) -> Self
The identifier for the RegexPatternSet. You use RegexPatternSetId to get information about a RegexPatternSet, update a RegexPatternSet, remove a RegexPatternSet from a RegexMatchSet, and delete a RegexPatternSet from AWS WAF.
RegexMatchSetId is returned by CreateRegexPatternSet and by ListRegexPatternSets.
sourcepub fn get_regex_pattern_set_id(&self) -> &Option<String>
pub fn get_regex_pattern_set_id(&self) -> &Option<String>
The identifier for the RegexPatternSet. You use RegexPatternSetId to get information about a RegexPatternSet, update a RegexPatternSet, remove a RegexPatternSet from a RegexMatchSet, and delete a RegexPatternSet from AWS WAF.
RegexMatchSetId is returned by CreateRegexPatternSet and by ListRegexPatternSets.
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 RegexPatternSet. You can't change Name after you create a RegexPatternSet.
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 RegexPatternSet. You can't change Name after you create a RegexPatternSet.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
A friendly name or description of the RegexPatternSet. You can't change Name after you create a RegexPatternSet.
sourcepub fn regex_pattern_strings(self, input: impl Into<String>) -> Self
pub fn regex_pattern_strings(self, input: impl Into<String>) -> Self
Appends an item to regex_pattern_strings.
To override the contents of this collection use set_regex_pattern_strings.
Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as B[a@]dB[o0]t.
sourcepub fn set_regex_pattern_strings(self, input: Option<Vec<String>>) -> Self
pub fn set_regex_pattern_strings(self, input: Option<Vec<String>>) -> Self
Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as B[a@]dB[o0]t.
sourcepub fn get_regex_pattern_strings(&self) -> &Option<Vec<String>>
pub fn get_regex_pattern_strings(&self) -> &Option<Vec<String>>
Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as B[a@]dB[o0]t.
sourcepub fn build(self) -> Result<RegexPatternSet, BuildError>
pub fn build(self) -> Result<RegexPatternSet, BuildError>
Consumes the builder and constructs a RegexPatternSet.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RegexPatternSetBuilder
impl Clone for RegexPatternSetBuilder
source§fn clone(&self) -> RegexPatternSetBuilder
fn clone(&self) -> RegexPatternSetBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RegexPatternSetBuilder
impl Debug for RegexPatternSetBuilder
source§impl Default for RegexPatternSetBuilder
impl Default for RegexPatternSetBuilder
source§fn default() -> RegexPatternSetBuilder
fn default() -> RegexPatternSetBuilder
source§impl PartialEq for RegexPatternSetBuilder
impl PartialEq for RegexPatternSetBuilder
source§fn eq(&self, other: &RegexPatternSetBuilder) -> bool
fn eq(&self, other: &RegexPatternSetBuilder) -> bool
self and other values to be equal, and is used
by ==.