/** * 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 web access control list (web * ACL).

See Also:

AWS * API Reference

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

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

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

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

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

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

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

A friendly name or description of the web ACL. You can't change the name of a * web ACL 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 web ACL. You can't change the name of a * web ACL after you create it.

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

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

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

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

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

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

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

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

*/ inline const Aws::String& 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 Aws::String& 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(Aws::String&& 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 void SetDefaultAction(const char* value) { m_defaultActionHasBeenSet = true; m_defaultAction.assign(value); } /** *

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

*/ inline AwsWafWebAclDetails& WithDefaultAction(const Aws::String& value) { SetDefaultAction(value); return *this;} /** *

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

*/ inline AwsWafWebAclDetails& WithDefaultAction(Aws::String&& value) { SetDefaultAction(std::move(value)); return *this;} /** *

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

*/ inline AwsWafWebAclDetails& WithDefaultAction(const char* value) { SetDefaultAction(value); return *this;} /** *

An array that contains the action for each rule in a web ACL, the priority of * the rule, and the ID of the rule.

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

An array that contains the action for each rule in a web ACL, the priority of * the rule, and the ID of the rule.

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

An array that contains the action for each rule in a web ACL, the priority of * the rule, and the ID of the rule.

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

An array that contains the action for each rule in a web ACL, the priority of * the rule, and the ID of the rule.

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

An array that contains the action for each rule in a web ACL, the priority of * the rule, and the ID of the rule.

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

An array that contains the action for each rule in a web ACL, the priority of * the rule, and the ID of the rule.

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

An array that contains the action for each rule in a web ACL, the priority of * the rule, and the ID of the rule.

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

An array that contains the action for each rule in a web ACL, the priority of * the rule, and the ID of the rule.

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

A unique identifier for a web ACL.

*/ inline const Aws::String& GetWebAclId() const{ return m_webAclId; } /** *

A unique identifier for a web ACL.

*/ inline bool WebAclIdHasBeenSet() const { return m_webAclIdHasBeenSet; } /** *

A unique identifier for a web ACL.

*/ inline void SetWebAclId(const Aws::String& value) { m_webAclIdHasBeenSet = true; m_webAclId = value; } /** *

A unique identifier for a web ACL.

*/ inline void SetWebAclId(Aws::String&& value) { m_webAclIdHasBeenSet = true; m_webAclId = std::move(value); } /** *

A unique identifier for a web ACL.

*/ inline void SetWebAclId(const char* value) { m_webAclIdHasBeenSet = true; m_webAclId.assign(value); } /** *

A unique identifier for a web ACL.

*/ inline AwsWafWebAclDetails& WithWebAclId(const Aws::String& value) { SetWebAclId(value); return *this;} /** *

A unique identifier for a web ACL.

*/ inline AwsWafWebAclDetails& WithWebAclId(Aws::String&& value) { SetWebAclId(std::move(value)); return *this;} /** *

A unique identifier for a web ACL.

*/ inline AwsWafWebAclDetails& WithWebAclId(const char* value) { SetWebAclId(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_defaultAction; bool m_defaultActionHasBeenSet = false; Aws::Vector m_rules; bool m_rulesHasBeenSet = false; Aws::String m_webAclId; bool m_webAclIdHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws