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-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() = default;
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 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 WAFRegional
213} // namespace Aws
ByteMatchTuple & WithTargetString(TargetStringT &&value)
AWS_WAFREGIONAL_API ByteMatchTuple(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFREGIONAL_API ByteMatchTuple()=default
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
ByteMatchTuple & WithTextTransformation(TextTransformation value)
ByteMatchTuple & WithFieldToMatch(FieldToMatchT &&value)
AWS_WAFREGIONAL_API ByteMatchTuple & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::ByteBuffer & GetTargetString() const
PositionalConstraint GetPositionalConstraint() const
ByteMatchTuple & WithPositionalConstraint(PositionalConstraint value)
void SetFieldToMatch(FieldToMatchT &&value)
void SetPositionalConstraint(PositionalConstraint value)
void SetTextTransformation(TextTransformation value)
void SetTargetString(TargetStringT &&value)
const FieldToMatch & GetFieldToMatch() const
TextTransformation GetTextTransformation() const
Aws::Utils::Json::JsonValue JsonValue