AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SizeConstraintStatement.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/FieldToMatch.h>
9#include <aws/wafv2/model/ComparisonOperator.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/wafv2/model/TextTransformation.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace WAFV2
25{
26namespace Model
27{
28
48 {
49 public:
50 AWS_WAFV2_API SizeConstraintStatement() = default;
53 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
54
55
57
60 inline const FieldToMatch& GetFieldToMatch() const { return m_fieldToMatch; }
61 inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
62 template<typename FieldToMatchT = FieldToMatch>
63 void SetFieldToMatch(FieldToMatchT&& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = std::forward<FieldToMatchT>(value); }
64 template<typename FieldToMatchT = FieldToMatch>
65 SizeConstraintStatement& WithFieldToMatch(FieldToMatchT&& value) { SetFieldToMatch(std::forward<FieldToMatchT>(value)); return *this;}
67
69
72 inline ComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
73 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
74 inline void SetComparisonOperator(ComparisonOperator value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
77
79
83 inline long long GetSize() const { return m_size; }
84 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
85 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
86 inline SizeConstraintStatement& WithSize(long long value) { SetSize(value); return *this;}
88
90
100 inline const Aws::Vector<TextTransformation>& GetTextTransformations() const { return m_textTransformations; }
101 inline bool TextTransformationsHasBeenSet() const { return m_textTransformationsHasBeenSet; }
102 template<typename TextTransformationsT = Aws::Vector<TextTransformation>>
103 void SetTextTransformations(TextTransformationsT&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = std::forward<TextTransformationsT>(value); }
104 template<typename TextTransformationsT = Aws::Vector<TextTransformation>>
105 SizeConstraintStatement& WithTextTransformations(TextTransformationsT&& value) { SetTextTransformations(std::forward<TextTransformationsT>(value)); return *this;}
106 template<typename TextTransformationsT = TextTransformation>
107 SizeConstraintStatement& AddTextTransformations(TextTransformationsT&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.emplace_back(std::forward<TextTransformationsT>(value)); return *this; }
109 private:
110
111 FieldToMatch m_fieldToMatch;
112 bool m_fieldToMatchHasBeenSet = false;
113
115 bool m_comparisonOperatorHasBeenSet = false;
116
117 long long m_size{0};
118 bool m_sizeHasBeenSet = false;
119
120 Aws::Vector<TextTransformation> m_textTransformations;
121 bool m_textTransformationsHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace WAFV2
126} // namespace Aws
AWS_WAFV2_API SizeConstraintStatement()=default
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 & WithTextTransformations(TextTransformationsT &&value)
void SetTextTransformations(TextTransformationsT &&value)
void SetComparisonOperator(ComparisonOperator value)
SizeConstraintStatement & WithSize(long long value)
SizeConstraintStatement & WithFieldToMatch(FieldToMatchT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue