AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ByteMatchTuple.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/waf/model/FieldToMatch.h>
9#include <aws/core/utils/Array.h>
10#include <aws/waf/model/TextTransformation.h>
11#include <aws/waf/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 WAF
25{
26namespace Model
27{
28
45 {
46 public:
47 AWS_WAF_API ByteMatchTuple() = default;
51
52
54
59 inline const FieldToMatch& GetFieldToMatch() const { return m_fieldToMatch; }
60 inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
61 template<typename FieldToMatchT = FieldToMatch>
62 void SetFieldToMatch(FieldToMatchT&& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = std::forward<FieldToMatchT>(value); }
63 template<typename FieldToMatchT = FieldToMatch>
64 ByteMatchTuple& WithFieldToMatch(FieldToMatchT&& value) { SetFieldToMatch(std::forward<FieldToMatchT>(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 template<typename TargetStringT = Aws::Utils::ByteBuffer>
115 void SetTargetString(TargetStringT&& value) { m_targetStringHasBeenSet = true; m_targetString = std::forward<TargetStringT>(value); }
116 template<typename TargetStringT = Aws::Utils::ByteBuffer>
117 ByteMatchTuple& WithTargetString(TargetStringT&& value) { SetTargetString(std::forward<TargetStringT>(value)); return *this;}
119
121
156 inline TextTransformation GetTextTransformation() const { return m_textTransformation; }
157 inline bool TextTransformationHasBeenSet() const { return m_textTransformationHasBeenSet; }
158 inline void SetTextTransformation(TextTransformation value) { m_textTransformationHasBeenSet = true; m_textTransformation = value; }
161
163
191 inline PositionalConstraint GetPositionalConstraint() const { return m_positionalConstraint; }
192 inline bool PositionalConstraintHasBeenSet() const { return m_positionalConstraintHasBeenSet; }
193 inline void SetPositionalConstraint(PositionalConstraint value) { m_positionalConstraintHasBeenSet = true; m_positionalConstraint = value; }
196 private:
197
198 FieldToMatch m_fieldToMatch;
199 bool m_fieldToMatchHasBeenSet = false;
200
201 Aws::Utils::ByteBuffer m_targetString{};
202 bool m_targetStringHasBeenSet = false;
203
205 bool m_textTransformationHasBeenSet = false;
206
208 bool m_positionalConstraintHasBeenSet = false;
209 };
210
211} // namespace Model
212} // namespace WAF
213} // 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