/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A single label name condition for a Condition in a logging
* filter.See Also:
AWS
* API Reference
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