Struct aws_sdk_wafv2::types::builders::LabelMatchStatementBuilder
source · #[non_exhaustive]pub struct LabelMatchStatementBuilder { /* private fields */ }
Expand description
A builder for LabelMatchStatement
.
Implementations§
source§impl LabelMatchStatementBuilder
impl LabelMatchStatementBuilder
sourcepub fn scope(self, input: LabelMatchScope) -> Self
pub fn scope(self, input: LabelMatchScope) -> Self
Specify whether you want to match using the label name or just the namespace.
This field is required.sourcepub fn set_scope(self, input: Option<LabelMatchScope>) -> Self
pub fn set_scope(self, input: Option<LabelMatchScope>) -> Self
Specify whether you want to match using the label name or just the namespace.
sourcepub fn get_scope(&self) -> &Option<LabelMatchScope>
pub fn get_scope(&self) -> &Option<LabelMatchScope>
Specify whether you want to match using the label name or just the namespace.
sourcepub fn key(self, input: impl Into<String>) -> Self
pub fn key(self, input: impl Into<String>) -> Self
The string to match against. The setting you provide for this depends on the match statement's Scope
setting:
-
If the
Scope
indicatesLABEL
, then this specification must include the name and can include any number of preceding namespace specifications and prefix up to providing the fully qualified label name. -
If the
Scope
indicatesNAMESPACE
, then this specification can include any number of contiguous namespace strings, and can include the entire label namespace prefix from the rule group or web ACL where the label originates.
Labels are case sensitive and components of a label must be separated by colon, for example NS1:NS2:name
.
sourcepub fn set_key(self, input: Option<String>) -> Self
pub fn set_key(self, input: Option<String>) -> Self
The string to match against. The setting you provide for this depends on the match statement's Scope
setting:
-
If the
Scope
indicatesLABEL
, then this specification must include the name and can include any number of preceding namespace specifications and prefix up to providing the fully qualified label name. -
If the
Scope
indicatesNAMESPACE
, then this specification can include any number of contiguous namespace strings, and can include the entire label namespace prefix from the rule group or web ACL where the label originates.
Labels are case sensitive and components of a label must be separated by colon, for example NS1:NS2:name
.
sourcepub fn get_key(&self) -> &Option<String>
pub fn get_key(&self) -> &Option<String>
The string to match against. The setting you provide for this depends on the match statement's Scope
setting:
-
If the
Scope
indicatesLABEL
, then this specification must include the name and can include any number of preceding namespace specifications and prefix up to providing the fully qualified label name. -
If the
Scope
indicatesNAMESPACE
, then this specification can include any number of contiguous namespace strings, and can include the entire label namespace prefix from the rule group or web ACL where the label originates.
Labels are case sensitive and components of a label must be separated by colon, for example NS1:NS2:name
.
sourcepub fn build(self) -> Result<LabelMatchStatement, BuildError>
pub fn build(self) -> Result<LabelMatchStatement, BuildError>
Consumes the builder and constructs a LabelMatchStatement
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for LabelMatchStatementBuilder
impl Clone for LabelMatchStatementBuilder
source§fn clone(&self) -> LabelMatchStatementBuilder
fn clone(&self) -> LabelMatchStatementBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LabelMatchStatementBuilder
impl Debug for LabelMatchStatementBuilder
source§impl Default for LabelMatchStatementBuilder
impl Default for LabelMatchStatementBuilder
source§fn default() -> LabelMatchStatementBuilder
fn default() -> LabelMatchStatementBuilder
source§impl PartialEq for LabelMatchStatementBuilder
impl PartialEq for LabelMatchStatementBuilder
source§fn eq(&self, other: &LabelMatchStatementBuilder) -> bool
fn eq(&self, other: &LabelMatchStatementBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LabelMatchStatementBuilder
Auto Trait Implementations§
impl Freeze for LabelMatchStatementBuilder
impl RefUnwindSafe for LabelMatchStatementBuilder
impl Send for LabelMatchStatementBuilder
impl Sync for LabelMatchStatementBuilder
impl Unpin for LabelMatchStatementBuilder
impl UnwindSafe for LabelMatchStatementBuilder
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> 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