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 ==
.