/** * 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 WAF { namespace Model { /** *

This is AWS WAF Classic documentation. For more information, * see AWS * WAF Classic in the developer guide.

For the latest version of AWS * WAF, use the AWS WAFV2 API and see the AWS * WAF Developer Guide. With the latest version, AWS WAF has a single set of * endpoints for regional and global use.

A summary of the rule * groups you are subscribed to.

See Also:

AWS * API Reference

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

A unique identifier for a RuleGroup.

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

A unique identifier for a RuleGroup.

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

A unique identifier for a RuleGroup.

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

A unique identifier for a RuleGroup.

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

A unique identifier for a RuleGroup.

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

A unique identifier for a RuleGroup.

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

A unique identifier for a RuleGroup.

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

A unique identifier for a RuleGroup.

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

A friendly name or description of the RuleGroup. You can't * change the name of a RuleGroup after you create it.

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

A friendly name or description of the RuleGroup. You can't * change the name of a RuleGroup after you create it.

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

A friendly name or description of the RuleGroup. You can't * change the name of a RuleGroup after you create it.

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

A friendly name or description of the RuleGroup. You can't * change the name of a RuleGroup after you create it.

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

A friendly name or description of the RuleGroup. You can't * change the name of a RuleGroup after you create it.

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

A friendly name or description of the RuleGroup. You can't * change the name of a RuleGroup after you create it.

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

A friendly name or description of the RuleGroup. You can't * change the name of a RuleGroup after you create it.

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

A friendly name or description of the RuleGroup. You can't * change the name of a RuleGroup after you create it.

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

A friendly name or description for the metrics for this * RuleGroup. The name can contain only alphanumeric characters (A-Z, * a-z, 0-9), with maximum length 128 and minimum length one. It can't contain * whitespace or metric names reserved for AWS WAF, including "All" and * "Default_Action." You can't change the name of the metric after you create the * RuleGroup.

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

A friendly name or description for the metrics for this * RuleGroup. The name can contain only alphanumeric characters (A-Z, * a-z, 0-9), with maximum length 128 and minimum length one. It can't contain * whitespace or metric names reserved for AWS WAF, including "All" and * "Default_Action." You can't change the name of the metric after you create the * RuleGroup.

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

A friendly name or description for the metrics for this * RuleGroup. The name can contain only alphanumeric characters (A-Z, * a-z, 0-9), with maximum length 128 and minimum length one. It can't contain * whitespace or metric names reserved for AWS WAF, including "All" and * "Default_Action." You can't change the name of the metric after you create the * RuleGroup.

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

A friendly name or description for the metrics for this * RuleGroup. The name can contain only alphanumeric characters (A-Z, * a-z, 0-9), with maximum length 128 and minimum length one. It can't contain * whitespace or metric names reserved for AWS WAF, including "All" and * "Default_Action." You can't change the name of the metric after you create the * RuleGroup.

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

A friendly name or description for the metrics for this * RuleGroup. The name can contain only alphanumeric characters (A-Z, * a-z, 0-9), with maximum length 128 and minimum length one. It can't contain * whitespace or metric names reserved for AWS WAF, including "All" and * "Default_Action." You can't change the name of the metric after you create the * RuleGroup.

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

A friendly name or description for the metrics for this * RuleGroup. The name can contain only alphanumeric characters (A-Z, * a-z, 0-9), with maximum length 128 and minimum length one. It can't contain * whitespace or metric names reserved for AWS WAF, including "All" and * "Default_Action." You can't change the name of the metric after you create the * RuleGroup.

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

A friendly name or description for the metrics for this * RuleGroup. The name can contain only alphanumeric characters (A-Z, * a-z, 0-9), with maximum length 128 and minimum length one. It can't contain * whitespace or metric names reserved for AWS WAF, including "All" and * "Default_Action." You can't change the name of the metric after you create the * RuleGroup.

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

A friendly name or description for the metrics for this * RuleGroup. The name can contain only alphanumeric characters (A-Z, * a-z, 0-9), with maximum length 128 and minimum length one. It can't contain * whitespace or metric names reserved for AWS WAF, including "All" and * "Default_Action." You can't change the name of the metric after you create the * RuleGroup.

*/ inline SubscribedRuleGroupSummary& WithMetricName(const char* value) { SetMetricName(value); return *this;} private: Aws::String m_ruleGroupId; bool m_ruleGroupIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_metricName; bool m_metricNameHasBeenSet = false; }; } // namespace Model } // namespace WAF } // namespace Aws