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

Provides details about the ByteMatchSet, IPSet, * SqlInjectionMatchSet, XssMatchSet, * RegexMatchSet, GeoMatchSet, and * SizeConstraintSet objects that you want to add to a rule and, for * each object, indicates whether you want to negate the settings.

See * Also:

AWS * API Reference

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

A unique identifier for a predicate in a rule, such as * ByteMatchSetId or IPSetId.

*/ inline const Aws::String& GetDataId() const{ return m_dataId; } /** *

A unique identifier for a predicate in a rule, such as * ByteMatchSetId or IPSetId.

*/ inline bool DataIdHasBeenSet() const { return m_dataIdHasBeenSet; } /** *

A unique identifier for a predicate in a rule, such as * ByteMatchSetId or IPSetId.

*/ inline void SetDataId(const Aws::String& value) { m_dataIdHasBeenSet = true; m_dataId = value; } /** *

A unique identifier for a predicate in a rule, such as * ByteMatchSetId or IPSetId.

*/ inline void SetDataId(Aws::String&& value) { m_dataIdHasBeenSet = true; m_dataId = std::move(value); } /** *

A unique identifier for a predicate in a rule, such as * ByteMatchSetId or IPSetId.

*/ inline void SetDataId(const char* value) { m_dataIdHasBeenSet = true; m_dataId.assign(value); } /** *

A unique identifier for a predicate in a rule, such as * ByteMatchSetId or IPSetId.

*/ inline AwsWafRulePredicateListDetails& WithDataId(const Aws::String& value) { SetDataId(value); return *this;} /** *

A unique identifier for a predicate in a rule, such as * ByteMatchSetId or IPSetId.

*/ inline AwsWafRulePredicateListDetails& WithDataId(Aws::String&& value) { SetDataId(std::move(value)); return *this;} /** *

A unique identifier for a predicate in a rule, such as * ByteMatchSetId or IPSetId.

*/ inline AwsWafRulePredicateListDetails& WithDataId(const char* value) { SetDataId(value); return *this;} /** *

Specifies if you want WAF to allow, block, or count requests based on the * settings in the ByteMatchSet, IPSet, * SqlInjectionMatchSet, XssMatchSet, * RegexMatchSet, GeoMatchSet, or * SizeConstraintSet.

*/ inline bool GetNegated() const{ return m_negated; } /** *

Specifies if you want WAF to allow, block, or count requests based on the * settings in the ByteMatchSet, IPSet, * SqlInjectionMatchSet, XssMatchSet, * RegexMatchSet, GeoMatchSet, or * SizeConstraintSet.

*/ inline bool NegatedHasBeenSet() const { return m_negatedHasBeenSet; } /** *

Specifies if you want WAF to allow, block, or count requests based on the * settings in the ByteMatchSet, IPSet, * SqlInjectionMatchSet, XssMatchSet, * RegexMatchSet, GeoMatchSet, or * SizeConstraintSet.

*/ inline void SetNegated(bool value) { m_negatedHasBeenSet = true; m_negated = value; } /** *

Specifies if you want WAF to allow, block, or count requests based on the * settings in the ByteMatchSet, IPSet, * SqlInjectionMatchSet, XssMatchSet, * RegexMatchSet, GeoMatchSet, or * SizeConstraintSet.

*/ inline AwsWafRulePredicateListDetails& WithNegated(bool value) { SetNegated(value); return *this;} /** *

The type of predicate in a rule, such as ByteMatch or * IPSet.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of predicate in a rule, such as ByteMatch or * IPSet.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of predicate in a rule, such as ByteMatch or * IPSet.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of predicate in a rule, such as ByteMatch or * IPSet.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of predicate in a rule, such as ByteMatch or * IPSet.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of predicate in a rule, such as ByteMatch or * IPSet.

*/ inline AwsWafRulePredicateListDetails& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of predicate in a rule, such as ByteMatch or * IPSet.

*/ inline AwsWafRulePredicateListDetails& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of predicate in a rule, such as ByteMatch or * IPSet.

*/ inline AwsWafRulePredicateListDetails& WithType(const char* value) { SetType(value); return *this;} private: Aws::String m_dataId; bool m_dataIdHasBeenSet = false; bool m_negated; bool m_negatedHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws