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