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

Details about an WAFv2 web Access Control List (ACL).

See * Also:

AWS * API Reference

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

The name of the web ACL.

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

The name of the web ACL.

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

The name of the web ACL.

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

The name of the web ACL.

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

The name of the web ACL.

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

The name of the web ACL.

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

The name of the web ACL.

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

The name of the web ACL.

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

The Amazon Resource Name (ARN) of the web ACL that you want to associate * with the resource.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate * with the resource.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate * with the resource.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate * with the resource.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate * with the resource.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate * with the resource.

*/ inline AwsWafv2WebAclDetails& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate * with the resource.

*/ inline AwsWafv2WebAclDetails& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate * with the resource.

*/ inline AwsWafv2WebAclDetails& WithArn(const char* value) { SetArn(value); return *this;} /** *

Indicates whether this web ACL is managed by Firewall Manager.

*/ inline bool GetManagedbyFirewallManager() const{ return m_managedbyFirewallManager; } /** *

Indicates whether this web ACL is managed by Firewall Manager.

*/ inline bool ManagedbyFirewallManagerHasBeenSet() const { return m_managedbyFirewallManagerHasBeenSet; } /** *

Indicates whether this web ACL is managed by Firewall Manager.

*/ inline void SetManagedbyFirewallManager(bool value) { m_managedbyFirewallManagerHasBeenSet = true; m_managedbyFirewallManager = value; } /** *

Indicates whether this web ACL is managed by Firewall Manager.

*/ inline AwsWafv2WebAclDetails& WithManagedbyFirewallManager(bool value) { SetManagedbyFirewallManager(value); return *this;} /** *

A unique identifier for the web ACL.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

A unique identifier for the web ACL.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

A unique identifier for the web ACL.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

A unique identifier for the web ACL.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

A unique identifier for the web ACL.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

A unique identifier for the web ACL.

*/ inline AwsWafv2WebAclDetails& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

A unique identifier for the web ACL.

*/ inline AwsWafv2WebAclDetails& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

A unique identifier for the web ACL.

*/ inline AwsWafv2WebAclDetails& WithId(const char* value) { SetId(value); return *this;} /** *

The web ACL capacity units (WCUs) currently being used by this web ACL.

*/ inline long long GetCapacity() const{ return m_capacity; } /** *

The web ACL capacity units (WCUs) currently being used by this web ACL.

*/ inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; } /** *

The web ACL capacity units (WCUs) currently being used by this web ACL.

*/ inline void SetCapacity(long long value) { m_capacityHasBeenSet = true; m_capacity = value; } /** *

The web ACL capacity units (WCUs) currently being used by this web ACL.

*/ inline AwsWafv2WebAclDetails& WithCapacity(long long value) { SetCapacity(value); return *this;} /** *

Specifies how WAF should handle CAPTCHA evaluations for rules that don't * have their own CaptchaConfig settings.

*/ inline const AwsWafv2WebAclCaptchaConfigDetails& GetCaptchaConfig() const{ return m_captchaConfig; } /** *

Specifies how WAF should handle CAPTCHA evaluations for rules that don't * have their own CaptchaConfig settings.

*/ inline bool CaptchaConfigHasBeenSet() const { return m_captchaConfigHasBeenSet; } /** *

Specifies how WAF should handle CAPTCHA evaluations for rules that don't * have their own CaptchaConfig settings.

*/ inline void SetCaptchaConfig(const AwsWafv2WebAclCaptchaConfigDetails& value) { m_captchaConfigHasBeenSet = true; m_captchaConfig = value; } /** *

Specifies how WAF should handle CAPTCHA evaluations for rules that don't * have their own CaptchaConfig settings.

*/ inline void SetCaptchaConfig(AwsWafv2WebAclCaptchaConfigDetails&& value) { m_captchaConfigHasBeenSet = true; m_captchaConfig = std::move(value); } /** *

Specifies how WAF should handle CAPTCHA evaluations for rules that don't * have their own CaptchaConfig settings.

*/ inline AwsWafv2WebAclDetails& WithCaptchaConfig(const AwsWafv2WebAclCaptchaConfigDetails& value) { SetCaptchaConfig(value); return *this;} /** *

Specifies how WAF should handle CAPTCHA evaluations for rules that don't * have their own CaptchaConfig settings.

*/ inline AwsWafv2WebAclDetails& WithCaptchaConfig(AwsWafv2WebAclCaptchaConfigDetails&& value) { SetCaptchaConfig(std::move(value)); return *this;} /** *

The action to perform if none of the Rules contained in the web ACL match. *

*/ inline const AwsWafv2WebAclActionDetails& GetDefaultAction() const{ return m_defaultAction; } /** *

The action to perform if none of the Rules contained in the web ACL match. *

*/ inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; } /** *

The action to perform if none of the Rules contained in the web ACL match. *

*/ inline void SetDefaultAction(const AwsWafv2WebAclActionDetails& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; } /** *

The action to perform if none of the Rules contained in the web ACL match. *

*/ inline void SetDefaultAction(AwsWafv2WebAclActionDetails&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::move(value); } /** *

The action to perform if none of the Rules contained in the web ACL match. *

*/ inline AwsWafv2WebAclDetails& WithDefaultAction(const AwsWafv2WebAclActionDetails& value) { SetDefaultAction(value); return *this;} /** *

The action to perform if none of the Rules contained in the web ACL match. *

*/ inline AwsWafv2WebAclDetails& WithDefaultAction(AwsWafv2WebAclActionDetails&& value) { SetDefaultAction(std::move(value)); return *this;} /** *

A description of the web ACL that helps with identification.

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

A description of the web ACL that helps with identification.

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

A description of the web ACL that helps with identification.

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

A description of the web ACL that helps with identification.

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

A description of the web ACL that helps with identification.

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

A description of the web ACL that helps with identification.

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

A description of the web ACL that helps with identification.

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

A description of the web ACL that helps with identification.

*/ inline AwsWafv2WebAclDetails& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The Rule statements used to identify the web requests that you want to * allow, block, or count. Each rule includes one top-level statement that WAF uses * to identify matching web requests, and parameters that govern how WAF handles * them.

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

