AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
RegexPatternSetReferenceStatement.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
41 public:
42 AWS_WAFV2_API RegexPatternSetReferenceStatement() = default;
45 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
46
48
52 inline const Aws::String& GetARN() const { return m_aRN; }
53 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
54 template <typename ARNT = Aws::String>
55 void SetARN(ARNT&& value) {
56 m_aRNHasBeenSet = true;
57 m_aRN = std::forward<ARNT>(value);
58 }
59 template <typename ARNT = Aws::String>
61 SetARN(std::forward<ARNT>(value));
62 return *this;
63 }
65
67
70 inline const FieldToMatch& GetFieldToMatch() const { return m_fieldToMatch; }
71 inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
72 template <typename FieldToMatchT = FieldToMatch>
73 void SetFieldToMatch(FieldToMatchT&& value) {
74 m_fieldToMatchHasBeenSet = true;
75 m_fieldToMatch = std::forward<FieldToMatchT>(value);
76 }
77 template <typename FieldToMatchT = FieldToMatch>
79 SetFieldToMatch(std::forward<FieldToMatchT>(value));
80 return *this;
81 }
83
85
95 inline const Aws::Vector<TextTransformation>& GetTextTransformations() const { return m_textTransformations; }
96 inline bool TextTransformationsHasBeenSet() const { return m_textTransformationsHasBeenSet; }
97 template <typename TextTransformationsT = Aws::Vector<TextTransformation>>
98 void SetTextTransformations(TextTransformationsT&& value) {
99 m_textTransformationsHasBeenSet = true;
100 m_textTransformations = std::forward<TextTransformationsT>(value);
101 }
102 template <typename TextTransformationsT = Aws::Vector<TextTransformation>>
104 SetTextTransformations(std::forward<TextTransformationsT>(value));
105 return *this;
106 }
107 template <typename TextTransformationsT = TextTransformation>
109 m_textTransformationsHasBeenSet = true;
110 m_textTransformations.emplace_back(std::forward<TextTransformationsT>(value));
111 return *this;
112 }
114
116
124 inline const Aws::Vector<PreParseTextTransformation>& GetPreParseTextTransformations() const { return m_preParseTextTransformations; }
125 inline bool PreParseTextTransformationsHasBeenSet() const { return m_preParseTextTransformationsHasBeenSet; }
126 template <typename PreParseTextTransformationsT = Aws::Vector<PreParseTextTransformation>>
127 void SetPreParseTextTransformations(PreParseTextTransformationsT&& value) {
128 m_preParseTextTransformationsHasBeenSet = true;
129 m_preParseTextTransformations = std::forward<PreParseTextTransformationsT>(value);
130 }
131 template <typename PreParseTextTransformationsT = Aws::Vector<PreParseTextTransformation>>
133 SetPreParseTextTransformations(std::forward<PreParseTextTransformationsT>(value));
134 return *this;
135 }
136 template <typename PreParseTextTransformationsT = PreParseTextTransformation>
138 m_preParseTextTransformationsHasBeenSet = true;
139 m_preParseTextTransformations.emplace_back(std::forward<PreParseTextTransformationsT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_aRN;
145
146 FieldToMatch m_fieldToMatch;
147
148 Aws::Vector<TextTransformation> m_textTransformations;
149
150 Aws::Vector<PreParseTextTransformation> m_preParseTextTransformations;
151 bool m_aRNHasBeenSet = false;
152 bool m_fieldToMatchHasBeenSet = false;
153 bool m_textTransformationsHasBeenSet = false;
154 bool m_preParseTextTransformationsHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace WAFV2
159} // namespace Aws
void SetPreParseTextTransformations(PreParseTextTransformationsT &&value)
AWS_WAFV2_API RegexPatternSetReferenceStatement(Aws::Utils::Json::JsonView jsonValue)
RegexPatternSetReferenceStatement & WithARN(ARNT &&value)
const Aws::Vector< PreParseTextTransformation > & GetPreParseTextTransformations() const
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
RegexPatternSetReferenceStatement & WithFieldToMatch(FieldToMatchT &&value)
AWS_WAFV2_API RegexPatternSetReferenceStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
RegexPatternSetReferenceStatement & AddPreParseTextTransformations(PreParseTextTransformationsT &&value)
RegexPatternSetReferenceStatement & WithTextTransformations(TextTransformationsT &&value)
const Aws::Vector< TextTransformation > & GetTextTransformations() const
RegexPatternSetReferenceStatement & WithPreParseTextTransformations(PreParseTextTransformationsT &&value)
RegexPatternSetReferenceStatement & AddTextTransformations(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