Struct aws_sdk_wafv2::types::builders::LabelNameConditionBuilder
source · #[non_exhaustive]pub struct LabelNameConditionBuilder { /* private fields */ }
Expand description
A builder for LabelNameCondition
.
Implementations§
source§impl LabelNameConditionBuilder
impl LabelNameConditionBuilder
sourcepub fn label_name(self, input: impl Into<String>) -> Self
pub fn label_name(self, input: impl Into<String>) -> Self
The label name that a log record must contain in order to meet the condition. This must be a fully qualified label name. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.
This field is required.sourcepub fn set_label_name(self, input: Option<String>) -> Self
pub fn set_label_name(self, input: Option<String>) -> Self
The label name that a log record must contain in order to meet the condition. This must be a fully qualified label name. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.
sourcepub fn get_label_name(&self) -> &Option<String>
pub fn get_label_name(&self) -> &Option<String>
The label name that a log record must contain in order to meet the condition. This must be a fully qualified label name. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.
sourcepub fn build(self) -> Result<LabelNameCondition, BuildError>
pub fn build(self) -> Result<LabelNameCondition, BuildError>
Consumes the builder and constructs a LabelNameCondition
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for LabelNameConditionBuilder
impl Clone for LabelNameConditionBuilder
source§fn clone(&self) -> LabelNameConditionBuilder
fn clone(&self) -> LabelNameConditionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LabelNameConditionBuilder
impl Debug for LabelNameConditionBuilder
source§impl Default for LabelNameConditionBuilder
impl Default for LabelNameConditionBuilder
source§fn default() -> LabelNameConditionBuilder
fn default() -> LabelNameConditionBuilder
source§impl PartialEq for LabelNameConditionBuilder
impl PartialEq for LabelNameConditionBuilder
source§fn eq(&self, other: &LabelNameConditionBuilder) -> bool
fn eq(&self, other: &LabelNameConditionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LabelNameConditionBuilder
Auto Trait Implementations§
impl Freeze for LabelNameConditionBuilder
impl RefUnwindSafe for LabelNameConditionBuilder
impl Send for LabelNameConditionBuilder
impl Sync for LabelNameConditionBuilder
impl Unpin for LabelNameConditionBuilder
impl UnwindSafe for LabelNameConditionBuilder
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