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

This is the latest version of AWS WAF, named AWS WAFV2, * released in November, 2019. For information, including how to migrate your AWS * WAF resources from the prior release, see the AWS * WAF Developer Guide.

A single regular expression. This is * used in a RegexPatternSet.

See Also:

AWS API * Reference

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

The string representing the regular expression.

*/ inline const Aws::String& GetRegexString() const{ return m_regexString; } /** *

The string representing the regular expression.

*/ inline bool RegexStringHasBeenSet() const { return m_regexStringHasBeenSet; } /** *

The string representing the regular expression.

*/ inline void SetRegexString(const Aws::String& value) { m_regexStringHasBeenSet = true; m_regexString = value; } /** *

The string representing the regular expression.

*/ inline void SetRegexString(Aws::String&& value) { m_regexStringHasBeenSet = true; m_regexString = std::move(value); } /** *

The string representing the regular expression.

*/ inline void SetRegexString(const char* value) { m_regexStringHasBeenSet = true; m_regexString.assign(value); } /** *

The string representing the regular expression.

*/ inline Regex& WithRegexString(const Aws::String& value) { SetRegexString(value); return *this;} /** *

The string representing the regular expression.

*/ inline Regex& WithRegexString(Aws::String&& value) { SetRegexString(std::move(value)); return *this;} /** *

The string representing the regular expression.

*/ inline Regex& WithRegexString(const char* value) { SetRegexString(value); return *this;} private: Aws::String m_regexString; bool m_regexStringHasBeenSet; }; } // namespace Model } // namespace WAFV2 } // namespace Aws