AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ByteMatchTuple.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/waf/WAF_EXPORTS.h>
9#include <aws/waf/model/FieldToMatch.h>
10#include <aws/waf/model/PositionalConstraint.h>
11#include <aws/waf/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 WAF {
23namespace Model {
24
41 public:
42 AWS_WAF_API ByteMatchTuple() = default;
46
48
53 inline const FieldToMatch& GetFieldToMatch() const { return m_fieldToMatch; }
54 inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
55 template <typename FieldToMatchT = FieldToMatch>
56 void SetFieldToMatch(FieldToMatchT&& value) {
57 m_fieldToMatchHasBeenSet = true;
58 m_fieldToMatch = std::forward<FieldToMatchT>(value);
59 }
60 template <typename FieldToMatchT = FieldToMatch>
61 ByteMatchTuple& WithFieldToMatch(FieldToMatchT&& value) {
62 SetFieldToMatch(std::forward<FieldToMatchT>(value));
63 return *this;
64 }
66
68
112 inline const Aws::Utils::ByteBuffer& GetTargetString() const { return m_targetString; }
113 inline bool TargetStringHasBeenSet() const { return m_targetStringHasBeenSet; }
114 template <typename TargetStringT = Aws::Utils::ByteBuffer>
115 void SetTargetString(TargetStringT&& value) {
116 m_targetStringHasBeenSet = true;
117 m_targetString = std::forward<TargetStringT>(value);
118 }
119 template <typename TargetStringT = Aws::Utils::ByteBuffer>
120 ByteMatchTuple& WithTargetString(TargetStringT&& value) {
121 SetTargetString(std::forward<TargetStringT>(value));
122 return *this;
123 }
125
127
162 inline TextTransformation GetTextTransformation() const { return m_textTransformation; }
163 inline bool TextTransformationHasBeenSet() const { return m_textTransformationHasBeenSet; }
165 m_textTransformationHasBeenSet = true;
166 m_textTransformation = value;
167 }
170 return *this;
171 }
173
175
203 inline PositionalConstraint GetPositionalConstraint() const { return m_positionalConstraint; }
204 inline bool PositionalConstraintHasBeenSet() const { return m_positionalConstraintHasBeenSet; }
206 m_positionalConstraintHasBeenSet = true;
207 m_positionalConstraint = value;
208 }
211 return *this;
212 }
214 private:
215 FieldToMatch m_fieldToMatch;
216
217 Aws::Utils::ByteBuffer m_targetString{};
218
220
222 bool m_fieldToMatchHasBeenSet = false;
223 bool m_targetStringHasBeenSet = false;
224 bool m_textTransformationHasBeenSet = false;
225 bool m_positionalConstraintHasBeenSet = false;
226};
227
228} // namespace Model
229} // namespace WAF
230} // namespace Aws
AWS_WAF_API ByteMatchTuple & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPositionalConstraint(PositionalConstraint value)
void SetTextTransformation(TextTransformation value)
ByteMatchTuple & WithTextTransformation(TextTransformation value)
const FieldToMatch & GetFieldToMatch() const
ByteMatchTuple & WithPositionalConstraint(PositionalConstraint value)
AWS_WAF_API ByteMatchTuple()=default
void SetFieldToMatch(FieldToMatchT &&value)
void SetTargetString(TargetStringT &&value)
ByteMatchTuple & WithFieldToMatch(FieldToMatchT &&value)
ByteMatchTuple & WithTargetString(TargetStringT &&value)
TextTransformation GetTextTransformation() const
PositionalConstraint GetPositionalConstraint() const
AWS_WAF_API ByteMatchTuple(Aws::Utils::Json::JsonView jsonValue)
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::ByteBuffer & GetTargetString() const
Aws::Utils::Json::JsonValue JsonValue