AWS SDK for C++  1.9.105
AWS SDK for C++
RegexPatternSet.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/wafv2/model/Regex.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace WAFV2
24 {
25 namespace Model
26 {
27 
37  {
38  public:
43 
44 
48  inline const Aws::String& GetName() const{ return m_name; }
49 
53  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 
58  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 
63  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 
68  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 
73  inline RegexPatternSet& WithName(const Aws::String& value) { SetName(value); return *this;}
74 
78  inline RegexPatternSet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 
83  inline RegexPatternSet& WithName(const char* value) { SetName(value); return *this;}
84 
85 
91  inline const Aws::String& GetId() const{ return m_id; }
92 
98  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
99 
105  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
106 
112  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
113 
119  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
120 
126  inline RegexPatternSet& WithId(const Aws::String& value) { SetId(value); return *this;}
127 
133  inline RegexPatternSet& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
134 
140  inline RegexPatternSet& WithId(const char* value) { SetId(value); return *this;}
141 
142 
146  inline const Aws::String& GetARN() const{ return m_aRN; }
147 
151  inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
152 
156  inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
157 
161  inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
162 
166  inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
167 
171  inline RegexPatternSet& WithARN(const Aws::String& value) { SetARN(value); return *this;}
172 
176  inline RegexPatternSet& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
177 
181  inline RegexPatternSet& WithARN(const char* value) { SetARN(value); return *this;}
182 
183 
187  inline const Aws::String& GetDescription() const{ return m_description; }
188 
192  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
193 
197  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
198 
202  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
203 
207  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
208 
212  inline RegexPatternSet& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
213 
217  inline RegexPatternSet& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
218 
222  inline RegexPatternSet& WithDescription(const char* value) { SetDescription(value); return *this;}
223 
224 
228  inline const Aws::Vector<Regex>& GetRegularExpressionList() const{ return m_regularExpressionList; }
229 
233  inline bool RegularExpressionListHasBeenSet() const { return m_regularExpressionListHasBeenSet; }
234 
238  inline void SetRegularExpressionList(const Aws::Vector<Regex>& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList = value; }
239 
243  inline void SetRegularExpressionList(Aws::Vector<Regex>&& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList = std::move(value); }
244 
248  inline RegexPatternSet& WithRegularExpressionList(const Aws::Vector<Regex>& value) { SetRegularExpressionList(value); return *this;}
249 
253  inline RegexPatternSet& WithRegularExpressionList(Aws::Vector<Regex>&& value) { SetRegularExpressionList(std::move(value)); return *this;}
254 
258  inline RegexPatternSet& AddRegularExpressionList(const Regex& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList.push_back(value); return *this; }
259 
263  inline RegexPatternSet& AddRegularExpressionList(Regex&& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList.push_back(std::move(value)); return *this; }
264 
265  private:
266 
267  Aws::String m_name;
268  bool m_nameHasBeenSet;
269 
270  Aws::String m_id;
271  bool m_idHasBeenSet;
272 
273  Aws::String m_aRN;
274  bool m_aRNHasBeenSet;
275 
276  Aws::String m_description;
277  bool m_descriptionHasBeenSet;
278 
279  Aws::Vector<Regex> m_regularExpressionList;
280  bool m_regularExpressionListHasBeenSet;
281  };
282 
283 } // namespace Model
284 } // namespace WAFV2
285 } // namespace Aws
Aws::WAFV2::Model::RegexPatternSet::SetRegularExpressionList
void SetRegularExpressionList(Aws::Vector< Regex > &&value)
Definition: RegexPatternSet.h:243
Aws::WAFV2::Model::RegexPatternSet::operator=
RegexPatternSet & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::RegexPatternSet::RegexPatternSet
RegexPatternSet(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::RegexPatternSet::SetId
void SetId(const Aws::String &value)
Definition: RegexPatternSet.h:105
Aws::WAFV2::Model::RegexPatternSet::WithName
RegexPatternSet & WithName(Aws::String &&value)
Definition: RegexPatternSet.h:78
Aws::WAFV2::Model::RegexPatternSet::SetDescription
void SetDescription(const char *value)
Definition: RegexPatternSet.h:207
Aws::WAFV2::Model::RegexPatternSet::SetARN
void SetARN(Aws::String &&value)
Definition: RegexPatternSet.h:161
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WAFV2::Model::RegexPatternSet::AddRegularExpressionList
RegexPatternSet & AddRegularExpressionList(const Regex &value)
Definition: RegexPatternSet.h:258
Regex.h
Aws::WAFV2::Model::RegexPatternSet::GetDescription
const Aws::String & GetDescription() const
Definition: RegexPatternSet.h:187
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
AWSVector.h
Aws::WAFV2::Model::RegexPatternSet::ARNHasBeenSet
bool ARNHasBeenSet() const
Definition: RegexPatternSet.h:151
Aws::WAFV2::Model::RegexPatternSet::SetARN
void SetARN(const char *value)
Definition: RegexPatternSet.h:166
Aws::WAFV2::Model::RegexPatternSet::GetRegularExpressionList
const Aws::Vector< Regex > & GetRegularExpressionList() const
Definition: RegexPatternSet.h:228
Aws::WAFV2::Model::Regex
Definition: Regex.h:33
Aws::WAFV2::Model::RegexPatternSet::SetDescription
void SetDescription(const Aws::String &value)
Definition: RegexPatternSet.h:197
Aws::WAFV2::Model::RegexPatternSet::WithRegularExpressionList
RegexPatternSet & WithRegularExpressionList(Aws::Vector< Regex > &&value)
Definition: RegexPatternSet.h:253
Aws::WAFV2::Model::RegexPatternSet::WithRegularExpressionList
RegexPatternSet & WithRegularExpressionList(const Aws::Vector< Regex > &value)
Definition: RegexPatternSet.h:248
WAFV2_EXPORTS.h
Aws::WAFV2::Model::RegexPatternSet::WithDescription
RegexPatternSet & WithDescription(const Aws::String &value)
Definition: RegexPatternSet.h:212
Aws::WAFV2::Model::RegexPatternSet::IdHasBeenSet
bool IdHasBeenSet() const
Definition: RegexPatternSet.h:98
Aws::WAFV2::Model::RegexPatternSet::RegularExpressionListHasBeenSet
bool RegularExpressionListHasBeenSet() const
Definition: RegexPatternSet.h:233
Aws::WAFV2::Model::RegexPatternSet::GetId
const Aws::String & GetId() const
Definition: RegexPatternSet.h:91
Aws::WAFV2::Model::RegexPatternSet::WithARN
RegexPatternSet & WithARN(const char *value)
Definition: RegexPatternSet.h:181
Aws::WAFV2::Model::RegexPatternSet::WithDescription
RegexPatternSet & WithDescription(Aws::String &&value)
Definition: RegexPatternSet.h:217
Aws::WAFV2::Model::RegexPatternSet::SetId
void SetId(const char *value)
Definition: RegexPatternSet.h:119
Aws::WAFV2::Model::RegexPatternSet::WithARN
RegexPatternSet & WithARN(const Aws::String &value)
Definition: RegexPatternSet.h:171
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::WAFV2::Model::RegexPatternSet::WithId
RegexPatternSet & WithId(const Aws::String &value)
Definition: RegexPatternSet.h:126
Aws::WAFV2::Model::RegexPatternSet::WithName
RegexPatternSet & WithName(const Aws::String &value)
Definition: RegexPatternSet.h:73
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::RegexPatternSet::WithName
RegexPatternSet & WithName(const char *value)
Definition: RegexPatternSet.h:83
Aws::WAFV2::Model::RegexPatternSet::GetName
const Aws::String & GetName() const
Definition: RegexPatternSet.h:48
Aws::WAFV2::Model::RegexPatternSet::SetName
void SetName(const char *value)
Definition: RegexPatternSet.h:68
Aws::WAFV2::Model::RegexPatternSet::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::RegexPatternSet
Definition: RegexPatternSet.h:37
Aws::WAFV2::Model::RegexPatternSet::WithARN
RegexPatternSet & WithARN(Aws::String &&value)
Definition: RegexPatternSet.h:176
Aws::WAFV2::Model::RegexPatternSet::AddRegularExpressionList
RegexPatternSet & AddRegularExpressionList(Regex &&value)
Definition: RegexPatternSet.h:263
Aws::WAFV2::Model::RegexPatternSet::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: RegexPatternSet.h:192
Aws::WAFV2::Model::RegexPatternSet::SetName
void SetName(Aws::String &&value)
Definition: RegexPatternSet.h:63
Aws::WAFV2::Model::RegexPatternSet::SetName
void SetName(const Aws::String &value)
Definition: RegexPatternSet.h:58
Aws::WAFV2::Model::RegexPatternSet::SetDescription
void SetDescription(Aws::String &&value)
Definition: RegexPatternSet.h:202
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::RegexPatternSet::SetRegularExpressionList
void SetRegularExpressionList(const Aws::Vector< Regex > &value)
Definition: RegexPatternSet.h:238
Aws::WAFV2::Model::RegexPatternSet::RegexPatternSet
RegexPatternSet()
Aws::WAFV2::Model::RegexPatternSet::SetARN
void SetARN(const Aws::String &value)
Definition: RegexPatternSet.h:156
Aws::WAFV2::Model::RegexPatternSet::WithId
RegexPatternSet & WithId(Aws::String &&value)
Definition: RegexPatternSet.h:133
Aws::WAFV2::Model::RegexPatternSet::SetId
void SetId(Aws::String &&value)
Definition: RegexPatternSet.h:112
Aws::WAFV2::Model::RegexPatternSet::WithId
RegexPatternSet & WithId(const char *value)
Definition: RegexPatternSet.h:140
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::RegexPatternSet::NameHasBeenSet
bool NameHasBeenSet() const
Definition: RegexPatternSet.h:53
Aws::WAFV2::Model::RegexPatternSet::GetARN
const Aws::String & GetARN() const
Definition: RegexPatternSet.h:146
Aws::WAFV2::Model::RegexPatternSet::WithDescription
RegexPatternSet & WithDescription(const char *value)
Definition: RegexPatternSet.h:222