AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
RegexPatternSet.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wafv2/WAFV2_EXPORTS.h>
10#include <aws/wafv2/model/Regex.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WAFV2 {
22namespace Model {
23
33 public:
34 AWS_WAFV2_API RegexPatternSet() = default;
37 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 RegexPatternSet& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetId() const { return m_id; }
64 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
65 template <typename IdT = Aws::String>
66 void SetId(IdT&& value) {
67 m_idHasBeenSet = true;
68 m_id = std::forward<IdT>(value);
69 }
70 template <typename IdT = Aws::String>
71 RegexPatternSet& WithId(IdT&& value) {
72 SetId(std::forward<IdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetARN() const { return m_aRN; }
82 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
83 template <typename ARNT = Aws::String>
84 void SetARN(ARNT&& value) {
85 m_aRNHasBeenSet = true;
86 m_aRN = std::forward<ARNT>(value);
87 }
88 template <typename ARNT = Aws::String>
89 RegexPatternSet& WithARN(ARNT&& value) {
90 SetARN(std::forward<ARNT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetDescription() const { return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 template <typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) {
103 m_descriptionHasBeenSet = true;
104 m_description = std::forward<DescriptionT>(value);
105 }
106 template <typename DescriptionT = Aws::String>
107 RegexPatternSet& WithDescription(DescriptionT&& value) {
108 SetDescription(std::forward<DescriptionT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::Vector<Regex>& GetRegularExpressionList() const { return m_regularExpressionList; }
118 inline bool RegularExpressionListHasBeenSet() const { return m_regularExpressionListHasBeenSet; }
119 template <typename RegularExpressionListT = Aws::Vector<Regex>>
120 void SetRegularExpressionList(RegularExpressionListT&& value) {
121 m_regularExpressionListHasBeenSet = true;
122 m_regularExpressionList = std::forward<RegularExpressionListT>(value);
123 }
124 template <typename RegularExpressionListT = Aws::Vector<Regex>>
125 RegexPatternSet& WithRegularExpressionList(RegularExpressionListT&& value) {
126 SetRegularExpressionList(std::forward<RegularExpressionListT>(value));
127 return *this;
128 }
129 template <typename RegularExpressionListT = Regex>
130 RegexPatternSet& AddRegularExpressionList(RegularExpressionListT&& value) {
131 m_regularExpressionListHasBeenSet = true;
132 m_regularExpressionList.emplace_back(std::forward<RegularExpressionListT>(value));
133 return *this;
134 }
136 private:
137 Aws::String m_name;
138
139 Aws::String m_id;
140
141 Aws::String m_aRN;
142
143 Aws::String m_description;
144
145 Aws::Vector<Regex> m_regularExpressionList;
146 bool m_nameHasBeenSet = false;
147 bool m_idHasBeenSet = false;
148 bool m_aRNHasBeenSet = false;
149 bool m_descriptionHasBeenSet = false;
150 bool m_regularExpressionListHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace WAFV2
155} // namespace Aws
AWS_WAFV2_API RegexPatternSet(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFV2_API RegexPatternSet()=default
AWS_WAFV2_API RegexPatternSet & operator=(Aws::Utils::Json::JsonView jsonValue)
RegexPatternSet & WithDescription(DescriptionT &&value)
RegexPatternSet & WithId(IdT &&value)
void SetRegularExpressionList(RegularExpressionListT &&value)
RegexPatternSet & AddRegularExpressionList(RegularExpressionListT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetId() const
const Aws::String & GetName() const
const Aws::Vector< Regex > & GetRegularExpressionList() const
void SetDescription(DescriptionT &&value)
RegexPatternSet & WithName(NameT &&value)
const Aws::String & GetARN() const
RegexPatternSet & WithARN(ARNT &&value)
RegexPatternSet & WithRegularExpressionList(RegularExpressionListT &&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