AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ByteMatchStatement.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/Array.h>
9#include <aws/wafv2/model/FieldToMatch.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/wafv2/model/PositionalConstraint.h>
12#include <aws/wafv2/model/TextTransformation.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace WAFV2
26{
27namespace Model
28{
29
41 {
42 public:
43 AWS_WAFV2_API ByteMatchStatement() = default;
46 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
87 inline const Aws::Utils::ByteBuffer& GetSearchString() const { return m_searchString; }
88 inline bool SearchStringHasBeenSet() const { return m_searchStringHasBeenSet; }
89 template<typename SearchStringT = Aws::Utils::ByteBuffer>
90 void SetSearchString(SearchStringT&& value) { m_searchStringHasBeenSet = true; m_searchString = std::forward<SearchStringT>(value); }
91 template<typename SearchStringT = Aws::Utils::ByteBuffer>
92 ByteMatchStatement& WithSearchString(SearchStringT&& value) { SetSearchString(std::forward<SearchStringT>(value)); return *this;}
94
96
99 inline const FieldToMatch& GetFieldToMatch() const { return m_fieldToMatch; }
100 inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
101 template<typename FieldToMatchT = FieldToMatch>
102 void SetFieldToMatch(FieldToMatchT&& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = std::forward<FieldToMatchT>(value); }
103 template<typename FieldToMatchT = FieldToMatch>
104 ByteMatchStatement& WithFieldToMatch(FieldToMatchT&& value) { SetFieldToMatch(std::forward<FieldToMatchT>(value)); return *this;}
106
108
118 inline const Aws::Vector<TextTransformation>& GetTextTransformations() const { return m_textTransformations; }
119 inline bool TextTransformationsHasBeenSet() const { return m_textTransformationsHasBeenSet; }
120 template<typename TextTransformationsT = Aws::Vector<TextTransformation>>
121 void SetTextTransformations(TextTransformationsT&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = std::forward<TextTransformationsT>(value); }
122 template<typename TextTransformationsT = Aws::Vector<TextTransformation>>
123 ByteMatchStatement& WithTextTransformations(TextTransformationsT&& value) { SetTextTransformations(std::forward<TextTransformationsT>(value)); return *this;}
124 template<typename TextTransformationsT = TextTransformation>
125 ByteMatchStatement& AddTextTransformations(TextTransformationsT&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.emplace_back(std::forward<TextTransformationsT>(value)); return *this; }
127
129
152 inline PositionalConstraint GetPositionalConstraint() const { return m_positionalConstraint; }
153 inline bool PositionalConstraintHasBeenSet() const { return m_positionalConstraintHasBeenSet; }
154 inline void SetPositionalConstraint(PositionalConstraint value) { m_positionalConstraintHasBeenSet = true; m_positionalConstraint = value; }
157 private:
158
159 Aws::Utils::ByteBuffer m_searchString{};
160 bool m_searchStringHasBeenSet = false;
161
162 FieldToMatch m_fieldToMatch;
163 bool m_fieldToMatchHasBeenSet = false;
164
165 Aws::Vector<TextTransformation> m_textTransformations;
166 bool m_textTransformationsHasBeenSet = false;
167
169 bool m_positionalConstraintHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace WAFV2
174} // namespace Aws
const FieldToMatch & GetFieldToMatch() const
ByteMatchStatement & WithFieldToMatch(FieldToMatchT &&value)
void SetTextTransformations(TextTransformationsT &&value)
void SetFieldToMatch(FieldToMatchT &&value)
const Aws::Vector< TextTransformation > & GetTextTransformations() const
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
ByteMatchStatement & WithPositionalConstraint(PositionalConstraint value)
AWS_WAFV2_API ByteMatchStatement()=default
AWS_WAFV2_API ByteMatchStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API ByteMatchStatement(Aws::Utils::Json::JsonView jsonValue)
void SetSearchString(SearchStringT &&value)
void SetPositionalConstraint(PositionalConstraint value)
PositionalConstraint GetPositionalConstraint() const
ByteMatchStatement & WithSearchString(SearchStringT &&value)
const Aws::Utils::ByteBuffer & GetSearchString() const
ByteMatchStatement & WithTextTransformations(TextTransformationsT &&value)
ByteMatchStatement & AddTextTransformations(TextTransformationsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue