AWS SDK for C++  1.9.104
AWS SDK for C++
SizeConstraintStatement.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace WAFV2
25 {
26 namespace Model
27 {
28 
45  {
46  public:
51 
52 
57  inline const FieldToMatch& GetFieldToMatch() const{ return m_fieldToMatch; }
58 
63  inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
64 
69  inline void SetFieldToMatch(const FieldToMatch& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = value; }
70 
75  inline void SetFieldToMatch(FieldToMatch&& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = std::move(value); }
76 
81  inline SizeConstraintStatement& WithFieldToMatch(const FieldToMatch& value) { SetFieldToMatch(value); return *this;}
82 
87  inline SizeConstraintStatement& WithFieldToMatch(FieldToMatch&& value) { SetFieldToMatch(std::move(value)); return *this;}
88 
89 
93  inline const ComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
94 
98  inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
99 
103  inline void SetComparisonOperator(const ComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
104 
108  inline void SetComparisonOperator(ComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
109 
113  inline SizeConstraintStatement& WithComparisonOperator(const ComparisonOperator& value) { SetComparisonOperator(value); return *this;}
114 
118  inline SizeConstraintStatement& WithComparisonOperator(ComparisonOperator&& value) { SetComparisonOperator(std::move(value)); return *this;}
119 
120 
125  inline long long GetSize() const{ return m_size; }
126 
131  inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
132 
137  inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
138 
143  inline SizeConstraintStatement& WithSize(long long value) { SetSize(value); return *this;}
144 
145 
154  inline const Aws::Vector<TextTransformation>& GetTextTransformations() const{ return m_textTransformations; }
155 
164  inline bool TextTransformationsHasBeenSet() const { return m_textTransformationsHasBeenSet; }
165 
174  inline void SetTextTransformations(const Aws::Vector<TextTransformation>& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = value; }
175 
184  inline void SetTextTransformations(Aws::Vector<TextTransformation>&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = std::move(value); }
185 
194  inline SizeConstraintStatement& WithTextTransformations(const Aws::Vector<TextTransformation>& value) { SetTextTransformations(value); return *this;}
195 
204  inline SizeConstraintStatement& WithTextTransformations(Aws::Vector<TextTransformation>&& value) { SetTextTransformations(std::move(value)); return *this;}
205 
214  inline SizeConstraintStatement& AddTextTransformations(const TextTransformation& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.push_back(value); return *this; }
215 
224  inline SizeConstraintStatement& AddTextTransformations(TextTransformation&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.push_back(std::move(value)); return *this; }
225 
226  private:
227 
228  FieldToMatch m_fieldToMatch;
229  bool m_fieldToMatchHasBeenSet;
230 
231  ComparisonOperator m_comparisonOperator;
232  bool m_comparisonOperatorHasBeenSet;
233 
234  long long m_size;
235  bool m_sizeHasBeenSet;
236 
237  Aws::Vector<TextTransformation> m_textTransformations;
238  bool m_textTransformationsHasBeenSet;
239  };
240 
241 } // namespace Model
242 } // namespace WAFV2
243 } // namespace Aws
Aws::WAFV2::Model::SizeConstraintStatement::WithComparisonOperator
SizeConstraintStatement & WithComparisonOperator(const ComparisonOperator &value)
Definition: SizeConstraintStatement.h:113
Aws::WAFV2::Model::SizeConstraintStatement::AddTextTransformations
SizeConstraintStatement & AddTextTransformations(const TextTransformation &value)
Definition: SizeConstraintStatement.h:214
ComparisonOperator.h
Aws::WAFV2::Model::SizeConstraintStatement::SetFieldToMatch
void SetFieldToMatch(FieldToMatch &&value)
Definition: SizeConstraintStatement.h:75
Aws::WAFV2::Model::SizeConstraintStatement::SetSize
void SetSize(long long value)
Definition: SizeConstraintStatement.h:137
Aws::WAFV2::Model::SizeConstraintStatement
Definition: SizeConstraintStatement.h:45
Aws::WAFV2::Model::SizeConstraintStatement::AddTextTransformations
SizeConstraintStatement & AddTextTransformations(TextTransformation &&value)
Definition: SizeConstraintStatement.h:224
Aws::WAFV2::Model::SizeConstraintStatement::SetTextTransformations
void SetTextTransformations(const Aws::Vector< TextTransformation > &value)
Definition: SizeConstraintStatement.h:174
Aws::WAFV2::Model::SizeConstraintStatement::SetFieldToMatch
void SetFieldToMatch(const FieldToMatch &value)
Definition: SizeConstraintStatement.h:69
Aws::WAFV2::Model::SizeConstraintStatement::WithFieldToMatch
SizeConstraintStatement & WithFieldToMatch(FieldToMatch &&value)
Definition: SizeConstraintStatement.h:87
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::TextTransformation
Definition: TextTransformation.h:34
Aws::WAFV2::Model::SizeConstraintStatement::WithSize
SizeConstraintStatement & WithSize(long long value)
Definition: SizeConstraintStatement.h:143
AWSVector.h
Aws::WAFV2::Model::SizeConstraintStatement::WithComparisonOperator
SizeConstraintStatement & WithComparisonOperator(ComparisonOperator &&value)
Definition: SizeConstraintStatement.h:118
WAFV2_EXPORTS.h
Aws::WAFV2::Model::SizeConstraintStatement::TextTransformationsHasBeenSet
bool TextTransformationsHasBeenSet() const
Definition: SizeConstraintStatement.h:164
Aws::WAFV2::Model::SizeConstraintStatement::SizeConstraintStatement
SizeConstraintStatement()
Aws::WAFV2::Model::SizeConstraintStatement::SizeConstraintStatement
SizeConstraintStatement(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::SizeConstraintStatement::GetSize
long long GetSize() const
Definition: SizeConstraintStatement.h:125
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::SizeConstraintStatement::SizeHasBeenSet
bool SizeHasBeenSet() const
Definition: SizeConstraintStatement.h:131
Aws::WAFV2::Model::SizeConstraintStatement::FieldToMatchHasBeenSet
bool FieldToMatchHasBeenSet() const
Definition: SizeConstraintStatement.h:63
Aws::WAFV2::Model::SizeConstraintStatement::GetTextTransformations
const Aws::Vector< TextTransformation > & GetTextTransformations() const
Definition: SizeConstraintStatement.h:154
Aws::WAFV2::Model::SizeConstraintStatement::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::SizeConstraintStatement::GetFieldToMatch
const FieldToMatch & GetFieldToMatch() const
Definition: SizeConstraintStatement.h:57
Aws::WAFV2::Model::SizeConstraintStatement::SetComparisonOperator
void SetComparisonOperator(ComparisonOperator &&value)
Definition: SizeConstraintStatement.h:108
Aws::WAFV2::Model::SizeConstraintStatement::SetComparisonOperator
void SetComparisonOperator(const ComparisonOperator &value)
Definition: SizeConstraintStatement.h:103
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::SizeConstraintStatement::SetTextTransformations
void SetTextTransformations(Aws::Vector< TextTransformation > &&value)
Definition: SizeConstraintStatement.h:184
FieldToMatch.h
Aws::WAFV2::Model::SizeConstraintStatement::WithTextTransformations
SizeConstraintStatement & WithTextTransformations(const Aws::Vector< TextTransformation > &value)
Definition: SizeConstraintStatement.h:194
Aws::WAFV2::Model::SizeConstraintStatement::WithTextTransformations
SizeConstraintStatement & WithTextTransformations(Aws::Vector< TextTransformation > &&value)
Definition: SizeConstraintStatement.h:204
Aws::WAFV2::Model::SizeConstraintStatement::ComparisonOperatorHasBeenSet
bool ComparisonOperatorHasBeenSet() const
Definition: SizeConstraintStatement.h:98
Aws::WAFV2::Model::SizeConstraintStatement::operator=
SizeConstraintStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::SizeConstraintStatement::GetComparisonOperator
const ComparisonOperator & GetComparisonOperator() const
Definition: SizeConstraintStatement.h:93
Aws::WAFV2::Model::FieldToMatch
Definition: FieldToMatch.h:48
Aws::WAFV2::Model::ComparisonOperator
ComparisonOperator
Definition: ComparisonOperator.h:17
Aws::WAFV2::Model::SizeConstraintStatement::WithFieldToMatch
SizeConstraintStatement & WithFieldToMatch(const FieldToMatch &value)
Definition: SizeConstraintStatement.h:81
TextTransformation.h