AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RegexPatternSetReferenceStatement.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
44 {
45 public:
46 AWS_WAFV2_API RegexPatternSetReferenceStatement() = default;
49 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
57 inline const Aws::String& GetARN() const { return m_aRN; }
58 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
59 template<typename ARNT = Aws::String>
60 void SetARN(ARNT&& value) { m_aRNHasBeenSet = true; m_aRN = std::forward<ARNT>(value); }
61 template<typename ARNT = Aws::String>
62 RegexPatternSetReferenceStatement& WithARN(ARNT&& value) { SetARN(std::forward<ARNT>(value)); return *this;}
64
66
69 inline const FieldToMatch& GetFieldToMatch() const { return m_fieldToMatch; }
70 inline bool FieldToMatchHasBeenSet() const { return m_fieldToMatchHasBeenSet; }
71 template<typename FieldToMatchT = FieldToMatch>
72 void SetFieldToMatch(FieldToMatchT&& value) { m_fieldToMatchHasBeenSet = true; m_fieldToMatch = std::forward<FieldToMatchT>(value); }
73 template<typename FieldToMatchT = FieldToMatch>
74 RegexPatternSetReferenceStatement& WithFieldToMatch(FieldToMatchT&& value) { SetFieldToMatch(std::forward<FieldToMatchT>(value)); return *this;}
76
78
88 inline const Aws::Vector<TextTransformation>& GetTextTransformations() const { return m_textTransformations; }
89 inline bool TextTransformationsHasBeenSet() const { return m_textTransformationsHasBeenSet; }
90 template<typename TextTransformationsT = Aws::Vector<TextTransformation>>
91 void SetTextTransformations(TextTransformationsT&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations = std::forward<TextTransformationsT>(value); }
92 template<typename TextTransformationsT = Aws::Vector<TextTransformation>>
93 RegexPatternSetReferenceStatement& WithTextTransformations(TextTransformationsT&& value) { SetTextTransformations(std::forward<TextTransformationsT>(value)); return *this;}
94 template<typename TextTransformationsT = TextTransformation>
95 RegexPatternSetReferenceStatement& AddTextTransformations(TextTransformationsT&& value) { m_textTransformationsHasBeenSet = true; m_textTransformations.emplace_back(std::forward<TextTransformationsT>(value)); return *this; }
97 private:
98
99 Aws::String m_aRN;
100 bool m_aRNHasBeenSet = false;
101
102 FieldToMatch m_fieldToMatch;
103 bool m_fieldToMatchHasBeenSet = false;
104
105 Aws::Vector<TextTransformation> m_textTransformations;
106 bool m_textTransformationsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace WAFV2
111} // namespace Aws
AWS_WAFV2_API RegexPatternSetReferenceStatement(Aws::Utils::Json::JsonView jsonValue)
RegexPatternSetReferenceStatement & WithARN(ARNT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
RegexPatternSetReferenceStatement & WithFieldToMatch(FieldToMatchT &&value)
AWS_WAFV2_API RegexPatternSetReferenceStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
RegexPatternSetReferenceStatement & WithTextTransformations(TextTransformationsT &&value)
const Aws::Vector< TextTransformation > & GetTextTransformations() const
RegexPatternSetReferenceStatement & AddTextTransformations(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