AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
RegexMatchStatement.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wafv2/WAFV2_EXPORTS.h>
10#include <aws/wafv2/model/FieldToMatch.h>
11#include <aws/wafv2/model/PreParseTextTransformation.h>
12#include <aws/wafv2/model/TextTransformation.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WAFV2 {
24namespace Model {
25
33 public:
34 AWS_WAFV2_API RegexMatchStatement() = default;
37 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
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) {
50 m_regexStringHasBeenSet = true;
51 m_regexString = std::forward<RegexStringT>(value);
52 }
53 template <typename RegexStringT = Aws::String>
54 RegexMatchStatement& WithRegexString(RegexStringT&& value) {
55 SetRegexString(std::forward<RegexStringT>(value));
56 return *this;
57 }
59
61
64 inline const FieldToMatch& GetFieldToMatch() const { return m_fieldToMatch; }
65 inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
66 template <typename FieldToMatchT = FieldToMatch>
67 void SetFieldToMatch(FieldToMatchT&& value) {
68 m_fieldToMatchHasBeenSet = true;
69 m_fieldToMatch = std::forward<FieldToMatchT>(value);
70 }
71 template <typename FieldToMatchT = FieldToMatch>
72 RegexMatchStatement& WithFieldToMatch(FieldToMatchT&& value) {
73 SetFieldToMatch(std::forward<FieldToMatchT>(value));
74 return *this;
75 }
77
79
89 inline const Aws::Vector<TextTransformation>& GetTextTransformations() const { return m_textTransformations; }
90 inline bool TextTransformationsHasBeenSet() const { return m_textTransformationsHasBeenSet; }
91 template <typename TextTransformationsT = Aws::Vector<TextTransformation>>
92 void SetTextTransformations(TextTransformationsT&& value) {
93 m_textTransformationsHasBeenSet = true;
94 m_textTransformations = std::forward<TextTransformationsT>(value);
95 }
96 template <typename TextTransformationsT = Aws::Vector<TextTransformation>>
97 RegexMatchStatement& WithTextTransformations(TextTransformationsT&& value) {
98 SetTextTransformations(std::forward<TextTransformationsT>(value));
99 return *this;
100 }
101 template <typename TextTransformationsT = TextTransformation>
102 RegexMatchStatement& AddTextTransformations(TextTransformationsT&& value) {
103 m_textTransformationsHasBeenSet = true;
104 m_textTransformations.emplace_back(std::forward<TextTransformationsT>(value));
105 return *this;
106 }
108
110
118 inline const Aws::Vector<PreParseTextTransformation>& GetPreParseTextTransformations() const { return m_preParseTextTransformations; }
119 inline bool PreParseTextTransformationsHasBeenSet() const { return m_preParseTextTransformationsHasBeenSet; }
120 template <typename PreParseTextTransformationsT = Aws::Vector<PreParseTextTransformation>>
121 void SetPreParseTextTransformations(PreParseTextTransformationsT&& value) {
122 m_preParseTextTransformationsHasBeenSet = true;
123 m_preParseTextTransformations = std::forward<PreParseTextTransformationsT>(value);
124 }
125 template <typename PreParseTextTransformationsT = Aws::Vector<PreParseTextTransformation>>
126 RegexMatchStatement& WithPreParseTextTransformations(PreParseTextTransformationsT&& value) {
127 SetPreParseTextTransformations(std::forward<PreParseTextTransformationsT>(value));
128 return *this;
129 }
130 template <typename PreParseTextTransformationsT = PreParseTextTransformation>
131 RegexMatchStatement& AddPreParseTextTransformations(PreParseTextTransformationsT&& value) {
132 m_preParseTextTransformationsHasBeenSet = true;
133 m_preParseTextTransformations.emplace_back(std::forward<PreParseTextTransformationsT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_regexString;
139
140 FieldToMatch m_fieldToMatch;
141
142 Aws::Vector<TextTransformation> m_textTransformations;
143
144 Aws::Vector<PreParseTextTransformation> m_preParseTextTransformations;
145 bool m_regexStringHasBeenSet = false;
146 bool m_fieldToMatchHasBeenSet = false;
147 bool m_textTransformationsHasBeenSet = false;
148 bool m_preParseTextTransformationsHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace WAFV2
153} // namespace Aws
const Aws::String & GetRegexString() const
AWS_WAFV2_API RegexMatchStatement()=default
const FieldToMatch & GetFieldToMatch() const
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTextTransformations(TextTransformationsT &&value)
const Aws::Vector< PreParseTextTransformation > & GetPreParseTextTransformations() const
RegexMatchStatement & AddPreParseTextTransformations(PreParseTextTransformationsT &&value)
RegexMatchStatement & WithFieldToMatch(FieldToMatchT &&value)
void SetFieldToMatch(FieldToMatchT &&value)
RegexMatchStatement & WithPreParseTextTransformations(PreParseTextTransformationsT &&value)
void SetPreParseTextTransformations(PreParseTextTransformationsT &&value)
void SetRegexString(RegexStringT &&value)
RegexMatchStatement & WithRegexString(RegexStringT &&value)
AWS_WAFV2_API RegexMatchStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
RegexMatchStatement & AddTextTransformations(TextTransformationsT &&value)
const Aws::Vector< TextTransformation > & GetTextTransformations() const
AWS_WAFV2_API RegexMatchStatement(Aws::Utils::Json::JsonView jsonValue)
RegexMatchStatement & WithTextTransformations(TextTransformationsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue