AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ByteMatchTuple.h
1
6#pragma once
7#include <aws/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/waf-regional/model/FieldToMatch.h>
9#include <aws/core/utils/Array.h>
10#include <aws/waf-regional/model/TextTransformation.h>
11#include <aws/waf-regional/model/PositionalConstraint.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 WAFRegional
25{
26namespace Model
27{
28
45 {
46 public:
47 AWS_WAFREGIONAL_API ByteMatchTuple();
48 AWS_WAFREGIONAL_API ByteMatchTuple(Aws::Utils::Json::JsonView jsonValue);
49 AWS_WAFREGIONAL_API ByteMatchTuple& operator=(Aws::Utils::Json::JsonView jsonValue);
50 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
59 inline const FieldToMatch& GetFieldToMatch() const{ return m_fieldToMatch; }
60 inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
61 inline void SetFieldToMatch(const FieldToMatch& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = value; }
62 inline void SetFieldToMatch(FieldToMatch&& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = std::move(value); }
63 inline ByteMatchTuple& WithFieldToMatch(const FieldToMatch& value) { SetFieldToMatch(value); return *this;}
64 inline ByteMatchTuple& WithFieldToMatch(FieldToMatch&& value) { SetFieldToMatch(std::move(value)); return *this;}
66
68
112 inline const Aws::Utils::ByteBuffer& GetTargetString() const{ return m_targetString; }
113 inline bool TargetStringHasBeenSet() const { return m_targetStringHasBeenSet; }
114 inline void SetTargetString(const Aws::Utils::ByteBuffer& value) { m_targetStringHasBeenSet = true; m_targetString = value; }
115 inline void SetTargetString(Aws::Utils::ByteBuffer&& value) { m_targetStringHasBeenSet = true; m_targetString = std::move(value); }
116 inline ByteMatchTuple& WithTargetString(const Aws::Utils::ByteBuffer& value) { SetTargetString(value); return *this;}
117 inline ByteMatchTuple& WithTargetString(Aws::Utils::ByteBuffer&& value) { SetTargetString(std::move(value)); return *this;}
119
121
156 inline const TextTransformation& GetTextTransformation() const{ return m_textTransformation; }
157 inline bool TextTransformationHasBeenSet() const { return m_textTransformationHasBeenSet; }
158 inline void SetTextTransformation(const TextTransformation& value) { m_textTransformationHasBeenSet = true; m_textTransformation = value; }
159 inline void SetTextTransformation(TextTransformation&& value) { m_textTransformationHasBeenSet = true; m_textTransformation = std::move(value); }
161 inline ByteMatchTuple& WithTextTransformation(TextTransformation&& value) { SetTextTransformation(std::move(value)); return *this;}
163
165
193 inline const PositionalConstraint& GetPositionalConstraint() const{ return m_positionalConstraint; }
194 inline bool PositionalConstraintHasBeenSet() const { return m_positionalConstraintHasBeenSet; }
195 inline void SetPositionalConstraint(const PositionalConstraint& value) { m_positionalConstraintHasBeenSet = true; m_positionalConstraint = value; }
196 inline void SetPositionalConstraint(PositionalConstraint&& value) { m_positionalConstraintHasBeenSet = true; m_positionalConstraint = std::move(value); }
198 inline ByteMatchTuple& WithPositionalConstraint(PositionalConstraint&& value) { SetPositionalConstraint(std::move(value)); return *this;}
200 private:
201
202 FieldToMatch m_fieldToMatch;
203 bool m_fieldToMatchHasBeenSet = false;
204
205 Aws::Utils::ByteBuffer m_targetString;
206 bool m_targetStringHasBeenSet = false;
207
208 TextTransformation m_textTransformation;
209 bool m_textTransformationHasBeenSet = false;
210
211 PositionalConstraint m_positionalConstraint;
212 bool m_positionalConstraintHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace WAFRegional
217} // namespace Aws
AWS_WAFREGIONAL_API ByteMatchTuple(Aws::Utils::Json::JsonView jsonValue)
ByteMatchTuple & WithFieldToMatch(FieldToMatch &&value)
void SetFieldToMatch(FieldToMatch &&value)
ByteMatchTuple & WithTextTransformation(const TextTransformation &value)
void SetPositionalConstraint(const PositionalConstraint &value)
void SetPositionalConstraint(PositionalConstraint &&value)
const TextTransformation & GetTextTransformation() const
ByteMatchTuple & WithTargetString(const Aws::Utils::ByteBuffer &value)
const PositionalConstraint & GetPositionalConstraint() const
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
ByteMatchTuple & WithTargetString(Aws::Utils::ByteBuffer &&value)
AWS_WAFREGIONAL_API ByteMatchTuple & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::ByteBuffer & GetTargetString() const
void SetTargetString(const Aws::Utils::ByteBuffer &value)
void SetTargetString(Aws::Utils::ByteBuffer &&value)
ByteMatchTuple & WithTextTransformation(TextTransformation &&value)
void SetTextTransformation(TextTransformation &&value)
void SetFieldToMatch(const FieldToMatch &value)
ByteMatchTuple & WithFieldToMatch(const FieldToMatch &value)
ByteMatchTuple & WithPositionalConstraint(const PositionalConstraint &value)
const FieldToMatch & GetFieldToMatch() const
ByteMatchTuple & WithPositionalConstraint(PositionalConstraint &&value)
void SetTextTransformation(const TextTransformation &value)
Aws::Utils::Json::JsonValue JsonValue