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

This is the latest version of AWS WAF, named AWS WAFV2, * released in November, 2019. For information, including how to migrate your AWS * WAF resources from the prior release, see the AWS * WAF Developer Guide.

High-level information about a managed * rule group, returned by ListAvailableManagedRuleGroups. This provides * information like the name and vendor name, that you provide when you add a * ManagedRuleGroupStatement to a web ACL. Managed rule groups include AWS * Managed Rules rule groups, which are free of charge to AWS WAF customers, and * AWS Marketplace managed rule groups, which you can subscribe to through AWS * Marketplace.

See Also:

AWS * API Reference

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

The name of the managed rule group vendor. You use this, along with the rule * group name, to identify the rule group.

*/ inline const Aws::String& GetVendorName() const{ return m_vendorName; } /** *

The name of the managed rule group vendor. You use this, along with the rule * group name, to identify the rule group.

*/ inline bool VendorNameHasBeenSet() const { return m_vendorNameHasBeenSet; } /** *

The name of the managed rule group vendor. You use this, along with the rule * group name, to identify the rule group.

*/ inline void SetVendorName(const Aws::String& value) { m_vendorNameHasBeenSet = true; m_vendorName = value; } /** *

The name of the managed rule group vendor. You use this, along with the rule * group name, to identify the rule group.

*/ inline void SetVendorName(Aws::String&& value) { m_vendorNameHasBeenSet = true; m_vendorName = std::move(value); } /** *

The name of the managed rule group vendor. You use this, along with the rule * group name, to identify the rule group.

*/ inline void SetVendorName(const char* value) { m_vendorNameHasBeenSet = true; m_vendorName.assign(value); } /** *

The name of the managed rule group vendor. You use this, along with the rule * group name, to identify the rule group.

*/ inline ManagedRuleGroupSummary& WithVendorName(const Aws::String& value) { SetVendorName(value); return *this;} /** *

The name of the managed rule group vendor. You use this, along with the rule * group name, to identify the rule group.

*/ inline ManagedRuleGroupSummary& WithVendorName(Aws::String&& value) { SetVendorName(std::move(value)); return *this;} /** *

The name of the managed rule group vendor. You use this, along with the rule * group name, to identify the rule group.

*/ inline ManagedRuleGroupSummary& WithVendorName(const char* value) { SetVendorName(value); return *this;} /** *

The name of the managed rule group. You use this, along with the vendor name, * to identify the rule group.

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

The name of the managed rule group. You use this, along with the vendor name, * to identify the rule group.

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

The name of the managed rule group. You use this, along with the vendor name, * to identify the rule group.

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

The name of the managed rule group. You use this, along with the vendor name, * to identify the rule group.

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

The name of the managed rule group. You use this, along with the vendor name, * to identify the rule group.

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

The name of the managed rule group. You use this, along with the vendor name, * to identify the rule group.

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

The name of the managed rule group. You use this, along with the vendor name, * to identify the rule group.

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

The name of the managed rule group. You use this, along with the vendor name, * to identify the rule group.

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

The description of the managed rule group, provided by AWS Managed Rules or * the AWS Marketplace seller who manages it.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the managed rule group, provided by AWS Managed Rules or * the AWS Marketplace seller who manages it.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the managed rule group, provided by AWS Managed Rules or * the AWS Marketplace seller who manages it.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the managed rule group, provided by AWS Managed Rules or * the AWS Marketplace seller who manages it.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the managed rule group, provided by AWS Managed Rules or * the AWS Marketplace seller who manages it.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the managed rule group, provided by AWS Managed Rules or * the AWS Marketplace seller who manages it.

*/ inline ManagedRuleGroupSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the managed rule group, provided by AWS Managed Rules or * the AWS Marketplace seller who manages it.

*/ inline ManagedRuleGroupSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the managed rule group, provided by AWS Managed Rules or * the AWS Marketplace seller who manages it.

*/ inline ManagedRuleGroupSummary& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_vendorName; bool m_vendorNameHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_description; bool m_descriptionHasBeenSet; }; } // namespace Model } // namespace WAFV2 } // namespace Aws