/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides information about a WAF rule. This rule specifies the web requests
* that you want to allow, block, or count. See Also:
AWS
* API Reference
The name of the metrics for this rule.
*/ inline const Aws::String& GetMetricName() const{ return m_metricName; } /** *The name of the metrics for this rule.
*/ inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } /** *The name of the metrics for this rule.
*/ inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } /** *The name of the metrics for this rule.
*/ inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } /** *The name of the metrics for this rule.
*/ inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } /** *The name of the metrics for this rule.
*/ inline AwsWafRuleDetails& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *The name of the metrics for this rule.
*/ inline AwsWafRuleDetails& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} /** *The name of the metrics for this rule.
*/ inline AwsWafRuleDetails& WithMetricName(const char* value) { SetMetricName(value); return *this;} /** *A descriptive name for the rule.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *A descriptive name for the rule.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *A descriptive name for the rule.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *A descriptive name for the rule.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *A descriptive name for the rule.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *A descriptive name for the rule.
*/ inline AwsWafRuleDetails& WithName(const Aws::String& value) { SetName(value); return *this;} /** *A descriptive name for the rule.
*/ inline AwsWafRuleDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *A descriptive name for the rule.
*/ inline AwsWafRuleDetails& WithName(const char* value) { SetName(value); return *this;} /** *Specifies the ByteMatchSet
, IPSet
,
* SqlInjectionMatchSet
, XssMatchSet
,
* RegexMatchSet
, GeoMatchSet
, and
* SizeConstraintSet
objects that you want to add to a rule and, for
* each object, indicates whether you want to negate the settings.
Specifies the ByteMatchSet
, IPSet
,
* SqlInjectionMatchSet
, XssMatchSet
,
* RegexMatchSet
, GeoMatchSet
, and
* SizeConstraintSet
objects that you want to add to a rule and, for
* each object, indicates whether you want to negate the settings.
Specifies the ByteMatchSet
, IPSet
,
* SqlInjectionMatchSet
, XssMatchSet
,
* RegexMatchSet
, GeoMatchSet
, and
* SizeConstraintSet
objects that you want to add to a rule and, for
* each object, indicates whether you want to negate the settings.
Specifies the ByteMatchSet
, IPSet
,
* SqlInjectionMatchSet
, XssMatchSet
,
* RegexMatchSet
, GeoMatchSet
, and
* SizeConstraintSet
objects that you want to add to a rule and, for
* each object, indicates whether you want to negate the settings.
Specifies the ByteMatchSet
, IPSet
,
* SqlInjectionMatchSet
, XssMatchSet
,
* RegexMatchSet
, GeoMatchSet
, and
* SizeConstraintSet
objects that you want to add to a rule and, for
* each object, indicates whether you want to negate the settings.
Specifies the ByteMatchSet
, IPSet
,
* SqlInjectionMatchSet
, XssMatchSet
,
* RegexMatchSet
, GeoMatchSet
, and
* SizeConstraintSet
objects that you want to add to a rule and, for
* each object, indicates whether you want to negate the settings.
Specifies the ByteMatchSet
, IPSet
,
* SqlInjectionMatchSet
, XssMatchSet
,
* RegexMatchSet
, GeoMatchSet
, and
* SizeConstraintSet
objects that you want to add to a rule and, for
* each object, indicates whether you want to negate the settings.
Specifies the ByteMatchSet
, IPSet
,
* SqlInjectionMatchSet
, XssMatchSet
,
* RegexMatchSet
, GeoMatchSet
, and
* SizeConstraintSet
objects that you want to add to a rule and, for
* each object, indicates whether you want to negate the settings.
The ID of the WAF rule.
*/ inline const Aws::String& GetRuleId() const{ return m_ruleId; } /** *The ID of the WAF rule.
*/ inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; } /** *The ID of the WAF rule.
*/ inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; } /** *The ID of the WAF rule.
*/ inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); } /** *The ID of the WAF rule.
*/ inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); } /** *The ID of the WAF rule.
*/ inline AwsWafRuleDetails& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;} /** *The ID of the WAF rule.
*/ inline AwsWafRuleDetails& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;} /** *The ID of the WAF rule.
*/ inline AwsWafRuleDetails& WithRuleId(const char* value) { SetRuleId(value); return *this;} private: Aws::String m_metricName; bool m_metricNameHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector