/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace WAFV2 { namespace Model { /** *

A single label name condition for a Condition in a logging * filter.

See Also:

AWS * API Reference

*/ class LabelNameCondition { public: AWS_WAFV2_API LabelNameCondition(); AWS_WAFV2_API LabelNameCondition(Aws::Utils::Json::JsonView jsonValue); AWS_WAFV2_API LabelNameCondition& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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.

*/ inline const Aws::String& GetLabelName() const{ return m_labelName; } /** *

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.

*/ inline bool LabelNameHasBeenSet() const { return m_labelNameHasBeenSet; } /** *

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.

*/ inline void SetLabelName(const Aws::String& value) { m_labelNameHasBeenSet = true; m_labelName = value; } /** *

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.

*/ inline void SetLabelName(Aws::String&& value) { m_labelNameHasBeenSet = true; m_labelName = std::move(value); } /** *

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.

*/ inline void SetLabelName(const char* value) { m_labelNameHasBeenSet = true; m_labelName.assign(value); } /** *

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.

*/ inline LabelNameCondition& WithLabelName(const Aws::String& value) { SetLabelName(value); return *this;} /** *

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.

*/ inline LabelNameCondition& WithLabelName(Aws::String&& value) { SetLabelName(std::move(value)); return *this;} /** *

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.

*/ inline LabelNameCondition& WithLabelName(const char* value) { SetLabelName(value); return *this;} private: Aws::String m_labelName; bool m_labelNameHasBeenSet = false; }; } // namespace Model } // namespace WAFV2 } // namespace Aws