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

In a * GetRegexMatchSet request, RegexMatchSet is a complex type * that contains the RegexMatchSetId and Name of a * RegexMatchSet, and the values that you specified when you updated * the RegexMatchSet.

The values are contained in a * RegexMatchTuple object, which specify the parts of web requests * that you want AWS WAF to inspect and the values that you want AWS WAF to search * for. If a RegexMatchSet contains more than one * RegexMatchTuple object, a request needs to match the settings in * only one ByteMatchTuple to be considered a match.

See * Also:

AWS * API Reference

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

The RegexMatchSetId for a RegexMatchSet. You use * RegexMatchSetId to get information about a * RegexMatchSet (see GetRegexMatchSet), update a * RegexMatchSet (see UpdateRegexMatchSet), insert a * RegexMatchSet into a Rule or delete one from a * Rule (see UpdateRule), and delete a * RegexMatchSet from AWS WAF (see DeleteRegexMatchSet).

*

RegexMatchSetId is returned by CreateRegexMatchSet and * by ListRegexMatchSets.

*/ inline const Aws::String& GetRegexMatchSetId() const{ return m_regexMatchSetId; } /** *

The RegexMatchSetId for a RegexMatchSet. You use * RegexMatchSetId to get information about a * RegexMatchSet (see GetRegexMatchSet), update a * RegexMatchSet (see UpdateRegexMatchSet), insert a * RegexMatchSet into a Rule or delete one from a * Rule (see UpdateRule), and delete a * RegexMatchSet from AWS WAF (see DeleteRegexMatchSet).

*

RegexMatchSetId is returned by CreateRegexMatchSet and * by ListRegexMatchSets.

*/ inline bool RegexMatchSetIdHasBeenSet() const { return m_regexMatchSetIdHasBeenSet; } /** *

The RegexMatchSetId for a RegexMatchSet. You use * RegexMatchSetId to get information about a * RegexMatchSet (see GetRegexMatchSet), update a * RegexMatchSet (see UpdateRegexMatchSet), insert a * RegexMatchSet into a Rule or delete one from a * Rule (see UpdateRule), and delete a * RegexMatchSet from AWS WAF (see DeleteRegexMatchSet).

*

RegexMatchSetId is returned by CreateRegexMatchSet and * by ListRegexMatchSets.

*/ inline void SetRegexMatchSetId(const Aws::String& value) { m_regexMatchSetIdHasBeenSet = true; m_regexMatchSetId = value; } /** *

The RegexMatchSetId for a RegexMatchSet. You use * RegexMatchSetId to get information about a * RegexMatchSet (see GetRegexMatchSet), update a * RegexMatchSet (see UpdateRegexMatchSet), insert a * RegexMatchSet into a Rule or delete one from a * Rule (see UpdateRule), and delete a * RegexMatchSet from AWS WAF (see DeleteRegexMatchSet).

*

RegexMatchSetId is returned by CreateRegexMatchSet and * by ListRegexMatchSets.

*/ inline void SetRegexMatchSetId(Aws::String&& value) { m_regexMatchSetIdHasBeenSet = true; m_regexMatchSetId = std::move(value); } /** *

The RegexMatchSetId for a RegexMatchSet. You use * RegexMatchSetId to get information about a * RegexMatchSet (see GetRegexMatchSet), update a * RegexMatchSet (see UpdateRegexMatchSet), insert a * RegexMatchSet into a Rule or delete one from a * Rule (see UpdateRule), and delete a * RegexMatchSet from AWS WAF (see DeleteRegexMatchSet).

*

RegexMatchSetId is returned by CreateRegexMatchSet and * by ListRegexMatchSets.

*/ inline void SetRegexMatchSetId(const char* value) { m_regexMatchSetIdHasBeenSet = true; m_regexMatchSetId.assign(value); } /** *

The RegexMatchSetId for a RegexMatchSet. You use * RegexMatchSetId to get information about a * RegexMatchSet (see GetRegexMatchSet), update a * RegexMatchSet (see UpdateRegexMatchSet), insert a * RegexMatchSet into a Rule or delete one from a * Rule (see UpdateRule), and delete a * RegexMatchSet from AWS WAF (see DeleteRegexMatchSet).

*

RegexMatchSetId is returned by CreateRegexMatchSet and * by ListRegexMatchSets.

*/ inline RegexMatchSet& WithRegexMatchSetId(const Aws::String& value) { SetRegexMatchSetId(value); return *this;} /** *

The RegexMatchSetId for a RegexMatchSet. You use * RegexMatchSetId to get information about a * RegexMatchSet (see GetRegexMatchSet), update a * RegexMatchSet (see UpdateRegexMatchSet), insert a * RegexMatchSet into a Rule or delete one from a * Rule (see UpdateRule), and delete a * RegexMatchSet from AWS WAF (see DeleteRegexMatchSet).

*

RegexMatchSetId is returned by CreateRegexMatchSet and * by ListRegexMatchSets.

*/ inline RegexMatchSet& WithRegexMatchSetId(Aws::String&& value) { SetRegexMatchSetId(std::move(value)); return *this;} /** *

The RegexMatchSetId for a RegexMatchSet. You use * RegexMatchSetId to get information about a * RegexMatchSet (see GetRegexMatchSet), update a * RegexMatchSet (see UpdateRegexMatchSet), insert a * RegexMatchSet into a Rule or delete one from a * Rule (see UpdateRule), and delete a * RegexMatchSet from AWS WAF (see DeleteRegexMatchSet).

*

RegexMatchSetId is returned by CreateRegexMatchSet and * by ListRegexMatchSets.

*/ inline RegexMatchSet& WithRegexMatchSetId(const char* value) { SetRegexMatchSetId(value); return *this;} /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contains an array of RegexMatchTuple objects. Each * RegexMatchTuple object contains:

  • The part of a * web request that you want AWS WAF to inspect, such as a query string or the * value of the User-Agent header.

  • The identifier * of the pattern (a regular expression) that you want AWS WAF to look for. For * more information, see RegexPatternSet.

  • Whether to * perform any conversions on the request, such as converting it to lowercase, * before inspecting it for the specified string.

