AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SizeConstraintStatement.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/FieldToMatch.h>
9#include <aws/wafv2/model/ComparisonOperator.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/wafv2/model/TextTransformation.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 WAFV2
25{
26namespace Model
27{
28
48 {
49 public:
50 AWS_WAFV2_API SizeConstraintStatement();
53 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
54
55
57
60 inline const FieldToMatch& GetFieldToMatch() const{ return m_fieldToMatch; }
61 inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
62 inline void SetFieldToMatch(const FieldToMatch& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = value; }
63 inline void SetFieldToMatch(FieldToMatch&& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = std::move(value); }
64 inline SizeConstraintStatement& WithFieldToMatch(const FieldToMatch& value) { SetFieldToMatch(value); return *this;}
65 inline SizeConstraintStatement& WithFieldToMatch(FieldToMatch&& value) { SetFieldToMatch(std::move(value)); return *this;}
67
69
72 inline const ComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
73 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
74 inline void SetComparisonOperator(const ComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
75 inline void SetComparisonOperator(ComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
79
81
85 inline long long GetSize() const{ return m_size; }
86 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
87 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
88 inline SizeConstraintStatement& WithSize(long long value) { SetSize(value); return *this;}
90
92
102 inline const Aws::Vector<TextTransformation>& GetTextTransformations() const{ return m_textTransformations; }
103 inline bool TextTransformationsHasBeenSet() const { return m_textTransformationsHasBeenSet; }
104 inline void SetTextTransformations(const Aws::Vector<TextTransformation>& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = value; }
105 inline void SetTextTransformations(Aws::Vector<TextTransformation>&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = std::move(value); }
108 inline SizeConstraintStatement& AddTextTransformations(const TextTransformation& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.push_back(value); return *this; }
109 inline SizeConstraintStatement& AddTextTransformations(TextTransformation&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.push_back(std::move(value)); return *this; }
111 private:
112
113 FieldToMatch m_fieldToMatch;
114 bool m_fieldToMatchHasBeenSet = false;
115
116 ComparisonOperator m_comparisonOperator;
117 bool m_comparisonOperatorHasBeenSet = false;
118
119 long long m_size;
120 bool m_sizeHasBeenSet = false;
121
122 Aws::Vector<TextTransformation> m_textTransformations;
123 bool m_textTransformationsHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace WAFV2
128} // namespace Aws
const ComparisonOperator & GetComparisonOperator() const
SizeConstraintStatement & WithFieldToMatch(FieldToMatch &&value)
SizeConstraintStatement & WithComparisonOperator(const ComparisonOperator &value)
SizeConstraintStatement & WithFieldToMatch(const FieldToMatch &value)
void SetTextTransformations(Aws::Vector< TextTransformation > &&value)
SizeConstraintStatement & WithComparisonOperator(ComparisonOperator &&value)
SizeConstraintStatement & AddTextTransformations(const TextTransformation &value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFV2_API SizeConstraintStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API SizeConstraintStatement(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< TextTransformation > & GetTextTransformations() const
void SetComparisonOperator(ComparisonOperator &&value)
SizeConstraintStatement & WithTextTransformations(const Aws::Vector< TextTransformation > &value)
void SetComparisonOperator(const ComparisonOperator &value)
void SetTextTransformations(const Aws::Vector< TextTransformation > &value)
SizeConstraintStatement & AddTextTransformations(TextTransformation &&value)
void SetFieldToMatch(const FieldToMatch &value)
SizeConstraintStatement & WithSize(long long value)
SizeConstraintStatement & WithTextTransformations(Aws::Vector< TextTransformation > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue