AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRegexString(const Aws::String& value) { m_regexStringHasBeenSet = true; m_regexString = value; }
51 inline void SetRegexString(Aws::String&& value) { m_regexStringHasBeenSet = true; m_regexString = std::move(value); }
52 inline void SetRegexString(const char* value) { m_regexStringHasBeenSet = true; m_regexString.assign(value); }
53 inline RegexMatchStatement& WithRegexString(const Aws::String& value) { SetRegexString(value); return *this;}
54 inline RegexMatchStatement& WithRegexString(Aws::String&& value) { SetRegexString(std::move(value)); return *this;}
55 inline RegexMatchStatement& WithRegexString(const char* value) { SetRegexString(value); return *this;}
57
59
62 inline const FieldToMatch& GetFieldToMatch() const{ return m_fieldToMatch; }
63 inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
64 inline void SetFieldToMatch(const FieldToMatch& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = value; }
65 inline void SetFieldToMatch(FieldToMatch&& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = std::move(value); }
66 inline RegexMatchStatement& WithFieldToMatch(const FieldToMatch& value) { SetFieldToMatch(value); return *this;}
67 inline RegexMatchStatement& WithFieldToMatch(FieldToMatch&& value) { SetFieldToMatch(std::move(value)); return *this;}
69
71
81 inline const Aws::Vector<TextTransformation>& GetTextTransformations() const{ return m_textTransformations; }
82 inline bool TextTransformationsHasBeenSet() const { return m_textTransformationsHasBeenSet; }
83 inline void SetTextTransformations(const Aws::Vector<TextTransformation>& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = value; }
84 inline void SetTextTransformations(Aws::Vector<TextTransformation>&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = std::move(value); }
87 inline RegexMatchStatement& AddTextTransformations(const TextTransformation& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.push_back(value); return *this; }
88 inline RegexMatchStatement& AddTextTransformations(TextTransformation&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.push_back(std::move(value)); return *this; }
90 private:
91
92 Aws::String m_regexString;
93 bool m_regexStringHasBeenSet = false;
94
95 FieldToMatch m_fieldToMatch;
96 bool m_fieldToMatchHasBeenSet = false;
97
98 Aws::Vector<TextTransformation> m_textTransformations;
99 bool m_textTransformationsHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace WAFV2
104} // namespace Aws
const Aws::String & GetRegexString() const
void SetTextTransformations(const Aws::Vector< TextTransformation > &value)
RegexMatchStatement & WithTextTransformations(const Aws::Vector< TextTransformation > &value)
const FieldToMatch & GetFieldToMatch() const
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFieldToMatch(const FieldToMatch &value)
RegexMatchStatement & WithRegexString(Aws::String &&value)
RegexMatchStatement & WithTextTransformations(Aws::Vector< TextTransformation > &&value)
RegexMatchStatement & AddTextTransformations(const TextTransformation &value)
RegexMatchStatement & WithFieldToMatch(FieldToMatch &&value)
RegexMatchStatement & AddTextTransformations(TextTransformation &&value)
RegexMatchStatement & WithRegexString(const Aws::String &value)
void SetFieldToMatch(FieldToMatch &&value)
AWS_WAFV2_API RegexMatchStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRegexString(const Aws::String &value)
RegexMatchStatement & WithFieldToMatch(const FieldToMatch &value)
const Aws::Vector< TextTransformation > & GetTextTransformations() const
AWS_WAFV2_API RegexMatchStatement(Aws::Utils::Json::JsonView jsonValue)
RegexMatchStatement & WithRegexString(const char *value)
void SetTextTransformations(Aws::Vector< TextTransformation > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue