/** * 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 rule group. A rule group is a collection of * rules for inspecting and controlling web requests.

See Also:

* AWS * API Reference

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

The name of the metrics for this rule group.

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

The name of the metrics for this rule group.

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

The name of the metrics for this rule group.

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

The name of the metrics for this rule group.

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

The name of the metrics for this rule group.

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

The name of the metrics for this rule group.

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

The name of the metrics for this rule group.

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

The name of the metrics for this rule group.

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

The name of the rule group.

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

The name of the rule group.

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

The name of the rule group.

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

The name of the rule group.

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

The name of the rule group.

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

The name of the rule group.

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

The name of the rule group.

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

The name of the rule group.

*/ inline AwsWafRuleGroupDetails& 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 AwsWafRuleGroupDetails& WithRuleGroupId(const Aws::String& value) { SetRuleGroupId(value); return *this;} /** *

The ID of the rule group.

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

The ID of the rule group.

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

Provides information about the rules attached to the rule group. These rules * 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 rules attached to the rule group. These rules * identify the web requests that you want to allow, block, or count.

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

Provides information about the rules attached to the rule group. These rules * 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 rules attached to the rule group. These rules * 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 rules attached to the rule group. These rules * identify the web requests that you want to allow, block, or count.

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

Provides information about the rules attached to the rule group. These rules * identify the web requests that you want to allow, block, or count.

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

Provides information about the rules attached to the rule group. These rules * identify the web requests that you want to allow, block, or count.

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

Provides information about the rules attached to the rule group. These rules * identify the web requests that you want to allow, block, or count.

*/ inline AwsWafRuleGroupDetails& AddRules(AwsWafRuleGroupRulesDetails&& 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