AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
SizeConstraintStatement.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/wafv2/WAFV2_EXPORTS.h>
9#include <aws/wafv2/model/ComparisonOperator.h>
10#include <aws/wafv2/model/FieldToMatch.h>
11#include <aws/wafv2/model/PreParseTextTransformation.h>
12#include <aws/wafv2/model/TextTransformation.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WAFV2 {
24namespace Model {
25
45 public:
46 AWS_WAFV2_API SizeConstraintStatement() = default;
49 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
50
52
55 inline const FieldToMatch& GetFieldToMatch() const { return m_fieldToMatch; }
56 inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
57 template <typename FieldToMatchT = FieldToMatch>
58 void SetFieldToMatch(FieldToMatchT&& value) {
59 m_fieldToMatchHasBeenSet = true;
60 m_fieldToMatch = std::forward<FieldToMatchT>(value);
61 }
62 template <typename FieldToMatchT = FieldToMatch>
63 SizeConstraintStatement& WithFieldToMatch(FieldToMatchT&& value) {
64 SetFieldToMatch(std::forward<FieldToMatchT>(value));
65 return *this;
66 }
68
70
73 inline ComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
74 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
76 m_comparisonOperatorHasBeenSet = true;
77 m_comparisonOperator = value;
78 }
84
86
90 inline long long GetSize() const { return m_size; }
91 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
92 inline void SetSize(long long value) {
93 m_sizeHasBeenSet = true;
94 m_size = value;
95 }
96 inline SizeConstraintStatement& WithSize(long long value) {
97 SetSize(value);
98 return *this;
99 }
101
103
113 inline const Aws::Vector<TextTransformation>& GetTextTransformations() const { return m_textTransformations; }
114 inline bool TextTransformationsHasBeenSet() const { return m_textTransformationsHasBeenSet; }
115 template <typename TextTransformationsT = Aws::Vector<TextTransformation>>
116 void SetTextTransformations(TextTransformationsT&& value) {
117 m_textTransformationsHasBeenSet = true;
118 m_textTransformations = std::forward<TextTransformationsT>(value);
119 }
120 template <typename TextTransformationsT = Aws::Vector<TextTransformation>>
121 SizeConstraintStatement& WithTextTransformations(TextTransformationsT&& value) {
122 SetTextTransformations(std::forward<TextTransformationsT>(value));
123 return *this;
124 }
125 template <typename TextTransformationsT = TextTransformation>
126 SizeConstraintStatement& AddTextTransformations(TextTransformationsT&& value) {
127 m_textTransformationsHasBeenSet = true;
128 m_textTransformations.emplace_back(std::forward<TextTransformationsT>(value));
129 return *this;
130 }
132
134
142 inline const Aws::Vector<PreParseTextTransformation>& GetPreParseTextTransformations() const { return m_preParseTextTransformations; }
143 inline bool PreParseTextTransformationsHasBeenSet() const { return m_preParseTextTransformationsHasBeenSet; }
144 template <typename PreParseTextTransformationsT = Aws::Vector<PreParseTextTransformation>>
145 void SetPreParseTextTransformations(PreParseTextTransformationsT&& value) {
146 m_preParseTextTransformationsHasBeenSet = true;
147 m_preParseTextTransformations = std::forward<PreParseTextTransformationsT>(value);
148 }
149 template <typename PreParseTextTransformationsT = Aws::Vector<PreParseTextTransformation>>
150 SizeConstraintStatement& WithPreParseTextTransformations(PreParseTextTransformationsT&& value) {
151 SetPreParseTextTransformations(std::forward<PreParseTextTransformationsT>(value));
152 return *this;
153 }
154 template <typename PreParseTextTransformationsT = PreParseTextTransformation>
155 SizeConstraintStatement& AddPreParseTextTransformations(PreParseTextTransformationsT&& value) {
156 m_preParseTextTransformationsHasBeenSet = true;
157 m_preParseTextTransformations.emplace_back(std::forward<PreParseTextTransformationsT>(value));
158 return *this;
159 }
161 private:
162 FieldToMatch m_fieldToMatch;
163
165
166 long long m_size{0};
167
168 Aws::Vector<TextTransformation> m_textTransformations;
169
170 Aws::Vector<PreParseTextTransformation> m_preParseTextTransformations;
171 bool m_fieldToMatchHasBeenSet = false;
172 bool m_comparisonOperatorHasBeenSet = false;
173 bool m_sizeHasBeenSet = false;
174 bool m_textTransformationsHasBeenSet = false;
175 bool m_preParseTextTransformationsHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace WAFV2
180} // namespace Aws
AWS_WAFV2_API SizeConstraintStatement()=default
SizeConstraintStatement & WithPreParseTextTransformations(PreParseTextTransformationsT &&value)
SizeConstraintStatement & WithComparisonOperator(ComparisonOperator value)
SizeConstraintStatement & AddTextTransformations(TextTransformationsT &&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
SizeConstraintStatement & AddPreParseTextTransformations(PreParseTextTransformationsT &&value)
SizeConstraintStatement & WithTextTransformations(TextTransformationsT &&value)
void SetTextTransformations(TextTransformationsT &&value)
void SetComparisonOperator(ComparisonOperator value)
const Aws::Vector< PreParseTextTransformation > & GetPreParseTextTransformations() const
void SetPreParseTextTransformations(PreParseTextTransformationsT &&value)
SizeConstraintStatement & WithSize(long long value)
SizeConstraintStatement & WithFieldToMatch(FieldToMatchT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue