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

Provides information about an WAF Regional rule group. The rule group is a * collection of rules for inspecting and controlling web requests.

See * Also:

AWS * API Reference

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

A name for the metrics for this rule group.

*/ inline const Aws::String& GetMetricName() const{ return m_metricName; } /** *

A name for the metrics for this rule group.

*/ inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } /** *

A name for the metrics for this rule group.

*/ inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } /** *

A name for the metrics for this rule group.

*/ inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } /** *

A name for the metrics for this rule group.

*/ inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } /** *

A name for the metrics for this rule group.

*/ inline AwsWafRegionalRuleGroupDetails& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *

A name for the metrics for this rule group.

*/ inline AwsWafRegionalRuleGroupDetails& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} /** *

A name for the metrics for this rule group.

*/ inline AwsWafRegionalRuleGroupDetails& WithMetricName(const char* value) { SetMetricName(value); return *this;} /** *

The descriptive name of the rule group.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The descriptive name of the rule group.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The descriptive name of the rule group.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The descriptive name of the rule group.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The descriptive name of the rule group.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The descriptive name of the rule group.

*/ inline AwsWafRegionalRuleGroupDetails& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The descriptive name of the rule group.

*/ inline AwsWafRegionalRuleGroupDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The descriptive name of the rule group.

*/ inline AwsWafRegionalRuleGroupDetails& WithName(const char* value) { SetName(value); return *this;} /** *

The ID of the rule group.

*/ inline const Aws::String& GetRuleGroupId() const{ return m_ruleGroupId; } /** *

The ID of the rule group.

*/ inline bool RuleGroupIdHasBeenSet() const { return m_ruleGroupIdHasBeenSet; } /** *

The ID of the rule group.

*/ inline void SetRuleGroupId(const Aws::String& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = value; } /** *

The ID of the rule group.

*/ inline void SetRuleGroupId(Aws::String&& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = std::move(value); } /** *

The ID of the rule group.

*/ inline void SetRuleGroupId(const char* value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId.assign(value); } /** *

The ID of the rule group.

*/ inline AwsWafRegionalRuleGroupDetails& WithRuleGroupId(const Aws::String& value) { SetRuleGroupId(value); return *this;} /** *

The ID of the rule group.

*/ inline AwsWafRegionalRuleGroupDetails& WithRuleGroupId(Aws::String&& value) { SetRuleGroupId(std::move(value)); return *this;} /** *

The ID of the rule group.

*/ inline AwsWafRegionalRuleGroupDetails& WithRuleGroupId(const char* value) { SetRuleGroupId(value); return *this;} /** *

Provides information about the rule statements used to identify the web * requests that you want to allow, block, or count.

*/ inline const Aws::Vector& GetRules() const{ return m_rules; } /** *

Provides information about the rule statements used to identify the web * requests that you want to allow, block, or count.

*/ inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; } /** *

Provides information about the rule statements used to identify the web * requests that you want to allow, block, or count.

*/ inline void SetRules(const Aws::Vector& value) { m_rulesHasBeenSet = true; m_rules = value; } /** *

Provides information about the rule statements used to identify the web * requests that you want to allow, block, or count.

*/ inline void SetRules(Aws::Vector&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); } /** *

Provides information about the rule statements used to identify the web * requests that you want to allow, block, or count.

*/ inline AwsWafRegionalRuleGroupDetails& WithRules(const Aws::Vector& value) { SetRules(value); return *this;} /** *

Provides information about the rule statements used to identify the web * requests that you want to allow, block, or count.

*/ inline AwsWafRegionalRuleGroupDetails& WithRules(Aws::Vector&& value) { SetRules(std::move(value)); return *this;} /** *

Provides information about the rule statements used to identify the web * requests that you want to allow, block, or count.

*/ inline AwsWafRegionalRuleGroupDetails& AddRules(const AwsWafRegionalRuleGroupRulesDetails& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; } /** *

Provides information about the rule statements used to identify the web * requests that you want to allow, block, or count.

*/ inline AwsWafRegionalRuleGroupDetails& AddRules(AwsWafRegionalRuleGroupRulesDetails&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; } private: Aws::String m_metricName; bool m_metricNameHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_ruleGroupId; bool m_ruleGroupIdHasBeenSet = false; Aws::Vector m_rules; bool m_rulesHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws