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

Contains the identifier * and the friendly name or description of the Rule.

See * Also:

AWS API * Reference

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

A unique identifier for a Rule. You use RuleId to * get more information about a Rule (see GetRule), update a * Rule (see UpdateRule), insert a Rule into a * WebACL or delete one from a WebACL (see * UpdateWebACL), or delete a Rule from AWS WAF (see * DeleteRule).

RuleId is returned by CreateRule * and by ListRules.

*/ inline const Aws::String& GetRuleId() const{ return m_ruleId; } /** *

A unique identifier for a Rule. You use RuleId to * get more information about a Rule (see GetRule), update a * Rule (see UpdateRule), insert a Rule into a * WebACL or delete one from a WebACL (see * UpdateWebACL), or delete a Rule from AWS WAF (see * DeleteRule).

RuleId is returned by CreateRule * and by ListRules.

*/ inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; } /** *

A unique identifier for a Rule. You use RuleId to * get more information about a Rule (see GetRule), update a * Rule (see UpdateRule), insert a Rule into a * WebACL or delete one from a WebACL (see * UpdateWebACL), or delete a Rule from AWS WAF (see * DeleteRule).

RuleId is returned by CreateRule * and by ListRules.

*/ inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; } /** *

A unique identifier for a Rule. You use RuleId to * get more information about a Rule (see GetRule), update a * Rule (see UpdateRule), insert a Rule into a * WebACL or delete one from a WebACL (see * UpdateWebACL), or delete a Rule from AWS WAF (see * DeleteRule).

RuleId is returned by CreateRule * and by ListRules.

*/ inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); } /** *

A unique identifier for a Rule. You use RuleId to * get more information about a Rule (see GetRule), update a * Rule (see UpdateRule), insert a Rule into a * WebACL or delete one from a WebACL (see * UpdateWebACL), or delete a Rule from AWS WAF (see * DeleteRule).

RuleId is returned by CreateRule * and by ListRules.

*/ inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); } /** *

A unique identifier for a Rule. You use RuleId to * get more information about a Rule (see GetRule), update a * Rule (see UpdateRule), insert a Rule into a * WebACL or delete one from a WebACL (see * UpdateWebACL), or delete a Rule from AWS WAF (see * DeleteRule).

RuleId is returned by CreateRule * and by ListRules.

*/ inline RuleSummary& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;} /** *

A unique identifier for a Rule. You use RuleId to * get more information about a Rule (see GetRule), update a * Rule (see UpdateRule), insert a Rule into a * WebACL or delete one from a WebACL (see * UpdateWebACL), or delete a Rule from AWS WAF (see * DeleteRule).

RuleId is returned by CreateRule * and by ListRules.

*/ inline RuleSummary& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;} /** *

A unique identifier for a Rule. You use RuleId to * get more information about a Rule (see GetRule), update a * Rule (see UpdateRule), insert a Rule into a * WebACL or delete one from a WebACL (see * UpdateWebACL), or delete a Rule from AWS WAF (see * DeleteRule).

RuleId is returned by CreateRule * and by ListRules.

*/ inline RuleSummary& WithRuleId(const char* value) { SetRuleId(value); return *this;} /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

*/ inline RuleSummary& WithName(const char* value) { SetName(value); return *this;} private: Aws::String m_ruleId; bool m_ruleIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace WAF } // namespace Aws