AWS SDK for C++

AWS SDK for C++ Version 1.11.932

Loading...
Searching...
No Matches
SqliMatchStatement.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/wafv2/WAFV2_EXPORTS.h>
9#include <aws/wafv2/model/FieldToMatch.h>
10#include <aws/wafv2/model/PreParseTextTransformation.h>
11#include <aws/wafv2/model/SensitivityLevel.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
34 public:
35 AWS_WAFV2_API SqliMatchStatement() = default;
38 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const FieldToMatch& GetFieldToMatch() const { return m_fieldToMatch; }
45 inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
46 template <typename FieldToMatchT = FieldToMatch>
47 void SetFieldToMatch(FieldToMatchT&& value) {
48 m_fieldToMatchHasBeenSet = true;
49 m_fieldToMatch = std::forward<FieldToMatchT>(value);
50 }
51 template <typename FieldToMatchT = FieldToMatch>
52 SqliMatchStatement& WithFieldToMatch(FieldToMatchT&& value) {
53 SetFieldToMatch(std::forward<FieldToMatchT>(value));
54 return *this;
55 }
57
59
69 inline const Aws::Vector<TextTransformation>& GetTextTransformations() const { return m_textTransformations; }
70 inline bool TextTransformationsHasBeenSet() const { return m_textTransformationsHasBeenSet; }
71 template <typename TextTransformationsT = Aws::Vector<TextTransformation>>
72 void SetTextTransformations(TextTransformationsT&& value) {
73 m_textTransformationsHasBeenSet = true;
74 m_textTransformations = std::forward<TextTransformationsT>(value);
75 }
76 template <typename TextTransformationsT = Aws::Vector<TextTransformation>>
77 SqliMatchStatement& WithTextTransformations(TextTransformationsT&& value) {
78 SetTextTransformations(std::forward<TextTransformationsT>(value));
79 return *this;
80 }
81 template <typename TextTransformationsT = TextTransformation>
82 SqliMatchStatement& AddTextTransformations(TextTransformationsT&& value) {
83 m_textTransformationsHasBeenSet = true;
84 m_textTransformations.emplace_back(std::forward<TextTransformationsT>(value));
85 return *this;
86 }
88
90
98 inline const Aws::Vector<PreParseTextTransformation>& GetPreParseTextTransformations() const { return m_preParseTextTransformations; }
99 inline bool PreParseTextTransformationsHasBeenSet() const { return m_preParseTextTransformationsHasBeenSet; }
100 template <typename PreParseTextTransformationsT = Aws::Vector<PreParseTextTransformation>>
101 void SetPreParseTextTransformations(PreParseTextTransformationsT&& value) {
102 m_preParseTextTransformationsHasBeenSet = true;
103 m_preParseTextTransformations = std::forward<PreParseTextTransformationsT>(value);
104 }
105 template <typename PreParseTextTransformationsT = Aws::Vector<PreParseTextTransformation>>
106 SqliMatchStatement& WithPreParseTextTransformations(PreParseTextTransformationsT&& value) {
107 SetPreParseTextTransformations(std::forward<PreParseTextTransformationsT>(value));
108 return *this;
109 }
110 template <typename PreParseTextTransformationsT = PreParseTextTransformation>
111 SqliMatchStatement& AddPreParseTextTransformations(PreParseTextTransformationsT&& value) {
112 m_preParseTextTransformationsHasBeenSet = true;
113 m_preParseTextTransformations.emplace_back(std::forward<PreParseTextTransformationsT>(value));
114 return *this;
115 }
117
119
131 inline SensitivityLevel GetSensitivityLevel() const { return m_sensitivityLevel; }
132 inline bool SensitivityLevelHasBeenSet() const { return m_sensitivityLevelHasBeenSet; }
134 m_sensitivityLevelHasBeenSet = true;
135 m_sensitivityLevel = value;
136 }
138 SetSensitivityLevel(value);
139 return *this;
140 }
142 private:
143 FieldToMatch m_fieldToMatch;
144
145 Aws::Vector<TextTransformation> m_textTransformations;
146
147 Aws::Vector<PreParseTextTransformation> m_preParseTextTransformations;
148
150 bool m_fieldToMatchHasBeenSet = false;
151 bool m_textTransformationsHasBeenSet = false;
152 bool m_preParseTextTransformationsHasBeenSet = false;
153 bool m_sensitivityLevelHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace WAFV2
158} // namespace Aws
const FieldToMatch & GetFieldToMatch() const
AWS_WAFV2_API SqliMatchStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSensitivityLevel(SensitivityLevel value)
AWS_WAFV2_API SqliMatchStatement()=default
const Aws::Vector< PreParseTextTransformation > & GetPreParseTextTransformations() const
SqliMatchStatement & WithTextTransformations(TextTransformationsT &&value)
SqliMatchStatement & AddPreParseTextTransformations(PreParseTextTransformationsT &&value)
const Aws::Vector< TextTransformation > & GetTextTransformations() const
SqliMatchStatement & WithFieldToMatch(FieldToMatchT &&value)
AWS_WAFV2_API SqliMatchStatement(Aws::Utils::Json::JsonView jsonValue)
void SetTextTransformations(TextTransformationsT &&value)
void SetFieldToMatch(FieldToMatchT &&value)
SqliMatchStatement & WithPreParseTextTransformations(PreParseTextTransformationsT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
SensitivityLevel GetSensitivityLevel() const
SqliMatchStatement & AddTextTransformations(TextTransformationsT &&value)
SqliMatchStatement & WithSensitivityLevel(SensitivityLevel value)
void SetPreParseTextTransformations(PreParseTextTransformationsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue