AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RegexMatchStatement.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wafv2/model/FieldToMatch.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
36 {
37 public:
38 AWS_WAFV2_API RegexMatchStatement() = default;
41 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetRegexString() const { return m_regexString; }
49 inline bool RegexStringHasBeenSet() const { return m_regexStringHasBeenSet; }
50 template<typename RegexStringT = Aws::String>
51 void SetRegexString(RegexStringT&& value) { m_regexStringHasBeenSet = true; m_regexString = std::forward<RegexStringT>(value); }
52 template<typename RegexStringT = Aws::String>
53 RegexMatchStatement& WithRegexString(RegexStringT&& value) { SetRegexString(std::forward<RegexStringT>(value)); return *this;}
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 RegexMatchStatement& WithFieldToMatch(FieldToMatchT&& value) { SetFieldToMatch(std::forward<FieldToMatchT>(value)); return *this;}
67
69
79 inline const Aws::Vector<TextTransformation>& GetTextTransformations() const { return m_textTransformations; }
80 inline bool TextTransformationsHasBeenSet() const { return m_textTransformationsHasBeenSet; }
81 template<typename TextTransformationsT = Aws::Vector<TextTransformation>>
82 void SetTextTransformations(TextTransformationsT&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = std::forward<TextTransformationsT>(value); }
83 template<typename TextTransformationsT = Aws::Vector<TextTransformation>>
84 RegexMatchStatement& WithTextTransformations(TextTransformationsT&& value) { SetTextTransformations(std::forward<TextTransformationsT>(value)); return *this;}
85 template<typename TextTransformationsT = TextTransformation>
86 RegexMatchStatement& AddTextTransformations(TextTransformationsT&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.emplace_back(std::forward<TextTransformationsT>(value)); return *this; }
88 private:
89
90 Aws::String m_regexString;
91 bool m_regexStringHasBeenSet = false;
92
93 FieldToMatch m_fieldToMatch;
94 bool m_fieldToMatchHasBeenSet = false;
95
96 Aws::Vector<TextTransformation> m_textTransformations;
97 bool m_textTransformationsHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace WAFV2
102} // namespace Aws
const Aws::String & GetRegexString() const
AWS_WAFV2_API RegexMatchStatement()=default
const FieldToMatch & GetFieldToMatch() const
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTextTransformations(TextTransformationsT &&value)
RegexMatchStatement & WithFieldToMatch(FieldToMatchT &&value)
void SetFieldToMatch(FieldToMatchT &&value)
void SetRegexString(RegexStringT &&value)
RegexMatchStatement & WithRegexString(RegexStringT &&value)
AWS_WAFV2_API RegexMatchStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
RegexMatchStatement & AddTextTransformations(TextTransformationsT &&value)
const Aws::Vector< TextTransformation > & GetTextTransformations() const
AWS_WAFV2_API RegexMatchStatement(Aws::Utils::Json::JsonView jsonValue)
RegexMatchStatement & WithTextTransformations(TextTransformationsT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue