Struct aws_sdk_waf::types::builders::ByteMatchSetBuilder
source · #[non_exhaustive]pub struct ByteMatchSetBuilder { /* private fields */ }Expand description
A builder for ByteMatchSet.
Implementations§
source§impl ByteMatchSetBuilder
impl ByteMatchSetBuilder
sourcepub fn byte_match_set_id(self, input: impl Into<String>) -> Self
pub fn byte_match_set_id(self, input: impl Into<String>) -> Self
The ByteMatchSetId for a ByteMatchSet. You use ByteMatchSetId to get information about a ByteMatchSet (see GetByteMatchSet), update a ByteMatchSet (see UpdateByteMatchSet), insert a ByteMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a ByteMatchSet from AWS WAF (see DeleteByteMatchSet).
ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets.
sourcepub fn set_byte_match_set_id(self, input: Option<String>) -> Self
pub fn set_byte_match_set_id(self, input: Option<String>) -> Self
The ByteMatchSetId for a ByteMatchSet. You use ByteMatchSetId to get information about a ByteMatchSet (see GetByteMatchSet), update a ByteMatchSet (see UpdateByteMatchSet), insert a ByteMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a ByteMatchSet from AWS WAF (see DeleteByteMatchSet).
ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets.
sourcepub fn get_byte_match_set_id(&self) -> &Option<String>
pub fn get_byte_match_set_id(&self) -> &Option<String>
The ByteMatchSetId for a ByteMatchSet. You use ByteMatchSetId to get information about a ByteMatchSet (see GetByteMatchSet), update a ByteMatchSet (see UpdateByteMatchSet), insert a ByteMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a ByteMatchSet from AWS WAF (see DeleteByteMatchSet).
ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets.
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 ByteMatchSet. You can't change Name after you create a ByteMatchSet.
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 ByteMatchSet. You can't change Name after you create a ByteMatchSet.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
A friendly name or description of the ByteMatchSet. You can't change Name after you create a ByteMatchSet.
sourcepub fn byte_match_tuples(self, input: ByteMatchTuple) -> Self
pub fn byte_match_tuples(self, input: ByteMatchTuple) -> Self
Appends an item to byte_match_tuples.
To override the contents of this collection use set_byte_match_tuples.
Specifies the bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings.
sourcepub fn set_byte_match_tuples(self, input: Option<Vec<ByteMatchTuple>>) -> Self
pub fn set_byte_match_tuples(self, input: Option<Vec<ByteMatchTuple>>) -> Self
Specifies the bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings.
sourcepub fn get_byte_match_tuples(&self) -> &Option<Vec<ByteMatchTuple>>
pub fn get_byte_match_tuples(&self) -> &Option<Vec<ByteMatchTuple>>
Specifies the bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings.
sourcepub fn build(self) -> Result<ByteMatchSet, BuildError>
pub fn build(self) -> Result<ByteMatchSet, BuildError>
Consumes the builder and constructs a ByteMatchSet.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ByteMatchSetBuilder
impl Clone for ByteMatchSetBuilder
source§fn clone(&self) -> ByteMatchSetBuilder
fn clone(&self) -> ByteMatchSetBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ByteMatchSetBuilder
impl Debug for ByteMatchSetBuilder
source§impl Default for ByteMatchSetBuilder
impl Default for ByteMatchSetBuilder
source§fn default() -> ByteMatchSetBuilder
fn default() -> ByteMatchSetBuilder
source§impl PartialEq for ByteMatchSetBuilder
impl PartialEq for ByteMatchSetBuilder
impl StructuralPartialEq for ByteMatchSetBuilder
Auto Trait Implementations§
impl Freeze for ByteMatchSetBuilder
impl RefUnwindSafe for ByteMatchSetBuilder
impl Send for ByteMatchSetBuilder
impl Sync for ByteMatchSetBuilder
impl Unpin for ByteMatchSetBuilder
impl UnwindSafe for ByteMatchSetBuilder
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