The Rule statements used to identify the web requests that you want to * allow, block, or count. Each rule includes one top-level statement that WAF uses * to identify matching web requests, and parameters that govern how WAF handles * them.

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

The Rule statements used to identify the web requests that you want to * allow, block, or count. Each rule includes one top-level statement that WAF uses * to identify matching web requests, and parameters that govern how WAF handles * them.

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

The Rule statements used to identify the web requests that you want to * allow, block, or count. Each rule includes one top-level statement that WAF uses * to identify matching web requests, and parameters that govern how WAF handles * them.

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

The Rule statements used to identify the web requests that you want to * allow, block, or count. Each rule includes one top-level statement that WAF uses * to identify matching web requests, and parameters that govern how WAF handles * them.

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

The Rule statements used to identify the web requests that you want to * allow, block, or count. Each rule includes one top-level statement that WAF uses * to identify matching web requests, and parameters that govern how WAF handles * them.

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

The Rule statements used to identify the web requests that you want to * allow, block, or count. Each rule includes one top-level statement that WAF uses * to identify matching web requests, and parameters that govern how WAF handles * them.

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

The Rule statements used to identify the web requests that you want to * allow, block, or count. Each rule includes one top-level statement that WAF uses * to identify matching web requests, and parameters that govern how WAF handles * them.

*/ inline AwsWafv2WebAclDetails& AddRules(AwsWafv2RulesDetails&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; } /** *

Defines and enables Amazon CloudWatch metrics and web request sample * collection.

*/ inline const AwsWafv2VisibilityConfigDetails& GetVisibilityConfig() const{ return m_visibilityConfig; } /** *

Defines and enables Amazon CloudWatch metrics and web request sample * collection.

*/ inline bool VisibilityConfigHasBeenSet() const { return m_visibilityConfigHasBeenSet; } /** *

Defines and enables Amazon CloudWatch metrics and web request sample * collection.

*/ inline void SetVisibilityConfig(const AwsWafv2VisibilityConfigDetails& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = value; } /** *

Defines and enables Amazon CloudWatch metrics and web request sample * collection.

*/ inline void SetVisibilityConfig(AwsWafv2VisibilityConfigDetails&& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = std::move(value); } /** *

Defines and enables Amazon CloudWatch metrics and web request sample * collection.

*/ inline AwsWafv2WebAclDetails& WithVisibilityConfig(const AwsWafv2VisibilityConfigDetails& value) { SetVisibilityConfig(value); return *this;} /** *

Defines and enables Amazon CloudWatch metrics and web request sample * collection.

*/ inline AwsWafv2WebAclDetails& WithVisibilityConfig(AwsWafv2VisibilityConfigDetails&& value) { SetVisibilityConfig(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; bool m_managedbyFirewallManager; bool m_managedbyFirewallManagerHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; long long m_capacity; bool m_capacityHasBeenSet = false; AwsWafv2WebAclCaptchaConfigDetails m_captchaConfig; bool m_captchaConfigHasBeenSet = false; AwsWafv2WebAclActionDetails m_defaultAction; bool m_defaultActionHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_rules; bool m_rulesHasBeenSet = false; AwsWafv2VisibilityConfigDetails m_visibilityConfig; bool m_visibilityConfigHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws