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

In an * UpdateRegexPatternSet request, RegexPatternSetUpdate * specifies whether to insert or delete a RegexPatternString and * includes the settings for the RegexPatternString.

See * Also:

AWS * API Reference

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

Specifies whether to insert or delete a RegexPatternString.

*/ inline const ChangeAction& GetAction() const{ return m_action; } /** *

Specifies whether to insert or delete a RegexPatternString.

*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *

Specifies whether to insert or delete a RegexPatternString.

*/ inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; } /** *

Specifies whether to insert or delete a RegexPatternString.

*/ inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *

Specifies whether to insert or delete a RegexPatternString.

*/ inline RegexPatternSetUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;} /** *

Specifies whether to insert or delete a RegexPatternString.

*/ inline RegexPatternSetUpdate& WithAction(ChangeAction&& value) { SetAction(std::move(value)); return *this;} /** *

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

*/ inline const Aws::String& GetRegexPatternString() const{ return m_regexPatternString; } /** *

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

*/ inline bool RegexPatternStringHasBeenSet() const { return m_regexPatternStringHasBeenSet; } /** *

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

*/ inline void SetRegexPatternString(const Aws::String& value) { m_regexPatternStringHasBeenSet = true; m_regexPatternString = value; } /** *

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

*/ inline void SetRegexPatternString(Aws::String&& value) { m_regexPatternStringHasBeenSet = true; m_regexPatternString = std::move(value); } /** *

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

*/ inline void SetRegexPatternString(const char* value) { m_regexPatternStringHasBeenSet = true; m_regexPatternString.assign(value); } /** *

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

*/ inline RegexPatternSetUpdate& WithRegexPatternString(const Aws::String& value) { SetRegexPatternString(value); return *this;} /** *

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

*/ inline RegexPatternSetUpdate& WithRegexPatternString(Aws::String&& value) { SetRegexPatternString(std::move(value)); return *this;} /** *

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

*/ inline RegexPatternSetUpdate& WithRegexPatternString(const char* value) { SetRegexPatternString(value); return *this;} private: ChangeAction m_action; bool m_actionHasBeenSet = false; Aws::String m_regexPatternString; bool m_regexPatternStringHasBeenSet = false; }; } // namespace Model } // namespace WAF } // namespace Aws