AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Regex.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WAFV2
22{
23namespace Model
24{
25
33 class Regex
34 {
35 public:
36 AWS_WAFV2_API Regex() = default;
39 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetRegexString() const { return m_regexString; }
47 inline bool RegexStringHasBeenSet() const { return m_regexStringHasBeenSet; }
48 template<typename RegexStringT = Aws::String>
49 void SetRegexString(RegexStringT&& value) { m_regexStringHasBeenSet = true; m_regexString = std::forward<RegexStringT>(value); }
50 template<typename RegexStringT = Aws::String>
51 Regex& WithRegexString(RegexStringT&& value) { SetRegexString(std::forward<RegexStringT>(value)); return *this;}
53 private:
54
55 Aws::String m_regexString;
56 bool m_regexStringHasBeenSet = false;
57 };
58
59} // namespace Model
60} // namespace WAFV2
61} // namespace Aws
bool RegexStringHasBeenSet() const
Definition Regex.h:47
AWS_WAFV2_API Regex(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Regex()=default
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRegexString() const
Definition Regex.h:46
AWS_WAFV2_API Regex & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRegexString(RegexStringT &&value)
Definition Regex.h:49
Regex & WithRegexString(RegexStringT &&value)
Definition Regex.h:51
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue