AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SizeConstraint.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/waf/model/FieldToMatch.h>
9#include <aws/waf/model/TextTransformation.h>
10#include <aws/waf/model/ComparisonOperator.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WAF
24{
25namespace Model
26{
27
47 {
48 public:
49 AWS_WAF_API SizeConstraint() = default;
53
54
56
59 inline const FieldToMatch& GetFieldToMatch() const { return m_fieldToMatch; }
60 inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
61 template<typename FieldToMatchT = FieldToMatch>
62 void SetFieldToMatch(FieldToMatchT&& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = std::forward<FieldToMatchT>(value); }
63 template<typename FieldToMatchT = FieldToMatch>
64 SizeConstraint& WithFieldToMatch(FieldToMatchT&& value) { SetFieldToMatch(std::forward<FieldToMatchT>(value)); return *this;}
66
68
106 inline TextTransformation GetTextTransformation() const { return m_textTransformation; }
107 inline bool TextTransformationHasBeenSet() const { return m_textTransformationHasBeenSet; }
108 inline void SetTextTransformation(TextTransformation value) { m_textTransformationHasBeenSet = true; m_textTransformation = value; }
111
113
131 inline ComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
132 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
133 inline void SetComparisonOperator(ComparisonOperator value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
136
138
149 inline long long GetSize() const { return m_size; }
150 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
151 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
152 inline SizeConstraint& WithSize(long long value) { SetSize(value); return *this;}
154 private:
155
156 FieldToMatch m_fieldToMatch;
157 bool m_fieldToMatchHasBeenSet = false;
158
160 bool m_textTransformationHasBeenSet = false;
161
163 bool m_comparisonOperatorHasBeenSet = false;
164
165 long long m_size{0};
166 bool m_sizeHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace WAF
171} // 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