/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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.

The * RegexPatternSet specifies the regular expression (regex) pattern * that you want AWS WAF to search for, such as B[a@]dB[o0]t. You can * then configure AWS WAF to reject those requests.

See Also:

AWS * API Reference

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

The identifier for the RegexPatternSet. You use * RegexPatternSetId to get information about a * RegexPatternSet, update a RegexPatternSet, remove a * RegexPatternSet from a RegexMatchSet, and delete a * RegexPatternSet from AWS WAF.

RegexMatchSetId * is returned by CreateRegexPatternSet and by * ListRegexPatternSets.

*/ inline const Aws::String& GetRegexPatternSetId() const{ return m_regexPatternSetId; } /** *

The identifier for the RegexPatternSet. You use * RegexPatternSetId to get information about a * RegexPatternSet, update a RegexPatternSet, remove a * RegexPatternSet from a RegexMatchSet, and delete a * RegexPatternSet from AWS WAF.

RegexMatchSetId * is returned by CreateRegexPatternSet and by * ListRegexPatternSets.

*/ inline bool RegexPatternSetIdHasBeenSet() const { return m_regexPatternSetIdHasBeenSet; } /** *

The identifier for the RegexPatternSet. You use * RegexPatternSetId to get information about a * RegexPatternSet, update a RegexPatternSet, remove a * RegexPatternSet from a RegexMatchSet, and delete a * RegexPatternSet from AWS WAF.

RegexMatchSetId * is returned by CreateRegexPatternSet and by * ListRegexPatternSets.

*/ inline void SetRegexPatternSetId(const Aws::String& value) { m_regexPatternSetIdHasBeenSet = true; m_regexPatternSetId = value; } /** *

The identifier for the RegexPatternSet. You use * RegexPatternSetId to get information about a * RegexPatternSet, update a RegexPatternSet, remove a * RegexPatternSet from a RegexMatchSet, and delete a * RegexPatternSet from AWS WAF.

RegexMatchSetId * is returned by CreateRegexPatternSet and by * ListRegexPatternSets.

*/ inline void SetRegexPatternSetId(Aws::String&& value) { m_regexPatternSetIdHasBeenSet = true; m_regexPatternSetId = std::move(value); } /** *

The identifier for the RegexPatternSet. You use * RegexPatternSetId to get information about a * RegexPatternSet, update a RegexPatternSet, remove a * RegexPatternSet from a RegexMatchSet, and delete a * RegexPatternSet from AWS WAF.

RegexMatchSetId * is returned by CreateRegexPatternSet and by * ListRegexPatternSets.

*/ inline void SetRegexPatternSetId(const char* value) { m_regexPatternSetIdHasBeenSet = true; m_regexPatternSetId.assign(value); } /** *

The identifier for the RegexPatternSet. You use * RegexPatternSetId to get information about a * RegexPatternSet, update a RegexPatternSet, remove a * RegexPatternSet from a RegexMatchSet, and delete a * RegexPatternSet from AWS WAF.

RegexMatchSetId * is returned by CreateRegexPatternSet and by * ListRegexPatternSets.

*/ inline RegexPatternSet& WithRegexPatternSetId(const Aws::String& value) { SetRegexPatternSetId(value); return *this;} /** *

The identifier for the RegexPatternSet. You use * RegexPatternSetId to get information about a * RegexPatternSet, update a RegexPatternSet, remove a * RegexPatternSet from a RegexMatchSet, and delete a * RegexPatternSet from AWS WAF.

RegexMatchSetId * is returned by CreateRegexPatternSet and by * ListRegexPatternSets.

*/ inline RegexPatternSet& WithRegexPatternSetId(Aws::String&& value) { SetRegexPatternSetId(std::move(value)); return *this;} /** *

The identifier for the RegexPatternSet. You use * RegexPatternSetId to get information about a * RegexPatternSet, update a RegexPatternSet, remove a * RegexPatternSet from a RegexMatchSet, and delete a * RegexPatternSet from AWS WAF.

RegexMatchSetId * is returned by CreateRegexPatternSet and by * ListRegexPatternSets.

*/ inline RegexPatternSet& WithRegexPatternSetId(const char* value) { SetRegexPatternSetId(value); return *this;} /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Specifies the regular expression (regex) patterns that you want AWS WAF to * search for, such as B[a@]dB[o0]t.

*/ inline const Aws::Vector& GetRegexPatternStrings() const{ return m_regexPatternStrings; } /** *

Specifies the regular expression (regex) patterns that you want AWS WAF to * search for, such as B[a@]dB[o0]t.

*/ inline bool RegexPatternStringsHasBeenSet() const { return m_regexPatternStringsHasBeenSet; } /** *

Specifies the regular expression (regex) patterns that you want AWS WAF to * search for, such as B[a@]dB[o0]t.

*/ inline void SetRegexPatternStrings(const Aws::Vector& value) { m_regexPatternStringsHasBeenSet = true; m_regexPatternStrings = value; } /** *

Specifies the regular expression (regex) patterns that you want AWS WAF to * search for, such as B[a@]dB[o0]t.

*/ inline void SetRegexPatternStrings(Aws::Vector&& value) { m_regexPatternStringsHasBeenSet = true; m_regexPatternStrings = std::move(value); } /** *

Specifies the regular expression (regex) patterns that you want AWS WAF to * search for, such as B[a@]dB[o0]t.

*/ inline RegexPatternSet& WithRegexPatternStrings(const Aws::Vector& value) { SetRegexPatternStrings(value); return *this;} /** *

Specifies the regular expression (regex) patterns that you want AWS WAF to * search for, such as B[a@]dB[o0]t.

*/ inline RegexPatternSet& WithRegexPatternStrings(Aws::Vector&& value) { SetRegexPatternStrings(std::move(value)); return *this;} /** *

Specifies the regular expression (regex) patterns that you want AWS WAF to * search for, such as B[a@]dB[o0]t.

*/ inline RegexPatternSet& AddRegexPatternStrings(const Aws::String& value) { m_regexPatternStringsHasBeenSet = true; m_regexPatternStrings.push_back(value); return *this; } /** *

Specifies the regular expression (regex) patterns that you want AWS WAF to * search for, such as B[a@]dB[o0]t.

*/ inline RegexPatternSet& AddRegexPatternStrings(Aws::String&& value) { m_regexPatternStringsHasBeenSet = true; m_regexPatternStrings.push_back(std::move(value)); return *this; } /** *

Specifies the regular expression (regex) patterns that you want AWS WAF to * search for, such as B[a@]dB[o0]t.

*/ inline RegexPatternSet& AddRegexPatternStrings(const char* value) { m_regexPatternStringsHasBeenSet = true; m_regexPatternStrings.push_back(value); return *this; } private: Aws::String m_regexPatternSetId; bool m_regexPatternSetIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_regexPatternStrings; bool m_regexPatternStringsHasBeenSet = false; }; } // namespace Model } // namespace WAF } // namespace Aws