*/ inline const Aws::Vector& GetRegexMatchTuples() const{ return m_regexMatchTuples; } /** *

Contains an array of RegexMatchTuple objects. Each * RegexMatchTuple object contains:

  • The part of a * web request that you want AWS WAF to inspect, such as a query string or the * value of the User-Agent header.

  • The identifier * of the pattern (a regular expression) that you want AWS WAF to look for. For * more information, see RegexPatternSet.

  • Whether to * perform any conversions on the request, such as converting it to lowercase, * before inspecting it for the specified string.

*/ inline bool RegexMatchTuplesHasBeenSet() const { return m_regexMatchTuplesHasBeenSet; } /** *

Contains an array of RegexMatchTuple objects. Each * RegexMatchTuple object contains:

  • The part of a * web request that you want AWS WAF to inspect, such as a query string or the * value of the User-Agent header.

  • The identifier * of the pattern (a regular expression) that you want AWS WAF to look for. For * more information, see RegexPatternSet.

  • Whether to * perform any conversions on the request, such as converting it to lowercase, * before inspecting it for the specified string.

*/ inline void SetRegexMatchTuples(const Aws::Vector& value) { m_regexMatchTuplesHasBeenSet = true; m_regexMatchTuples = value; } /** *

Contains an array of RegexMatchTuple objects. Each * RegexMatchTuple object contains:

  • The part of a * web request that you want AWS WAF to inspect, such as a query string or the * value of the User-Agent header.

  • The identifier * of the pattern (a regular expression) that you want AWS WAF to look for. For * more information, see RegexPatternSet.

  • Whether to * perform any conversions on the request, such as converting it to lowercase, * before inspecting it for the specified string.

*/ inline void SetRegexMatchTuples(Aws::Vector&& value) { m_regexMatchTuplesHasBeenSet = true; m_regexMatchTuples = std::move(value); } /** *

Contains an array of RegexMatchTuple objects. Each * RegexMatchTuple object contains:

  • The part of a * web request that you want AWS WAF to inspect, such as a query string or the * value of the User-Agent header.

  • The identifier * of the pattern (a regular expression) that you want AWS WAF to look for. For * more information, see RegexPatternSet.

  • Whether to * perform any conversions on the request, such as converting it to lowercase, * before inspecting it for the specified string.

*/ inline RegexMatchSet& WithRegexMatchTuples(const Aws::Vector& value) { SetRegexMatchTuples(value); return *this;} /** *

Contains an array of RegexMatchTuple objects. Each * RegexMatchTuple object contains:

  • The part of a * web request that you want AWS WAF to inspect, such as a query string or the * value of the User-Agent header.

  • The identifier * of the pattern (a regular expression) that you want AWS WAF to look for. For * more information, see RegexPatternSet.

  • Whether to * perform any conversions on the request, such as converting it to lowercase, * before inspecting it for the specified string.

*/ inline RegexMatchSet& WithRegexMatchTuples(Aws::Vector&& value) { SetRegexMatchTuples(std::move(value)); return *this;} /** *

Contains an array of RegexMatchTuple objects. Each * RegexMatchTuple object contains:

  • The part of a * web request that you want AWS WAF to inspect, such as a query string or the * value of the User-Agent header.

  • The identifier * of the pattern (a regular expression) that you want AWS WAF to look for. For * more information, see RegexPatternSet.

  • Whether to * perform any conversions on the request, such as converting it to lowercase, * before inspecting it for the specified string.

*/ inline RegexMatchSet& AddRegexMatchTuples(const RegexMatchTuple& value) { m_regexMatchTuplesHasBeenSet = true; m_regexMatchTuples.push_back(value); return *this; } /** *

Contains an array of RegexMatchTuple objects. Each * RegexMatchTuple object contains:

  • The part of a * web request that you want AWS WAF to inspect, such as a query string or the * value of the User-Agent header.

  • The identifier * of the pattern (a regular expression) that you want AWS WAF to look for. For * more information, see RegexPatternSet.

  • Whether to * perform any conversions on the request, such as converting it to lowercase, * before inspecting it for the specified string.

*/ inline RegexMatchSet& AddRegexMatchTuples(RegexMatchTuple&& value) { m_regexMatchTuplesHasBeenSet = true; m_regexMatchTuples.push_back(std::move(value)); return *this; } private: Aws::String m_regexMatchSetId; bool m_regexMatchSetIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_regexMatchTuples; bool m_regexMatchTuplesHasBeenSet = false; }; } // namespace Model } // namespace WAF } // namespace Aws