AWS SDK for C++  1.8.71
AWS SDK for C++
CreateRegexPatternSetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/wafv2/model/Scope.h>
12 #include <aws/wafv2/model/Regex.h>
13 #include <aws/wafv2/model/Tag.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace WAFV2
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateRegexPatternSet"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline CreateRegexPatternSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline CreateRegexPatternSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 
79  inline CreateRegexPatternSetRequest& WithName(const char* value) { SetName(value); return *this;}
80 
81 
91  inline const Scope& GetScope() const{ return m_scope; }
92 
102  inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
103 
113  inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
114 
124  inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
125 
135  inline CreateRegexPatternSetRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
136 
146  inline CreateRegexPatternSetRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
147 
148 
153  inline const Aws::String& GetDescription() const{ return m_description; }
154 
159  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
160 
165  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
166 
171  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
172 
177  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
178 
183  inline CreateRegexPatternSetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
184 
189  inline CreateRegexPatternSetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
190 
195  inline CreateRegexPatternSetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
196 
197 
201  inline const Aws::Vector<Regex>& GetRegularExpressionList() const{ return m_regularExpressionList; }
202 
206  inline bool RegularExpressionListHasBeenSet() const { return m_regularExpressionListHasBeenSet; }
207 
211  inline void SetRegularExpressionList(const Aws::Vector<Regex>& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList = value; }
212 
216  inline void SetRegularExpressionList(Aws::Vector<Regex>&& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList = std::move(value); }
217 
221  inline CreateRegexPatternSetRequest& WithRegularExpressionList(const Aws::Vector<Regex>& value) { SetRegularExpressionList(value); return *this;}
222 
226  inline CreateRegexPatternSetRequest& WithRegularExpressionList(Aws::Vector<Regex>&& value) { SetRegularExpressionList(std::move(value)); return *this;}
227 
231  inline CreateRegexPatternSetRequest& AddRegularExpressionList(const Regex& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList.push_back(value); return *this; }
232 
236  inline CreateRegexPatternSetRequest& AddRegularExpressionList(Regex&& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList.push_back(std::move(value)); return *this; }
237 
238 
242  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
243 
247  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
248 
252  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
253 
257  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
258 
262  inline CreateRegexPatternSetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
263 
267  inline CreateRegexPatternSetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
268 
272  inline CreateRegexPatternSetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
273 
277  inline CreateRegexPatternSetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
278 
279  private:
280 
281  Aws::String m_name;
282  bool m_nameHasBeenSet;
283 
284  Scope m_scope;
285  bool m_scopeHasBeenSet;
286 
287  Aws::String m_description;
288  bool m_descriptionHasBeenSet;
289 
290  Aws::Vector<Regex> m_regularExpressionList;
291  bool m_regularExpressionListHasBeenSet;
292 
293  Aws::Vector<Tag> m_tags;
294  bool m_tagsHasBeenSet;
295  };
296 
297 } // namespace Model
298 } // namespace WAFV2
299 } // namespace Aws
CreateRegexPatternSetRequest & WithScope(Scope &&value)
CreateRegexPatternSetRequest & WithRegularExpressionList(const Aws::Vector< Regex > &value)
CreateRegexPatternSetRequest & WithName(const Aws::String &value)
CreateRegexPatternSetRequest & WithDescription(const char *value)
CreateRegexPatternSetRequest & AddTags(Tag &&value)
CreateRegexPatternSetRequest & WithDescription(const Aws::String &value)
CreateRegexPatternSetRequest & WithName(const char *value)
CreateRegexPatternSetRequest & WithName(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CreateRegexPatternSetRequest & WithScope(const Scope &value)
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
void SetRegularExpressionList(const Aws::Vector< Regex > &value)
const Aws::Vector< Regex > & GetRegularExpressionList() const
CreateRegexPatternSetRequest & AddRegularExpressionList(Regex &&value)
CreateRegexPatternSetRequest & WithTags(const Aws::Vector< Tag > &value)
CreateRegexPatternSetRequest & WithDescription(Aws::String &&value)
CreateRegexPatternSetRequest & WithTags(Aws::Vector< Tag > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateRegexPatternSetRequest & AddTags(const Tag &value)
CreateRegexPatternSetRequest & AddRegularExpressionList(const Regex &value)
virtual const char * GetServiceRequestName() const override
CreateRegexPatternSetRequest & WithRegularExpressionList(Aws::Vector< Regex > &&value)