AWS SDK for C++

AWS SDK for C++ Version 1.11.932

Loading...
Searching...
No Matches
XssMatchStatement.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/TextTransformation.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WAFV2 {
23namespace Model {
24
34 public:
35 AWS_WAFV2_API XssMatchStatement() = 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 XssMatchStatement& 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 XssMatchStatement& WithTextTransformations(TextTransformationsT&& value) {
78 SetTextTransformations(std::forward<TextTransformationsT>(value));
79 return *this;
80 }
81 template <typename TextTransformationsT = TextTransformation>
82 XssMatchStatement& 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 XssMatchStatement& WithPreParseTextTransformations(PreParseTextTransformationsT&& value) {
107 SetPreParseTextTransformations(std::forward<PreParseTextTransformationsT>(value));
108 return *this;
109 }
110 template <typename PreParseTextTransformationsT = PreParseTextTransformation>
111 XssMatchStatement& AddPreParseTextTransformations(PreParseTextTransformationsT&& value) {
112 m_preParseTextTransformationsHasBeenSet = true;
113 m_preParseTextTransformations.emplace_back(std::forward<PreParseTextTransformationsT>(value));
114 return *this;
115 }
117 private:
118 FieldToMatch m_fieldToMatch;
119
120 Aws::Vector<TextTransformation> m_textTransformations;
121
122 Aws::Vector<PreParseTextTransformation> m_preParseTextTransformations;
123 bool m_fieldToMatchHasBeenSet = false;
124 bool m_textTransformationsHasBeenSet = false;
125 bool m_preParseTextTransformationsHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace WAFV2
130} // namespace Aws
void SetTextTransformations(TextTransformationsT &&value)
void SetPreParseTextTransformations(PreParseTextTransformationsT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
XssMatchStatement & AddPreParseTextTransformations(PreParseTextTransformationsT &&value)
XssMatchStatement & WithTextTransformations(TextTransformationsT &&value)
AWS_WAFV2_API XssMatchStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
XssMatchStatement & WithFieldToMatch(FieldToMatchT &&value)
AWS_WAFV2_API XssMatchStatement()=default
const FieldToMatch & GetFieldToMatch() const
AWS_WAFV2_API XssMatchStatement(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< PreParseTextTransformation > & GetPreParseTextTransformations() const
XssMatchStatement & WithPreParseTextTransformations(PreParseTextTransformationsT &&value)
void SetFieldToMatch(FieldToMatchT &&value)
XssMatchStatement & AddTextTransformations(TextTransformationsT &&value)
const Aws::Vector< TextTransformation > & GetTextTransformations() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue