AWS SDK for C++  1.9.107
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 
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 
92  inline const Scope& GetScope() const{ return m_scope; }
93 
104  inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
105 
116  inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
117 
128  inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
129 
140  inline CreateRegexPatternSetRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
141 
152  inline CreateRegexPatternSetRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
153 
154 
158  inline const Aws::String& GetDescription() const{ return m_description; }
159 
163  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
164 
168  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
169 
173  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
174 
178  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
179 
183  inline CreateRegexPatternSetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
184 
188  inline CreateRegexPatternSetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
189 
193  inline CreateRegexPatternSetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
194 
195 
199  inline const Aws::Vector<Regex>& GetRegularExpressionList() const{ return m_regularExpressionList; }
200 
204  inline bool RegularExpressionListHasBeenSet() const { return m_regularExpressionListHasBeenSet; }
205 
209  inline void SetRegularExpressionList(const Aws::Vector<Regex>& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList = value; }
210 
214  inline void SetRegularExpressionList(Aws::Vector<Regex>&& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList = std::move(value); }
215 
219  inline CreateRegexPatternSetRequest& WithRegularExpressionList(const Aws::Vector<Regex>& value) { SetRegularExpressionList(value); return *this;}
220 
224  inline CreateRegexPatternSetRequest& WithRegularExpressionList(Aws::Vector<Regex>&& value) { SetRegularExpressionList(std::move(value)); return *this;}
225 
229  inline CreateRegexPatternSetRequest& AddRegularExpressionList(const Regex& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList.push_back(value); return *this; }
230 
234  inline CreateRegexPatternSetRequest& AddRegularExpressionList(Regex&& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList.push_back(std::move(value)); return *this; }
235 
236 
240  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
241 
245  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
246 
250  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
251 
255  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
256 
260  inline CreateRegexPatternSetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
261 
265  inline CreateRegexPatternSetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
266 
270  inline CreateRegexPatternSetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
271 
275  inline CreateRegexPatternSetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
276 
277  private:
278 
279  Aws::String m_name;
280  bool m_nameHasBeenSet;
281 
282  Scope m_scope;
283  bool m_scopeHasBeenSet;
284 
285  Aws::String m_description;
286  bool m_descriptionHasBeenSet;
287 
288  Aws::Vector<Regex> m_regularExpressionList;
289  bool m_regularExpressionListHasBeenSet;
290 
291  Aws::Vector<Tag> m_tags;
292  bool m_tagsHasBeenSet;
293  };
294 
295 } // namespace Model
296 } // namespace WAFV2
297 } // namespace Aws
WAFV2Request.h
Scope.h
Aws::WAFV2::Model::CreateRegexPatternSetRequest::SetRegularExpressionList
void SetRegularExpressionList(const Aws::Vector< Regex > &value)
Definition: CreateRegexPatternSetRequest.h:209
Aws::WAFV2::Model::CreateRegexPatternSetRequest::WithRegularExpressionList
CreateRegexPatternSetRequest & WithRegularExpressionList(Aws::Vector< Regex > &&value)
Definition: CreateRegexPatternSetRequest.h:224
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAFV2::Model::CreateRegexPatternSetRequest::SetRegularExpressionList
void SetRegularExpressionList(Aws::Vector< Regex > &&value)
Definition: CreateRegexPatternSetRequest.h:214
Aws::WAFV2::Model::CreateRegexPatternSetRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateRegexPatternSetRequest.h:54
Aws::WAFV2::Model::CreateRegexPatternSetRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateRegexPatternSetRequest.h:173
Aws::WAFV2::Model::CreateRegexPatternSetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WAFV2::Model::CreateRegexPatternSetRequest::WithName
CreateRegexPatternSetRequest & WithName(const Aws::String &value)
Definition: CreateRegexPatternSetRequest.h:69
Aws::WAFV2::Model::CreateRegexPatternSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateRegexPatternSetRequest.h:34
Aws::WAFV2::Model::CreateRegexPatternSetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAFV2::Model::CreateRegexPatternSetRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateRegexPatternSetRequest.h:255
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Regex.h
Aws::WAFV2::Model::CreateRegexPatternSetRequest::WithDescription
CreateRegexPatternSetRequest & WithDescription(Aws::String &&value)
Definition: CreateRegexPatternSetRequest.h:188
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
AWSVector.h
Aws::WAFV2::Model::Regex
Definition: Regex.h:33
Aws::WAFV2::Model::CreateRegexPatternSetRequest::WithName
CreateRegexPatternSetRequest & WithName(const char *value)
Definition: CreateRegexPatternSetRequest.h:79
WAFV2_EXPORTS.h
Aws::WAFV2::Model::CreateRegexPatternSetRequest::AddTags
CreateRegexPatternSetRequest & AddTags(const Tag &value)
Definition: CreateRegexPatternSetRequest.h:270
Aws::WAFV2::Model::CreateRegexPatternSetRequest::WithDescription
CreateRegexPatternSetRequest & WithDescription(const Aws::String &value)
Definition: CreateRegexPatternSetRequest.h:183
Aws::WAFV2::Model::CreateRegexPatternSetRequest::SetScope
void SetScope(Scope &&value)
Definition: CreateRegexPatternSetRequest.h:128
Aws::WAFV2::Model::CreateRegexPatternSetRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateRegexPatternSetRequest.h:178
Aws::WAFV2::WAFV2Request
Definition: WAFV2Request.h:17
Aws::WAFV2::Model::CreateRegexPatternSetRequest
Definition: CreateRegexPatternSetRequest.h:26
Aws::WAFV2::Model::CreateRegexPatternSetRequest::CreateRegexPatternSetRequest
CreateRegexPatternSetRequest()
Aws::WAFV2::Model::CreateRegexPatternSetRequest::WithTags
CreateRegexPatternSetRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateRegexPatternSetRequest.h:260
AWSString.h
Aws::WAFV2::Model::CreateRegexPatternSetRequest::WithScope
CreateRegexPatternSetRequest & WithScope(const Scope &value)
Definition: CreateRegexPatternSetRequest.h:140
Aws::WAFV2::Model::CreateRegexPatternSetRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateRegexPatternSetRequest.h:163
Aws::WAFV2::Model::CreateRegexPatternSetRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateRegexPatternSetRequest.h:158
Aws::WAFV2::Model::CreateRegexPatternSetRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateRegexPatternSetRequest.h:245
Aws::WAFV2::Model::CreateRegexPatternSetRequest::WithDescription
CreateRegexPatternSetRequest & WithDescription(const char *value)
Definition: CreateRegexPatternSetRequest.h:193
Aws::WAFV2::Model::CreateRegexPatternSetRequest::ScopeHasBeenSet
bool ScopeHasBeenSet() const
Definition: CreateRegexPatternSetRequest.h:104
Aws::WAFV2::Model::CreateRegexPatternSetRequest::SetName
void SetName(const char *value)
Definition: CreateRegexPatternSetRequest.h:64
Aws::WAFV2::Model::CreateRegexPatternSetRequest::RegularExpressionListHasBeenSet
bool RegularExpressionListHasBeenSet() const
Definition: CreateRegexPatternSetRequest.h:204
Aws::WAFV2::Model::CreateRegexPatternSetRequest::WithTags
CreateRegexPatternSetRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateRegexPatternSetRequest.h:265
Aws::WAFV2::Model::CreateRegexPatternSetRequest::WithRegularExpressionList
CreateRegexPatternSetRequest & WithRegularExpressionList(const Aws::Vector< Regex > &value)
Definition: CreateRegexPatternSetRequest.h:219
Aws::WAFV2::Model::CreateRegexPatternSetRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateRegexPatternSetRequest.h:240
Aws::WAFV2::Model::CreateRegexPatternSetRequest::WithScope
CreateRegexPatternSetRequest & WithScope(Scope &&value)
Definition: CreateRegexPatternSetRequest.h:152
Aws::WAFV2::Model::CreateRegexPatternSetRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateRegexPatternSetRequest.h:49
Aws::WAFV2::Model::CreateRegexPatternSetRequest::WithName
CreateRegexPatternSetRequest & WithName(Aws::String &&value)
Definition: CreateRegexPatternSetRequest.h:74
Aws
Definition: AccessManagementClient.h:15
Tag.h
Aws::WAFV2::Model::CreateRegexPatternSetRequest::GetScope
const Scope & GetScope() const
Definition: CreateRegexPatternSetRequest.h:92
Aws::WAFV2::Model::CreateRegexPatternSetRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateRegexPatternSetRequest.h:59
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::Tag
Definition: Tag.h:41
Aws::WAFV2::Model::CreateRegexPatternSetRequest::AddRegularExpressionList
CreateRegexPatternSetRequest & AddRegularExpressionList(const Regex &value)
Definition: CreateRegexPatternSetRequest.h:229
Aws::WAFV2::Model::CreateRegexPatternSetRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateRegexPatternSetRequest.h:168
Aws::WAFV2::Model::CreateRegexPatternSetRequest::AddRegularExpressionList
CreateRegexPatternSetRequest & AddRegularExpressionList(Regex &&value)
Definition: CreateRegexPatternSetRequest.h:234
Aws::WAFV2::Model::Scope
Scope
Definition: Scope.h:17
Aws::WAFV2::Model::CreateRegexPatternSetRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateRegexPatternSetRequest.h:250
Aws::WAFV2::Model::CreateRegexPatternSetRequest::SetScope
void SetScope(const Scope &value)
Definition: CreateRegexPatternSetRequest.h:116
Aws::WAFV2::Model::CreateRegexPatternSetRequest::AddTags
CreateRegexPatternSetRequest & AddTags(Tag &&value)
Definition: CreateRegexPatternSetRequest.h:275
Aws::WAFV2::Model::CreateRegexPatternSetRequest::GetName
const Aws::String & GetName() const
Definition: CreateRegexPatternSetRequest.h:44
Aws::WAFV2::Model::CreateRegexPatternSetRequest::GetRegularExpressionList
const Aws::Vector< Regex > & GetRegularExpressionList() const
Definition: CreateRegexPatternSetRequest.h:199