AWS SDK for C++  0.14.3
AWS SDK for C++
ByteMatchTuple.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/waf/WAF_EXPORTS.h>
18 #include <aws/core/utils/Array.h>
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace WAF
32 {
33 namespace Model
34 {
35 
42  {
43  public:
46  ByteMatchTuple& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
47  Aws::Utils::Json::JsonValue Jsonize() const;
48 
54  inline const FieldToMatch& GetFieldToMatch() const{ return m_fieldToMatch; }
55 
61  inline void SetFieldToMatch(const FieldToMatch& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = value; }
62 
68  inline void SetFieldToMatch(FieldToMatch&& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = value; }
69 
75  inline ByteMatchTuple& WithFieldToMatch(const FieldToMatch& value) { SetFieldToMatch(value); return *this;}
76 
82  inline ByteMatchTuple& WithFieldToMatch(FieldToMatch&& value) { SetFieldToMatch(value); return *this;}
83 
120  inline const Aws::Utils::ByteBuffer& GetTargetString() const{ return m_targetString; }
121 
158  inline void SetTargetString(const Aws::Utils::ByteBuffer& value) { m_targetStringHasBeenSet = true; m_targetString = value; }
159 
196  inline void SetTargetString(Aws::Utils::ByteBuffer&& value) { m_targetStringHasBeenSet = true; m_targetString = value; }
197 
234  inline ByteMatchTuple& WithTargetString(const Aws::Utils::ByteBuffer& value) { SetTargetString(value); return *this;}
235 
272  inline ByteMatchTuple& WithTargetString(Aws::Utils::ByteBuffer&& value) { SetTargetString(value); return *this;}
273 
307  inline const TextTransformation& GetTextTransformation() const{ return m_textTransformation; }
308 
342  inline void SetTextTransformation(const TextTransformation& value) { m_textTransformationHasBeenSet = true; m_textTransformation = value; }
343 
377  inline void SetTextTransformation(TextTransformation&& value) { m_textTransformationHasBeenSet = true; m_textTransformation = value; }
378 
412  inline ByteMatchTuple& WithTextTransformation(const TextTransformation& value) { SetTextTransformation(value); return *this;}
413 
447  inline ByteMatchTuple& WithTextTransformation(TextTransformation&& value) { SetTextTransformation(value); return *this;}
448 
477  inline const PositionalConstraint& GetPositionalConstraint() const{ return m_positionalConstraint; }
478 
507  inline void SetPositionalConstraint(const PositionalConstraint& value) { m_positionalConstraintHasBeenSet = true; m_positionalConstraint = value; }
508 
537  inline void SetPositionalConstraint(PositionalConstraint&& value) { m_positionalConstraintHasBeenSet = true; m_positionalConstraint = value; }
538 
567  inline ByteMatchTuple& WithPositionalConstraint(const PositionalConstraint& value) { SetPositionalConstraint(value); return *this;}
568 
597  inline ByteMatchTuple& WithPositionalConstraint(PositionalConstraint&& value) { SetPositionalConstraint(value); return *this;}
598 
599  private:
600  FieldToMatch m_fieldToMatch;
601  bool m_fieldToMatchHasBeenSet;
602  Aws::Utils::ByteBuffer m_targetString;
603  bool m_targetStringHasBeenSet;
604  TextTransformation m_textTransformation;
605  bool m_textTransformationHasBeenSet;
606  PositionalConstraint m_positionalConstraint;
607  bool m_positionalConstraintHasBeenSet;
608  };
609 
610 } // namespace Model
611 } // namespace WAF
612 } // namespace Aws
const FieldToMatch & GetFieldToMatch() const
ByteMatchTuple & WithTextTransformation(TextTransformation &&value)
ByteMatchTuple & WithTargetString(Aws::Utils::ByteBuffer &&value)
void SetTextTransformation(TextTransformation &&value)
const TextTransformation & GetTextTransformation() const
void SetFieldToMatch(const FieldToMatch &value)
ByteMatchTuple & WithPositionalConstraint(PositionalConstraint &&value)
const Aws::Utils::ByteBuffer & GetTargetString() const
ByteMatchTuple & WithTextTransformation(const TextTransformation &value)
ByteMatchTuple & WithFieldToMatch(const FieldToMatch &value)
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:37
ByteMatchTuple & WithTargetString(const Aws::Utils::ByteBuffer &value)
void SetTextTransformation(const TextTransformation &value)
void SetFieldToMatch(FieldToMatch &&value)
void SetPositionalConstraint(const PositionalConstraint &value)
void SetPositionalConstraint(PositionalConstraint &&value)
void SetTargetString(const Aws::Utils::ByteBuffer &value)
void SetTargetString(Aws::Utils::ByteBuffer &&value)
const PositionalConstraint & GetPositionalConstraint() const
ByteMatchTuple & WithFieldToMatch(FieldToMatch &&value)
ByteMatchTuple & WithPositionalConstraint(const PositionalConstraint &value)
JSON (JavaScript Object Notation).