/** * 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 { /** *

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 * Amazon Web Services Managed Rules rule groups and Amazon Web Services * Marketplace managed rule groups. To use any Amazon Web Services Marketplace * managed rule group, first subscribe to the rule group through Amazon Web * Services Marketplace.

See Also:

AWS * API Reference

*/ class ManagedRuleGroupSummary { public: AWS_WAFV2_API ManagedRuleGroupSummary(); AWS_WAFV2_API ManagedRuleGroupSummary(Aws::Utils::Json::JsonView jsonValue); AWS_WAFV2_API ManagedRuleGroupSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_WAFV2_API 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 a 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 a 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 a 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 a 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 a 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 a 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 a 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 a 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;} /** *

Indicates whether the managed rule group is versioned. If it is, you can * retrieve the versions list by calling * ListAvailableManagedRuleGroupVersions.

*/ inline bool GetVersioningSupported() const{ return m_versioningSupported; } /** *

Indicates whether the managed rule group is versioned. If it is, you can * retrieve the versions list by calling * ListAvailableManagedRuleGroupVersions.

*/ inline bool VersioningSupportedHasBeenSet() const { return m_versioningSupportedHasBeenSet; } /** *

Indicates whether the managed rule group is versioned. If it is, you can * retrieve the versions list by calling * ListAvailableManagedRuleGroupVersions.

*/ inline void SetVersioningSupported(bool value) { m_versioningSupportedHasBeenSet = true; m_versioningSupported = value; } /** *

Indicates whether the managed rule group is versioned. If it is, you can * retrieve the versions list by calling * ListAvailableManagedRuleGroupVersions.

*/ inline ManagedRuleGroupSummary& WithVersioningSupported(bool value) { SetVersioningSupported(value); return *this;} /** *

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

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

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

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

The description of the managed rule group, provided by Amazon Web Services * Managed Rules or the Amazon Web Services 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 Amazon Web Services * Managed Rules or the Amazon Web Services 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 Amazon Web Services * Managed Rules or the Amazon Web Services 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 Amazon Web Services * Managed Rules or the Amazon Web Services 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 Amazon Web Services * Managed Rules or the Amazon Web Services 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 Amazon Web Services * Managed Rules or the Amazon Web Services Marketplace seller who manages it.

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