AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SizeConstraint.h
1
6#pragma once
7#include <aws/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/waf-regional/model/FieldToMatch.h>
9#include <aws/waf-regional/model/TextTransformation.h>
10#include <aws/waf-regional/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 WAFRegional
24{
25namespace Model
26{
27
47 {
48 public:
49 AWS_WAFREGIONAL_API SizeConstraint();
50 AWS_WAFREGIONAL_API SizeConstraint(Aws::Utils::Json::JsonView jsonValue);
51 AWS_WAFREGIONAL_API SizeConstraint& operator=(Aws::Utils::Json::JsonView jsonValue);
52 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
59 inline const FieldToMatch& GetFieldToMatch() const{ return m_fieldToMatch; }
60 inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
61 inline void SetFieldToMatch(const FieldToMatch& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = value; }
62 inline void SetFieldToMatch(FieldToMatch&& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = std::move(value); }
63 inline SizeConstraint& WithFieldToMatch(const FieldToMatch& value) { SetFieldToMatch(value); return *this;}
64 inline SizeConstraint& WithFieldToMatch(FieldToMatch&& value) { SetFieldToMatch(std::move(value)); return *this;}
66
68
106 inline const TextTransformation& GetTextTransformation() const{ return m_textTransformation; }
107 inline bool TextTransformationHasBeenSet() const { return m_textTransformationHasBeenSet; }
108 inline void SetTextTransformation(const TextTransformation& value) { m_textTransformationHasBeenSet = true; m_textTransformation = value; }
109 inline void SetTextTransformation(TextTransformation&& value) { m_textTransformationHasBeenSet = true; m_textTransformation = std::move(value); }
111 inline SizeConstraint& WithTextTransformation(TextTransformation&& value) { SetTextTransformation(std::move(value)); return *this;}
113
115
133 inline const ComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
134 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
135 inline void SetComparisonOperator(const ComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
136 inline void SetComparisonOperator(ComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
138 inline SizeConstraint& WithComparisonOperator(ComparisonOperator&& value) { SetComparisonOperator(std::move(value)); return *this;}
140
142
153 inline long long GetSize() const{ return m_size; }
154 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
155 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
156 inline SizeConstraint& WithSize(long long value) { SetSize(value); return *this;}
158 private:
159
160 FieldToMatch m_fieldToMatch;
161 bool m_fieldToMatchHasBeenSet = false;
162
163 TextTransformation m_textTransformation;
164 bool m_textTransformationHasBeenSet = false;
165
166 ComparisonOperator m_comparisonOperator;
167 bool m_comparisonOperatorHasBeenSet = false;
168
169 long long m_size;
170 bool m_sizeHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace WAFRegional
175} // namespace Aws
void SetComparisonOperator(const ComparisonOperator &value)
void SetFieldToMatch(const FieldToMatch &value)
void SetTextTransformation(TextTransformation &&value)
SizeConstraint & WithFieldToMatch(const FieldToMatch &value)
AWS_WAFREGIONAL_API SizeConstraint(Aws::Utils::Json::JsonView jsonValue)
SizeConstraint & WithFieldToMatch(FieldToMatch &&value)
SizeConstraint & WithComparisonOperator(const ComparisonOperator &value)
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTextTransformation(const TextTransformation &value)
SizeConstraint & WithTextTransformation(const TextTransformation &value)
AWS_WAFREGIONAL_API SizeConstraint & operator=(Aws::Utils::Json::JsonView jsonValue)
SizeConstraint & WithTextTransformation(TextTransformation &&value)
SizeConstraint & WithSize(long long value)
const ComparisonOperator & GetComparisonOperator() const
void SetFieldToMatch(FieldToMatch &&value)
SizeConstraint & WithComparisonOperator(ComparisonOperator &&value)
const FieldToMatch & GetFieldToMatch() const
const TextTransformation & GetTextTransformation() const
void SetComparisonOperator(ComparisonOperator &&value)
Aws::Utils::Json::JsonValue JsonValue