94 lines
2.7 KiB
C++
94 lines
2.7 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/wafv2/WAFV2_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace WAFV2
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>This is the latest version of <b>AWS WAF</b>, named AWS WAFV2,
|
|
* released in November, 2019. For information, including how to migrate your AWS
|
|
* WAF resources from the prior release, see the <a
|
|
* href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS
|
|
* WAF Developer Guide</a>. </p> <p>A single regular expression. This is
|
|
* used in a <a>RegexPatternSet</a>.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/Regex">AWS API
|
|
* Reference</a></p>
|
|
*/
|
|
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;
|
|
|
|
|
|
/**
|
|
* <p>The string representing the regular expression.</p>
|
|
*/
|
|
inline const Aws::String& GetRegexString() const{ return m_regexString; }
|
|
|
|
/**
|
|
* <p>The string representing the regular expression.</p>
|
|
*/
|
|
inline bool RegexStringHasBeenSet() const { return m_regexStringHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The string representing the regular expression.</p>
|
|
*/
|
|
inline void SetRegexString(const Aws::String& value) { m_regexStringHasBeenSet = true; m_regexString = value; }
|
|
|
|
/**
|
|
* <p>The string representing the regular expression.</p>
|
|
*/
|
|
inline void SetRegexString(Aws::String&& value) { m_regexStringHasBeenSet = true; m_regexString = std::move(value); }
|
|
|
|
/**
|
|
* <p>The string representing the regular expression.</p>
|
|
*/
|
|
inline void SetRegexString(const char* value) { m_regexStringHasBeenSet = true; m_regexString.assign(value); }
|
|
|
|
/**
|
|
* <p>The string representing the regular expression.</p>
|
|
*/
|
|
inline Regex& WithRegexString(const Aws::String& value) { SetRegexString(value); return *this;}
|
|
|
|
/**
|
|
* <p>The string representing the regular expression.</p>
|
|
*/
|
|
inline Regex& WithRegexString(Aws::String&& value) { SetRegexString(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The string representing the regular expression.</p>
|
|
*/
|
|
inline Regex& WithRegexString(const char* value) { SetRegexString(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_regexString;
|
|
bool m_regexStringHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace WAFV2
|
|
} // namespace Aws
|