AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SqliMatchStatement.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/FieldToMatch.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wafv2/model/SensitivityLevel.h>
11#include <aws/wafv2/model/TextTransformation.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WAFV2
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_WAFV2_API SqliMatchStatement() = default;
42 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const FieldToMatch& GetFieldToMatch() const { return m_fieldToMatch; }
50 inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
51 template<typename FieldToMatchT = FieldToMatch>
52 void SetFieldToMatch(FieldToMatchT&& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = std::forward<FieldToMatchT>(value); }
53 template<typename FieldToMatchT = FieldToMatch>
54 SqliMatchStatement& WithFieldToMatch(FieldToMatchT&& value) { SetFieldToMatch(std::forward<FieldToMatchT>(value)); return *this;}
56
58
68 inline const Aws::Vector<TextTransformation>& GetTextTransformations() const { return m_textTransformations; }
69 inline bool TextTransformationsHasBeenSet() const { return m_textTransformationsHasBeenSet; }
70 template<typename TextTransformationsT = Aws::Vector<TextTransformation>>
71 void SetTextTransformations(TextTransformationsT&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = std::forward<TextTransformationsT>(value); }
72 template<typename TextTransformationsT = Aws::Vector<TextTransformation>>
73 SqliMatchStatement& WithTextTransformations(TextTransformationsT&& value) { SetTextTransformations(std::forward<TextTransformationsT>(value)); return *this;}
74 template<typename TextTransformationsT = TextTransformation>
75 SqliMatchStatement& AddTextTransformations(TextTransformationsT&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.emplace_back(std::forward<TextTransformationsT>(value)); return *this; }
77
79
91 inline SensitivityLevel GetSensitivityLevel() const { return m_sensitivityLevel; }
92 inline bool SensitivityLevelHasBeenSet() const { return m_sensitivityLevelHasBeenSet; }
93 inline void SetSensitivityLevel(SensitivityLevel value) { m_sensitivityLevelHasBeenSet = true; m_sensitivityLevel = value; }
96 private:
97
98 FieldToMatch m_fieldToMatch;
99 bool m_fieldToMatchHasBeenSet = false;
100
101 Aws::Vector<TextTransformation> m_textTransformations;
102 bool m_textTransformationsHasBeenSet = false;
103
105 bool m_sensitivityLevelHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace WAFV2
110} // 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
SqliMatchStatement & WithTextTransformations(TextTransformationsT &&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)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
SensitivityLevel GetSensitivityLevel() const
SqliMatchStatement & AddTextTransformations(TextTransformationsT &&value)
SqliMatchStatement & WithSensitivityLevel(SensitivityLevel value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue