AWS SDK for C++  1.9.158
AWS SDK for C++
ByteMatchTuple.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/waf/WAF_EXPORTS.h>
9 #include <aws/core/utils/Array.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace WAF
25 {
26 namespace Model
27 {
28 
45  {
46  public:
51 
52 
58  inline const FieldToMatch& GetFieldToMatch() const{ return m_fieldToMatch; }
59 
65  inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
66 
72  inline void SetFieldToMatch(const FieldToMatch& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = value; }
73 
79  inline void SetFieldToMatch(FieldToMatch&& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = std::move(value); }
80 
86  inline ByteMatchTuple& WithFieldToMatch(const FieldToMatch& value) { SetFieldToMatch(value); return *this;}
87 
93  inline ByteMatchTuple& WithFieldToMatch(FieldToMatch&& value) { SetFieldToMatch(std::move(value)); return *this;}
94 
95 
140  inline const Aws::Utils::ByteBuffer& GetTargetString() const{ return m_targetString; }
141 
186  inline bool TargetStringHasBeenSet() const { return m_targetStringHasBeenSet; }
187 
232  inline void SetTargetString(const Aws::Utils::ByteBuffer& value) { m_targetStringHasBeenSet = true; m_targetString = value; }
233 
278  inline void SetTargetString(Aws::Utils::ByteBuffer&& value) { m_targetStringHasBeenSet = true; m_targetString = std::move(value); }
279 
324  inline ByteMatchTuple& WithTargetString(const Aws::Utils::ByteBuffer& value) { SetTargetString(value); return *this;}
325 
370  inline ByteMatchTuple& WithTargetString(Aws::Utils::ByteBuffer&& value) { SetTargetString(std::move(value)); return *this;}
371 
372 
408  inline const TextTransformation& GetTextTransformation() const{ return m_textTransformation; }
409 
445  inline bool TextTransformationHasBeenSet() const { return m_textTransformationHasBeenSet; }
446 
482  inline void SetTextTransformation(const TextTransformation& value) { m_textTransformationHasBeenSet = true; m_textTransformation = value; }
483 
519  inline void SetTextTransformation(TextTransformation&& value) { m_textTransformationHasBeenSet = true; m_textTransformation = std::move(value); }
520 
556  inline ByteMatchTuple& WithTextTransformation(const TextTransformation& value) { SetTextTransformation(value); return *this;}
557 
593  inline ByteMatchTuple& WithTextTransformation(TextTransformation&& value) { SetTextTransformation(std::move(value)); return *this;}
594 
595 
624  inline const PositionalConstraint& GetPositionalConstraint() const{ return m_positionalConstraint; }
625 
654  inline bool PositionalConstraintHasBeenSet() const { return m_positionalConstraintHasBeenSet; }
655 
684  inline void SetPositionalConstraint(const PositionalConstraint& value) { m_positionalConstraintHasBeenSet = true; m_positionalConstraint = value; }
685 
714  inline void SetPositionalConstraint(PositionalConstraint&& value) { m_positionalConstraintHasBeenSet = true; m_positionalConstraint = std::move(value); }
715 
744  inline ByteMatchTuple& WithPositionalConstraint(const PositionalConstraint& value) { SetPositionalConstraint(value); return *this;}
745 
774  inline ByteMatchTuple& WithPositionalConstraint(PositionalConstraint&& value) { SetPositionalConstraint(std::move(value)); return *this;}
775 
776  private:
777 
778  FieldToMatch m_fieldToMatch;
779  bool m_fieldToMatchHasBeenSet;
780 
781  Aws::Utils::ByteBuffer m_targetString;
782  bool m_targetStringHasBeenSet;
783 
784  TextTransformation m_textTransformation;
785  bool m_textTransformationHasBeenSet;
786 
787  PositionalConstraint m_positionalConstraint;
788  bool m_positionalConstraintHasBeenSet;
789  };
790 
791 } // namespace Model
792 } // namespace WAF
793 } // namespace Aws
Aws::WAF::Model::ByteMatchTuple::GetPositionalConstraint
const PositionalConstraint & GetPositionalConstraint() const
Definition: ByteMatchTuple.h:624
Aws::WAF::Model::ByteMatchTuple::SetPositionalConstraint
void SetPositionalConstraint(const PositionalConstraint &value)
Definition: ByteMatchTuple.h:684
Aws::WAF::Model::ByteMatchTuple::WithTargetString
ByteMatchTuple & WithTargetString(const Aws::Utils::ByteBuffer &value)
Definition: ByteMatchTuple.h:324
Aws::WAF::Model::ByteMatchTuple::WithTextTransformation
ByteMatchTuple & WithTextTransformation(TextTransformation &&value)
Definition: ByteMatchTuple.h:593
Aws::WAF::Model::ByteMatchTuple::SetPositionalConstraint
void SetPositionalConstraint(PositionalConstraint &&value)
Definition: ByteMatchTuple.h:714
Aws::WAF::Model::ByteMatchTuple::SetFieldToMatch
void SetFieldToMatch(FieldToMatch &&value)
Definition: ByteMatchTuple.h:79
Aws::WAF::Model::ByteMatchTuple::WithTargetString
ByteMatchTuple & WithTargetString(Aws::Utils::ByteBuffer &&value)
Definition: ByteMatchTuple.h:370
Aws::WAF::Model::ByteMatchTuple::SetFieldToMatch
void SetFieldToMatch(const FieldToMatch &value)
Definition: ByteMatchTuple.h:72
Aws::WAF::Model::ByteMatchTuple::GetTextTransformation
const TextTransformation & GetTextTransformation() const
Definition: ByteMatchTuple.h:408
AWS_WAF_API
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:28
Aws::WAF::Model::ByteMatchTuple::FieldToMatchHasBeenSet
bool FieldToMatchHasBeenSet() const
Definition: ByteMatchTuple.h:65
Aws::WAF::Model::ByteMatchTuple::TargetStringHasBeenSet
bool TargetStringHasBeenSet() const
Definition: ByteMatchTuple.h:186
TextTransformation.h
Aws::WAF::Model::ByteMatchTuple::SetTextTransformation
void SetTextTransformation(TextTransformation &&value)
Definition: ByteMatchTuple.h:519
Aws::WAF::Model::ByteMatchTuple::ByteMatchTuple
ByteMatchTuple()
Aws::WAF::Model::ByteMatchTuple::GetTargetString
const Aws::Utils::ByteBuffer & GetTargetString() const
Definition: ByteMatchTuple.h:140
Aws::WAF::Model::ByteMatchTuple::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAF::Model::ByteMatchTuple::SetTargetString
void SetTargetString(const Aws::Utils::ByteBuffer &value)
Definition: ByteMatchTuple.h:232
PositionalConstraint.h
Aws::WAF::Model::ByteMatchTuple::TextTransformationHasBeenSet
bool TextTransformationHasBeenSet() const
Definition: ByteMatchTuple.h:445
Aws::WAF::Model::ByteMatchTuple::SetTargetString
void SetTargetString(Aws::Utils::ByteBuffer &&value)
Definition: ByteMatchTuple.h:278
Aws::WAF::Model::ByteMatchTuple::GetFieldToMatch
const FieldToMatch & GetFieldToMatch() const
Definition: ByteMatchTuple.h:58
Aws::WAF::Model::ByteMatchTuple::WithTextTransformation
ByteMatchTuple & WithTextTransformation(const TextTransformation &value)
Definition: ByteMatchTuple.h:556
Aws::WAF::Model::ByteMatchTuple
Definition: ByteMatchTuple.h:45
FieldToMatch.h
Aws::WAF::Model::ByteMatchTuple::ByteMatchTuple
ByteMatchTuple(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Array< unsigned char >
Aws::WAF::Model::PositionalConstraint
PositionalConstraint
Definition: PositionalConstraint.h:17
Aws::WAF::Model::ByteMatchTuple::SetTextTransformation
void SetTextTransformation(const TextTransformation &value)
Definition: ByteMatchTuple.h:482
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAF::Model::TextTransformation
TextTransformation
Definition: TextTransformation.h:17
WAF_EXPORTS.h
Aws::WAF::Model::ByteMatchTuple::PositionalConstraintHasBeenSet
bool PositionalConstraintHasBeenSet() const
Definition: ByteMatchTuple.h:654
Aws::WAF::Model::ByteMatchTuple::WithFieldToMatch
ByteMatchTuple & WithFieldToMatch(const FieldToMatch &value)
Definition: ByteMatchTuple.h:86
Aws::WAF::Model::ByteMatchTuple::operator=
ByteMatchTuple & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::WAF::Model::ByteMatchTuple::WithFieldToMatch
ByteMatchTuple & WithFieldToMatch(FieldToMatch &&value)
Definition: ByteMatchTuple.h:93
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::WAF::Model::ByteMatchTuple::WithPositionalConstraint
ByteMatchTuple & WithPositionalConstraint(const PositionalConstraint &value)
Definition: ByteMatchTuple.h:744
Aws::WAF::Model::FieldToMatch
Definition: FieldToMatch.h:41
Aws::WAF::Model::ByteMatchTuple::WithPositionalConstraint
ByteMatchTuple & WithPositionalConstraint(PositionalConstraint &&value)
Definition: ByteMatchTuple.h:774