AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
Regex.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wafv2/WAFV2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace WAFV2 {
20namespace Model {
21
29class Regex {
30 public:
31 AWS_WAFV2_API Regex() = default;
32 AWS_WAFV2_API Regex(Aws::Utils::Json::JsonView jsonValue);
33 AWS_WAFV2_API Regex& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
43 inline const Aws::String& GetRegexString() const { return m_regexString; }
44 inline bool RegexStringHasBeenSet() const { return m_regexStringHasBeenSet; }
45 template <typename RegexStringT = Aws::String>
46 void SetRegexString(RegexStringT&& value) {
47 m_regexStringHasBeenSet = true;
48 m_regexString = std::forward<RegexStringT>(value);
49 }
50 template <typename RegexStringT = Aws::String>
51 Regex& WithRegexString(RegexStringT&& value) {
52 SetRegexString(std::forward<RegexStringT>(value));
53 return *this;
54 }
56 private:
57 Aws::String m_regexString;
58 bool m_regexStringHasBeenSet = false;
59};
60
61} // namespace Model
62} // namespace WAFV2
63} // namespace Aws
bool RegexStringHasBeenSet() const
Definition Regex.h:44
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:43
AWS_WAFV2_API Regex & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRegexString(RegexStringT &&value)
Definition Regex.h:46
Regex & WithRegexString(RegexStringT &&value)
Definition Regex.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue