/** * 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 * UpdateRegexMatchSet request, RegexMatchSetUpdate specifies * whether to insert or delete a RegexMatchTuple and includes the settings * for the RegexMatchTuple.

See Also:

AWS * API Reference

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

Specifies whether to insert or delete a RegexMatchTuple.

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

Specifies whether to insert or delete a RegexMatchTuple.

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

Specifies whether to insert or delete a RegexMatchTuple.

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

Specifies whether to insert or delete a RegexMatchTuple.

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

Specifies whether to insert or delete a RegexMatchTuple.

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

Specifies whether to insert or delete a RegexMatchTuple.

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

Information about the part of a web request that you want AWS WAF to inspect * and the identifier of the regular expression (regex) pattern that you want AWS * WAF to search for. If you specify DELETE for the value of * Action, the RegexMatchTuple values must exactly match * the values in the RegexMatchTuple that you want to delete from the * RegexMatchSet.

*/ inline const RegexMatchTuple& GetRegexMatchTuple() const{ return m_regexMatchTuple; } /** *

Information about the part of a web request that you want AWS WAF to inspect * and the identifier of the regular expression (regex) pattern that you want AWS * WAF to search for. If you specify DELETE for the value of * Action, the RegexMatchTuple values must exactly match * the values in the RegexMatchTuple that you want to delete from the * RegexMatchSet.

*/ inline bool RegexMatchTupleHasBeenSet() const { return m_regexMatchTupleHasBeenSet; } /** *

Information about the part of a web request that you want AWS WAF to inspect * and the identifier of the regular expression (regex) pattern that you want AWS * WAF to search for. If you specify DELETE for the value of * Action, the RegexMatchTuple values must exactly match * the values in the RegexMatchTuple that you want to delete from the * RegexMatchSet.

*/ inline void SetRegexMatchTuple(const RegexMatchTuple& value) { m_regexMatchTupleHasBeenSet = true; m_regexMatchTuple = value; } /** *

Information about the part of a web request that you want AWS WAF to inspect * and the identifier of the regular expression (regex) pattern that you want AWS * WAF to search for. If you specify DELETE for the value of * Action, the RegexMatchTuple values must exactly match * the values in the RegexMatchTuple that you want to delete from the * RegexMatchSet.

*/ inline void SetRegexMatchTuple(RegexMatchTuple&& value) { m_regexMatchTupleHasBeenSet = true; m_regexMatchTuple = std::move(value); } /** *

Information about the part of a web request that you want AWS WAF to inspect * and the identifier of the regular expression (regex) pattern that you want AWS * WAF to search for. If you specify DELETE for the value of * Action, the RegexMatchTuple values must exactly match * the values in the RegexMatchTuple that you want to delete from the * RegexMatchSet.

*/ inline RegexMatchSetUpdate& WithRegexMatchTuple(const RegexMatchTuple& value) { SetRegexMatchTuple(value); return *this;} /** *

Information about the part of a web request that you want AWS WAF to inspect * and the identifier of the regular expression (regex) pattern that you want AWS * WAF to search for. If you specify DELETE for the value of * Action, the RegexMatchTuple values must exactly match * the values in the RegexMatchTuple that you want to delete from the * RegexMatchSet.

*/ inline RegexMatchSetUpdate& WithRegexMatchTuple(RegexMatchTuple&& value) { SetRegexMatchTuple(std::move(value)); return *this;} private: ChangeAction m_action; bool m_actionHasBeenSet = false; RegexMatchTuple m_regexMatchTuple; bool m_regexMatchTupleHasBeenSet = false; }; } // namespace Model } // namespace WAF } // namespace Aws