AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSearchString(const Aws::Utils::ByteBuffer& value) { m_searchStringHasBeenSet = true; m_searchString = value; }
90 inline void SetSearchString(Aws::Utils::ByteBuffer&& value) { m_searchStringHasBeenSet = true; m_searchString = std::move(value); }
91 inline ByteMatchStatement& WithSearchString(const Aws::Utils::ByteBuffer& value) { SetSearchString(value); return *this;}
92 inline ByteMatchStatement& WithSearchString(Aws::Utils::ByteBuffer&& value) { SetSearchString(std::move(value)); return *this;}
94
96
99 inline const FieldToMatch& GetFieldToMatch() const{ return m_fieldToMatch; }
100 inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
101 inline void SetFieldToMatch(const FieldToMatch& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = value; }
102 inline void SetFieldToMatch(FieldToMatch&& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = std::move(value); }
103 inline ByteMatchStatement& WithFieldToMatch(const FieldToMatch& value) { SetFieldToMatch(value); return *this;}
104 inline ByteMatchStatement& WithFieldToMatch(FieldToMatch&& value) { SetFieldToMatch(std::move(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 inline void SetTextTransformations(const Aws::Vector<TextTransformation>& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = value; }
121 inline void SetTextTransformations(Aws::Vector<TextTransformation>&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = std::move(value); }
124 inline ByteMatchStatement& AddTextTransformations(const TextTransformation& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.push_back(value); return *this; }
125 inline ByteMatchStatement& AddTextTransformations(TextTransformation&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.push_back(std::move(value)); return *this; }
127
129
152 inline const PositionalConstraint& GetPositionalConstraint() const{ return m_positionalConstraint; }
153 inline bool PositionalConstraintHasBeenSet() const { return m_positionalConstraintHasBeenSet; }
154 inline void SetPositionalConstraint(const PositionalConstraint& value) { m_positionalConstraintHasBeenSet = true; m_positionalConstraint = value; }
155 inline void SetPositionalConstraint(PositionalConstraint&& value) { m_positionalConstraintHasBeenSet = true; m_positionalConstraint = std::move(value); }
159 private:
160
161 Aws::Utils::ByteBuffer m_searchString;
162 bool m_searchStringHasBeenSet = false;
163
164 FieldToMatch m_fieldToMatch;
165 bool m_fieldToMatchHasBeenSet = false;
166
167 Aws::Vector<TextTransformation> m_textTransformations;
168 bool m_textTransformationsHasBeenSet = false;
169
170 PositionalConstraint m_positionalConstraint;
171 bool m_positionalConstraintHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace WAFV2
176} // namespace Aws
void SetFieldToMatch(FieldToMatch &&value)
const FieldToMatch & GetFieldToMatch() const
void SetPositionalConstraint(const PositionalConstraint &value)
ByteMatchStatement & WithTextTransformations(Aws::Vector< TextTransformation > &&value)
void SetTextTransformations(Aws::Vector< TextTransformation > &&value)
ByteMatchStatement & WithFieldToMatch(FieldToMatch &&value)
const PositionalConstraint & GetPositionalConstraint() const
const Aws::Vector< TextTransformation > & GetTextTransformations() const
ByteMatchStatement & WithSearchString(Aws::Utils::ByteBuffer &&value)
ByteMatchStatement & WithFieldToMatch(const FieldToMatch &value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPositionalConstraint(PositionalConstraint &&value)
ByteMatchStatement & AddTextTransformations(TextTransformation &&value)
ByteMatchStatement & WithTextTransformations(const Aws::Vector< TextTransformation > &value)
AWS_WAFV2_API ByteMatchStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
ByteMatchStatement & WithSearchString(const Aws::Utils::ByteBuffer &value)
AWS_WAFV2_API ByteMatchStatement(Aws::Utils::Json::JsonView jsonValue)
ByteMatchStatement & WithPositionalConstraint(PositionalConstraint &&value)
ByteMatchStatement & WithPositionalConstraint(const PositionalConstraint &value)
void SetSearchString(Aws::Utils::ByteBuffer &&value)
void SetFieldToMatch(const FieldToMatch &value)
ByteMatchStatement & AddTextTransformations(const TextTransformation &value)
void SetSearchString(const Aws::Utils::ByteBuffer &value)
const Aws::Utils::ByteBuffer & GetSearchString() const
void SetTextTransformations(const Aws::Vector< TextTransformation > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue