AWS SDK for C++  1.9.108
AWS SDK for C++
UpdateRegexPatternSetRequest.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 <utility>
14 
15 namespace Aws
16 {
17 namespace WAFV2
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "UpdateRegexPatternSet"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetName() const{ return m_name; }
44 
48  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 
53  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 
58  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59 
63  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 
68  inline UpdateRegexPatternSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
69 
73  inline UpdateRegexPatternSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
74 
78  inline UpdateRegexPatternSetRequest& WithName(const char* value) { SetName(value); return *this;}
79 
80 
91  inline const Scope& GetScope() const{ return m_scope; }
92 
103  inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
104 
115  inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
116 
127  inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
128 
139  inline UpdateRegexPatternSetRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
140 
151  inline UpdateRegexPatternSetRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
152 
153 
159  inline const Aws::String& GetId() const{ return m_id; }
160 
166  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
167 
173  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
174 
180  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
181 
187  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
188 
194  inline UpdateRegexPatternSetRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
195 
201  inline UpdateRegexPatternSetRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
202 
208  inline UpdateRegexPatternSetRequest& WithId(const char* value) { SetId(value); return *this;}
209 
210 
214  inline const Aws::String& GetDescription() const{ return m_description; }
215 
219  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
220 
224  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
225 
229  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
230 
234  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
235 
239  inline UpdateRegexPatternSetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
240 
244  inline UpdateRegexPatternSetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
245 
249  inline UpdateRegexPatternSetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
250 
251 
255  inline const Aws::Vector<Regex>& GetRegularExpressionList() const{ return m_regularExpressionList; }
256 
260  inline bool RegularExpressionListHasBeenSet() const { return m_regularExpressionListHasBeenSet; }
261 
265  inline void SetRegularExpressionList(const Aws::Vector<Regex>& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList = value; }
266 
270  inline void SetRegularExpressionList(Aws::Vector<Regex>&& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList = std::move(value); }
271 
275  inline UpdateRegexPatternSetRequest& WithRegularExpressionList(const Aws::Vector<Regex>& value) { SetRegularExpressionList(value); return *this;}
276 
280  inline UpdateRegexPatternSetRequest& WithRegularExpressionList(Aws::Vector<Regex>&& value) { SetRegularExpressionList(std::move(value)); return *this;}
281 
285  inline UpdateRegexPatternSetRequest& AddRegularExpressionList(const Regex& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList.push_back(value); return *this; }
286 
290  inline UpdateRegexPatternSetRequest& AddRegularExpressionList(Regex&& value) { m_regularExpressionListHasBeenSet = true; m_regularExpressionList.push_back(std::move(value)); return *this; }
291 
292 
303  inline const Aws::String& GetLockToken() const{ return m_lockToken; }
304 
315  inline bool LockTokenHasBeenSet() const { return m_lockTokenHasBeenSet; }
316 
327  inline void SetLockToken(const Aws::String& value) { m_lockTokenHasBeenSet = true; m_lockToken = value; }
328 
339  inline void SetLockToken(Aws::String&& value) { m_lockTokenHasBeenSet = true; m_lockToken = std::move(value); }
340 
351  inline void SetLockToken(const char* value) { m_lockTokenHasBeenSet = true; m_lockToken.assign(value); }
352 
363  inline UpdateRegexPatternSetRequest& WithLockToken(const Aws::String& value) { SetLockToken(value); return *this;}
364 
375  inline UpdateRegexPatternSetRequest& WithLockToken(Aws::String&& value) { SetLockToken(std::move(value)); return *this;}
376 
387  inline UpdateRegexPatternSetRequest& WithLockToken(const char* value) { SetLockToken(value); return *this;}
388 
389  private:
390 
391  Aws::String m_name;
392  bool m_nameHasBeenSet;
393 
394  Scope m_scope;
395  bool m_scopeHasBeenSet;
396 
397  Aws::String m_id;
398  bool m_idHasBeenSet;
399 
400  Aws::String m_description;
401  bool m_descriptionHasBeenSet;
402 
403  Aws::Vector<Regex> m_regularExpressionList;
404  bool m_regularExpressionListHasBeenSet;
405 
406  Aws::String m_lockToken;
407  bool m_lockTokenHasBeenSet;
408  };
409 
410 } // namespace Model
411 } // namespace WAFV2
412 } // namespace Aws
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::WithName
UpdateRegexPatternSetRequest & WithName(const char *value)
Definition: UpdateRegexPatternSetRequest.h:78
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::UpdateRegexPatternSetRequest
UpdateRegexPatternSetRequest()
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::SetLockToken
void SetLockToken(Aws::String &&value)
Definition: UpdateRegexPatternSetRequest.h:339
WAFV2Request.h
Scope.h
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateRegexPatternSetRequest.h:229
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::LockTokenHasBeenSet
bool LockTokenHasBeenSet() const
Definition: UpdateRegexPatternSetRequest.h:315
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::WithScope
UpdateRegexPatternSetRequest & WithScope(Scope &&value)
Definition: UpdateRegexPatternSetRequest.h:151
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::WithName
UpdateRegexPatternSetRequest & WithName(const Aws::String &value)
Definition: UpdateRegexPatternSetRequest.h:68
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::WithDescription
UpdateRegexPatternSetRequest & WithDescription(Aws::String &&value)
Definition: UpdateRegexPatternSetRequest.h:244
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::SetId
void SetId(Aws::String &&value)
Definition: UpdateRegexPatternSetRequest.h:180
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::SetScope
void SetScope(Scope &&value)
Definition: UpdateRegexPatternSetRequest.h:127
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::WithDescription
UpdateRegexPatternSetRequest & WithDescription(const Aws::String &value)
Definition: UpdateRegexPatternSetRequest.h:239
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::RegularExpressionListHasBeenSet
bool RegularExpressionListHasBeenSet() const
Definition: UpdateRegexPatternSetRequest.h:260
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::WithLockToken
UpdateRegexPatternSetRequest & WithLockToken(Aws::String &&value)
Definition: UpdateRegexPatternSetRequest.h:375
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateRegexPatternSetRequest.h:53
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Regex.h
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::WithId
UpdateRegexPatternSetRequest & WithId(const Aws::String &value)
Definition: UpdateRegexPatternSetRequest.h:194
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::GetRegularExpressionList
const Aws::Vector< Regex > & GetRegularExpressionList() const
Definition: UpdateRegexPatternSetRequest.h:255
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::WithLockToken
UpdateRegexPatternSetRequest & WithLockToken(const Aws::String &value)
Definition: UpdateRegexPatternSetRequest.h:363
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateRegexPatternSetRequest.h:33
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::WithLockToken
UpdateRegexPatternSetRequest & WithLockToken(const char *value)
Definition: UpdateRegexPatternSetRequest.h:387
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::AddRegularExpressionList
UpdateRegexPatternSetRequest & AddRegularExpressionList(Regex &&value)
Definition: UpdateRegexPatternSetRequest.h:290
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::GetId
const Aws::String & GetId() const
Definition: UpdateRegexPatternSetRequest.h:159
AWSVector.h
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateRegexPatternSetRequest.h:58
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::WithDescription
UpdateRegexPatternSetRequest & WithDescription(const char *value)
Definition: UpdateRegexPatternSetRequest.h:249
Aws::WAFV2::Model::Regex
Definition: Regex.h:33
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::SetId
void SetId(const char *value)
Definition: UpdateRegexPatternSetRequest.h:187
WAFV2_EXPORTS.h
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::IdHasBeenSet
bool IdHasBeenSet() const
Definition: UpdateRegexPatternSetRequest.h:166
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::SetLockToken
void SetLockToken(const Aws::String &value)
Definition: UpdateRegexPatternSetRequest.h:327
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::SetId
void SetId(const Aws::String &value)
Definition: UpdateRegexPatternSetRequest.h:173
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateRegexPatternSetRequest.h:219
Aws::WAFV2::WAFV2Request
Definition: WAFV2Request.h:17
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::WithId
UpdateRegexPatternSetRequest & WithId(const char *value)
Definition: UpdateRegexPatternSetRequest.h:208
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::SetLockToken
void SetLockToken(const char *value)
Definition: UpdateRegexPatternSetRequest.h:351
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::GetLockToken
const Aws::String & GetLockToken() const
Definition: UpdateRegexPatternSetRequest.h:303
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::WithScope
UpdateRegexPatternSetRequest & WithScope(const Scope &value)
Definition: UpdateRegexPatternSetRequest.h:139
AWSString.h
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::WithName
UpdateRegexPatternSetRequest & WithName(Aws::String &&value)
Definition: UpdateRegexPatternSetRequest.h:73
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateRegexPatternSetRequest.h:48
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::SetName
void SetName(const char *value)
Definition: UpdateRegexPatternSetRequest.h:63
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::SetRegularExpressionList
void SetRegularExpressionList(const Aws::Vector< Regex > &value)
Definition: UpdateRegexPatternSetRequest.h:265
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::WithRegularExpressionList
UpdateRegexPatternSetRequest & WithRegularExpressionList(Aws::Vector< Regex > &&value)
Definition: UpdateRegexPatternSetRequest.h:280
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateRegexPatternSetRequest.h:224
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::WithId
UpdateRegexPatternSetRequest & WithId(Aws::String &&value)
Definition: UpdateRegexPatternSetRequest.h:201
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::SetScope
void SetScope(const Scope &value)
Definition: UpdateRegexPatternSetRequest.h:115
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::GetName
const Aws::String & GetName() const
Definition: UpdateRegexPatternSetRequest.h:43
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateRegexPatternSetRequest.h:214
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::GetScope
const Scope & GetScope() const
Definition: UpdateRegexPatternSetRequest.h:91
Aws::WAFV2::Model::UpdateRegexPatternSetRequest
Definition: UpdateRegexPatternSetRequest.h:25
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateRegexPatternSetRequest.h:234
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::ScopeHasBeenSet
bool ScopeHasBeenSet() const
Definition: UpdateRegexPatternSetRequest.h:103
Aws::WAFV2::Model::Scope
Scope
Definition: Scope.h:17
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::WithRegularExpressionList
UpdateRegexPatternSetRequest & WithRegularExpressionList(const Aws::Vector< Regex > &value)
Definition: UpdateRegexPatternSetRequest.h:275
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::AddRegularExpressionList
UpdateRegexPatternSetRequest & AddRegularExpressionList(const Regex &value)
Definition: UpdateRegexPatternSetRequest.h:285
Aws::WAFV2::Model::UpdateRegexPatternSetRequest::SetRegularExpressionList
void SetRegularExpressionList(Aws::Vector< Regex > &&value)
Definition: UpdateRegexPatternSetRequest.h:270