AWS SDK for C++  0.14.3
AWS SDK for C++
SizeConstraint.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>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace WAF
31 {
32 namespace Model
33 {
34 
44  {
45  public:
48  SizeConstraint& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
49  Aws::Utils::Json::JsonValue Jsonize() const;
50 
51 
52  inline const FieldToMatch& GetFieldToMatch() const{ return m_fieldToMatch; }
53 
54 
55  inline void SetFieldToMatch(const FieldToMatch& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = value; }
56 
57 
58  inline void SetFieldToMatch(FieldToMatch&& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = value; }
59 
60 
61  inline SizeConstraint& WithFieldToMatch(const FieldToMatch& value) { SetFieldToMatch(value); return *this;}
62 
63 
64  inline SizeConstraint& WithFieldToMatch(FieldToMatch&& value) { SetFieldToMatch(value); return *this;}
65 
103  inline const TextTransformation& GetTextTransformation() const{ return m_textTransformation; }
104 
142  inline void SetTextTransformation(const TextTransformation& value) { m_textTransformationHasBeenSet = true; m_textTransformation = value; }
143 
181  inline void SetTextTransformation(TextTransformation&& value) { m_textTransformationHasBeenSet = true; m_textTransformation = value; }
182 
220  inline SizeConstraint& WithTextTransformation(const TextTransformation& value) { SetTextTransformation(value); return *this;}
221 
259  inline SizeConstraint& WithTextTransformation(TextTransformation&& value) { SetTextTransformation(value); return *this;}
260 
279  inline const ComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
280 
299  inline void SetComparisonOperator(const ComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
300 
319  inline void SetComparisonOperator(ComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
320 
339  inline SizeConstraint& WithComparisonOperator(const ComparisonOperator& value) { SetComparisonOperator(value); return *this;}
340 
359  inline SizeConstraint& WithComparisonOperator(ComparisonOperator&& value) { SetComparisonOperator(value); return *this;}
360 
372  inline long long GetSize() const{ return m_size; }
373 
385  inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
386 
398  inline SizeConstraint& WithSize(long long value) { SetSize(value); return *this;}
399 
400  private:
401  FieldToMatch m_fieldToMatch;
402  bool m_fieldToMatchHasBeenSet;
403  TextTransformation m_textTransformation;
404  bool m_textTransformationHasBeenSet;
405  ComparisonOperator m_comparisonOperator;
406  bool m_comparisonOperatorHasBeenSet;
407  long long m_size;
408  bool m_sizeHasBeenSet;
409  };
410 
411 } // namespace Model
412 } // namespace WAF
413 } // namespace Aws
void SetComparisonOperator(const ComparisonOperator &value)
const TextTransformation & GetTextTransformation() const
void SetComparisonOperator(ComparisonOperator &&value)
void SetTextTransformation(const TextTransformation &value)
SizeConstraint & WithFieldToMatch(const FieldToMatch &value)
void SetFieldToMatch(FieldToMatch &&value)
void SetTextTransformation(TextTransformation &&value)
#define AWS_WAF_API
Definition: WAF_EXPORTS.h:37
SizeConstraint & WithComparisonOperator(const ComparisonOperator &value)
const ComparisonOperator & GetComparisonOperator() const
const FieldToMatch & GetFieldToMatch() const
SizeConstraint & WithFieldToMatch(FieldToMatch &&value)
void SetFieldToMatch(const FieldToMatch &value)
void SetSize(long long value)
SizeConstraint & WithComparisonOperator(ComparisonOperator &&value)
SizeConstraint & WithTextTransformation(const TextTransformation &value)
SizeConstraint & WithTextTransformation(TextTransformation &&value)
SizeConstraint & WithSize(long long value)
JSON (JavaScript Object Notation).