AWS SDK for C++  1.9.108
AWS SDK for C++
ByteMatchStatement.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/core/utils/Array.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace WAFV2
26 {
27 namespace Model
28 {
29 
41  {
42  public:
47 
48 
71  inline const Aws::Utils::ByteBuffer& GetSearchString() const{ return m_searchString; }
72 
95  inline bool SearchStringHasBeenSet() const { return m_searchStringHasBeenSet; }
96 
119  inline void SetSearchString(const Aws::Utils::ByteBuffer& value) { m_searchStringHasBeenSet = true; m_searchString = value; }
120 
143  inline void SetSearchString(Aws::Utils::ByteBuffer&& value) { m_searchStringHasBeenSet = true; m_searchString = std::move(value); }
144 
167  inline ByteMatchStatement& WithSearchString(const Aws::Utils::ByteBuffer& value) { SetSearchString(value); return *this;}
168 
191  inline ByteMatchStatement& WithSearchString(Aws::Utils::ByteBuffer&& value) { SetSearchString(std::move(value)); return *this;}
192 
193 
198  inline const FieldToMatch& GetFieldToMatch() const{ return m_fieldToMatch; }
199 
204  inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
205 
210  inline void SetFieldToMatch(const FieldToMatch& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = value; }
211 
216  inline void SetFieldToMatch(FieldToMatch&& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = std::move(value); }
217 
222  inline ByteMatchStatement& WithFieldToMatch(const FieldToMatch& value) { SetFieldToMatch(value); return *this;}
223 
228  inline ByteMatchStatement& WithFieldToMatch(FieldToMatch&& value) { SetFieldToMatch(std::move(value)); return *this;}
229 
230 
239  inline const Aws::Vector<TextTransformation>& GetTextTransformations() const{ return m_textTransformations; }
240 
249  inline bool TextTransformationsHasBeenSet() const { return m_textTransformationsHasBeenSet; }
250 
259  inline void SetTextTransformations(const Aws::Vector<TextTransformation>& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = value; }
260 
269  inline void SetTextTransformations(Aws::Vector<TextTransformation>&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = std::move(value); }
270 
279  inline ByteMatchStatement& WithTextTransformations(const Aws::Vector<TextTransformation>& value) { SetTextTransformations(value); return *this;}
280 
289  inline ByteMatchStatement& WithTextTransformations(Aws::Vector<TextTransformation>&& value) { SetTextTransformations(std::move(value)); return *this;}
290 
299  inline ByteMatchStatement& AddTextTransformations(const TextTransformation& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.push_back(value); return *this; }
300 
309  inline ByteMatchStatement& AddTextTransformations(TextTransformation&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.push_back(std::move(value)); return *this; }
310 
311 
335  inline const PositionalConstraint& GetPositionalConstraint() const{ return m_positionalConstraint; }
336 
360  inline bool PositionalConstraintHasBeenSet() const { return m_positionalConstraintHasBeenSet; }
361 
385  inline void SetPositionalConstraint(const PositionalConstraint& value) { m_positionalConstraintHasBeenSet = true; m_positionalConstraint = value; }
386 
410  inline void SetPositionalConstraint(PositionalConstraint&& value) { m_positionalConstraintHasBeenSet = true; m_positionalConstraint = std::move(value); }
411 
435  inline ByteMatchStatement& WithPositionalConstraint(const PositionalConstraint& value) { SetPositionalConstraint(value); return *this;}
436 
460  inline ByteMatchStatement& WithPositionalConstraint(PositionalConstraint&& value) { SetPositionalConstraint(std::move(value)); return *this;}
461 
462  private:
463 
464  Aws::Utils::ByteBuffer m_searchString;
465  bool m_searchStringHasBeenSet;
466 
467  FieldToMatch m_fieldToMatch;
468  bool m_fieldToMatchHasBeenSet;
469 
470  Aws::Vector<TextTransformation> m_textTransformations;
471  bool m_textTransformationsHasBeenSet;
472 
473  PositionalConstraint m_positionalConstraint;
474  bool m_positionalConstraintHasBeenSet;
475  };
476 
477 } // namespace Model
478 } // namespace WAFV2
479 } // namespace Aws
Aws::WAFV2::Model::ByteMatchStatement::WithTextTransformations
ByteMatchStatement & WithTextTransformations(Aws::Vector< TextTransformation > &&value)
Definition: ByteMatchStatement.h:289
Aws::WAFV2::Model::ByteMatchStatement::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::ByteMatchStatement::SetSearchString
void SetSearchString(const Aws::Utils::ByteBuffer &value)
Definition: ByteMatchStatement.h:119
Aws::WAFV2::Model::ByteMatchStatement::SetPositionalConstraint
void SetPositionalConstraint(PositionalConstraint &&value)
Definition: ByteMatchStatement.h:410
Aws::WAFV2::Model::ByteMatchStatement::GetFieldToMatch
const FieldToMatch & GetFieldToMatch() const
Definition: ByteMatchStatement.h:198
Aws::WAFV2::Model::ByteMatchStatement::ByteMatchStatement
ByteMatchStatement(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::ByteMatchStatement::WithFieldToMatch
ByteMatchStatement & WithFieldToMatch(FieldToMatch &&value)
Definition: ByteMatchStatement.h:228
Aws::WAFV2::Model::ByteMatchStatement::ByteMatchStatement
ByteMatchStatement()
Aws::WAFV2::Model::ByteMatchStatement::WithSearchString
ByteMatchStatement & WithSearchString(Aws::Utils::ByteBuffer &&value)
Definition: ByteMatchStatement.h:191
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::TextTransformation
Definition: TextTransformation.h:34
Aws::WAFV2::Model::ByteMatchStatement::WithTextTransformations
ByteMatchStatement & WithTextTransformations(const Aws::Vector< TextTransformation > &value)
Definition: ByteMatchStatement.h:279
AWSVector.h
Aws::WAFV2::Model::ByteMatchStatement::SetSearchString
void SetSearchString(Aws::Utils::ByteBuffer &&value)
Definition: ByteMatchStatement.h:143
Aws::WAFV2::Model::ByteMatchStatement::GetPositionalConstraint
const PositionalConstraint & GetPositionalConstraint() const
Definition: ByteMatchStatement.h:335
Aws::WAFV2::Model::ByteMatchStatement::FieldToMatchHasBeenSet
bool FieldToMatchHasBeenSet() const
Definition: ByteMatchStatement.h:204
WAFV2_EXPORTS.h
Aws::WAFV2::Model::ByteMatchStatement::operator=
ByteMatchStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::ByteMatchStatement::SetFieldToMatch
void SetFieldToMatch(FieldToMatch &&value)
Definition: ByteMatchStatement.h:216
Aws::WAFV2::Model::ByteMatchStatement::SetTextTransformations
void SetTextTransformations(const Aws::Vector< TextTransformation > &value)
Definition: ByteMatchStatement.h:259
Aws::WAFV2::Model::ByteMatchStatement::WithPositionalConstraint
ByteMatchStatement & WithPositionalConstraint(PositionalConstraint &&value)
Definition: ByteMatchStatement.h:460
Aws::WAFV2::Model::ByteMatchStatement::AddTextTransformations
ByteMatchStatement & AddTextTransformations(const TextTransformation &value)
Definition: ByteMatchStatement.h:299
Aws::WAFV2::Model::ByteMatchStatement::GetTextTransformations
const Aws::Vector< TextTransformation > & GetTextTransformations() const
Definition: ByteMatchStatement.h:239
Aws::WAFV2::Model::ByteMatchStatement::SetPositionalConstraint
void SetPositionalConstraint(const PositionalConstraint &value)
Definition: ByteMatchStatement.h:385
Aws::WAFV2::Model::ByteMatchStatement::WithFieldToMatch
ByteMatchStatement & WithFieldToMatch(const FieldToMatch &value)
Definition: ByteMatchStatement.h:222
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Array< unsigned char >
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::ByteMatchStatement::SetTextTransformations
void SetTextTransformations(Aws::Vector< TextTransformation > &&value)
Definition: ByteMatchStatement.h:269
Aws::WAFV2::Model::ByteMatchStatement::GetSearchString
const Aws::Utils::ByteBuffer & GetSearchString() const
Definition: ByteMatchStatement.h:71
Aws::WAFV2::Model::ByteMatchStatement::SetFieldToMatch
void SetFieldToMatch(const FieldToMatch &value)
Definition: ByteMatchStatement.h:210
Aws::WAFV2::Model::PositionalConstraint
PositionalConstraint
Definition: PositionalConstraint.h:17
PositionalConstraint.h
Aws::WAFV2::Model::ByteMatchStatement::PositionalConstraintHasBeenSet
bool PositionalConstraintHasBeenSet() const
Definition: ByteMatchStatement.h:360
Aws::WAFV2::Model::ByteMatchStatement::WithSearchString
ByteMatchStatement & WithSearchString(const Aws::Utils::ByteBuffer &value)
Definition: ByteMatchStatement.h:167
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::WAFV2::Model::ByteMatchStatement
Definition: ByteMatchStatement.h:41
FieldToMatch.h
Aws::WAFV2::Model::ByteMatchStatement::TextTransformationsHasBeenSet
bool TextTransformationsHasBeenSet() const
Definition: ByteMatchStatement.h:249
Aws::WAFV2::Model::ByteMatchStatement::SearchStringHasBeenSet
bool SearchStringHasBeenSet() const
Definition: ByteMatchStatement.h:95
Aws::WAFV2::Model::FieldToMatch
Definition: FieldToMatch.h:48
Aws::WAFV2::Model::ByteMatchStatement::WithPositionalConstraint
ByteMatchStatement & WithPositionalConstraint(const PositionalConstraint &value)
Definition: ByteMatchStatement.h:435
Aws::WAFV2::Model::ByteMatchStatement::AddTextTransformations
ByteMatchStatement & AddTextTransformations(TextTransformation &&value)
Definition: ByteMatchStatement.h:309
TextTransformation.h