AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
SizeConstraint.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/waf/model/ComparisonOperator.h>
9#include <aws/waf/model/FieldToMatch.h>
10#include <aws/waf/model/TextTransformation.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WAF {
22namespace Model {
23
43 public:
44 AWS_WAF_API SizeConstraint() = default;
48
50
53 inline const FieldToMatch& GetFieldToMatch() const { return m_fieldToMatch; }
54 inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
55 template <typename FieldToMatchT = FieldToMatch>
56 void SetFieldToMatch(FieldToMatchT&& value) {
57 m_fieldToMatchHasBeenSet = true;
58 m_fieldToMatch = std::forward<FieldToMatchT>(value);
59 }
60 template <typename FieldToMatchT = FieldToMatch>
61 SizeConstraint& WithFieldToMatch(FieldToMatchT&& value) {
62 SetFieldToMatch(std::forward<FieldToMatchT>(value));
63 return *this;
64 }
66
68
106 inline TextTransformation GetTextTransformation() const { return m_textTransformation; }
107 inline bool TextTransformationHasBeenSet() const { return m_textTransformationHasBeenSet; }
109 m_textTransformationHasBeenSet = true;
110 m_textTransformation = value;
111 }
114 return *this;
115 }
117
119
137 inline ComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
138 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
140 m_comparisonOperatorHasBeenSet = true;
141 m_comparisonOperator = value;
142 }
145 return *this;
146 }
148
150
161 inline long long GetSize() const { return m_size; }
162 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
163 inline void SetSize(long long value) {
164 m_sizeHasBeenSet = true;
165 m_size = value;
166 }
167 inline SizeConstraint& WithSize(long long value) {
168 SetSize(value);
169 return *this;
170 }
172 private:
173 FieldToMatch m_fieldToMatch;
174
176
178
179 long long m_size{0};
180 bool m_fieldToMatchHasBeenSet = false;
181 bool m_textTransformationHasBeenSet = false;
182 bool m_comparisonOperatorHasBeenSet = false;
183 bool m_sizeHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace WAF
188} // namespace Aws
TextTransformation GetTextTransformation() const
void SetSize(long long value)
void SetComparisonOperator(ComparisonOperator value)
AWS_WAF_API SizeConstraint(Aws::Utils::Json::JsonView jsonValue)
SizeConstraint & WithComparisonOperator(ComparisonOperator value)
void SetTextTransformation(TextTransformation value)
AWS_WAF_API SizeConstraint & operator=(Aws::Utils::Json::JsonView jsonValue)
ComparisonOperator GetComparisonOperator() const
SizeConstraint & WithTextTransformation(TextTransformation value)
void SetFieldToMatch(FieldToMatchT &&value)
AWS_WAF_API SizeConstraint()=default
const FieldToMatch & GetFieldToMatch() const
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
SizeConstraint & WithFieldToMatch(FieldToMatchT &&value)
SizeConstraint & WithSize(long long value)
Aws::Utils::Json::JsonValue JsonValue