AWS SDK for C++  1.9.108
AWS SDK for C++
CreateWebACLRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/wafv2/model/Scope.h>
15 #include <aws/wafv2/model/Rule.h>
16 #include <aws/wafv2/model/Tag.h>
18 #include <utility>
19 
20 namespace Aws
21 {
22 namespace WAFV2
23 {
24 namespace Model
25 {
26 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "CreateWebACL"; }
39 
40  Aws::String SerializePayload() const override;
41 
43 
44 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
55  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 
61  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 
67  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 
73  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
74 
79  inline CreateWebACLRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
80 
85  inline CreateWebACLRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
86 
91  inline CreateWebACLRequest& WithName(const char* value) { SetName(value); return *this;}
92 
93 
104  inline const Scope& GetScope() const{ return m_scope; }
105 
116  inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
117 
128  inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
129 
140  inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
141 
152  inline CreateWebACLRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
153 
164  inline CreateWebACLRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
165 
166 
171  inline const DefaultAction& GetDefaultAction() const{ return m_defaultAction; }
172 
177  inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; }
178 
183  inline void SetDefaultAction(const DefaultAction& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; }
184 
189  inline void SetDefaultAction(DefaultAction&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::move(value); }
190 
195  inline CreateWebACLRequest& WithDefaultAction(const DefaultAction& value) { SetDefaultAction(value); return *this;}
196 
201  inline CreateWebACLRequest& WithDefaultAction(DefaultAction&& value) { SetDefaultAction(std::move(value)); return *this;}
202 
203 
207  inline const Aws::String& GetDescription() const{ return m_description; }
208 
212  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
213 
217  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
218 
222  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
223 
227  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
228 
232  inline CreateWebACLRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
233 
237  inline CreateWebACLRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
238 
242  inline CreateWebACLRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
243 
244 
251  inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
252 
259  inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
260 
267  inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
268 
275  inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
276 
283  inline CreateWebACLRequest& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
284 
291  inline CreateWebACLRequest& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
292 
299  inline CreateWebACLRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
300 
307  inline CreateWebACLRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
308 
309 
314  inline const VisibilityConfig& GetVisibilityConfig() const{ return m_visibilityConfig; }
315 
320  inline bool VisibilityConfigHasBeenSet() const { return m_visibilityConfigHasBeenSet; }
321 
326  inline void SetVisibilityConfig(const VisibilityConfig& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = value; }
327 
332  inline void SetVisibilityConfig(VisibilityConfig&& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = std::move(value); }
333 
338  inline CreateWebACLRequest& WithVisibilityConfig(const VisibilityConfig& value) { SetVisibilityConfig(value); return *this;}
339 
344  inline CreateWebACLRequest& WithVisibilityConfig(VisibilityConfig&& value) { SetVisibilityConfig(std::move(value)); return *this;}
345 
346 
350  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
351 
355  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
356 
360  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
361 
365  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
366 
370  inline CreateWebACLRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
371 
375  inline CreateWebACLRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
376 
380  inline CreateWebACLRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
381 
385  inline CreateWebACLRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
386 
387 
404  inline const Aws::Map<Aws::String, CustomResponseBody>& GetCustomResponseBodies() const{ return m_customResponseBodies; }
405 
422  inline bool CustomResponseBodiesHasBeenSet() const { return m_customResponseBodiesHasBeenSet; }
423 
440  inline void SetCustomResponseBodies(const Aws::Map<Aws::String, CustomResponseBody>& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies = value; }
441 
458  inline void SetCustomResponseBodies(Aws::Map<Aws::String, CustomResponseBody>&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies = std::move(value); }
459 
476  inline CreateWebACLRequest& WithCustomResponseBodies(const Aws::Map<Aws::String, CustomResponseBody>& value) { SetCustomResponseBodies(value); return *this;}
477 
494  inline CreateWebACLRequest& WithCustomResponseBodies(Aws::Map<Aws::String, CustomResponseBody>&& value) { SetCustomResponseBodies(std::move(value)); return *this;}
495 
512  inline CreateWebACLRequest& AddCustomResponseBodies(const Aws::String& key, const CustomResponseBody& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, value); return *this; }
513 
530  inline CreateWebACLRequest& AddCustomResponseBodies(Aws::String&& key, const CustomResponseBody& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(std::move(key), value); return *this; }
531 
548  inline CreateWebACLRequest& AddCustomResponseBodies(const Aws::String& key, CustomResponseBody&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, std::move(value)); return *this; }
549 
566  inline CreateWebACLRequest& AddCustomResponseBodies(Aws::String&& key, CustomResponseBody&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(std::move(key), std::move(value)); return *this; }
567 
584  inline CreateWebACLRequest& AddCustomResponseBodies(const char* key, CustomResponseBody&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, std::move(value)); return *this; }
585 
602  inline CreateWebACLRequest& AddCustomResponseBodies(const char* key, const CustomResponseBody& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, value); return *this; }
603 
604  private:
605 
606  Aws::String m_name;
607  bool m_nameHasBeenSet;
608 
609  Scope m_scope;
610  bool m_scopeHasBeenSet;
611 
612  DefaultAction m_defaultAction;
613  bool m_defaultActionHasBeenSet;
614 
615  Aws::String m_description;
616  bool m_descriptionHasBeenSet;
617 
618  Aws::Vector<Rule> m_rules;
619  bool m_rulesHasBeenSet;
620 
621  VisibilityConfig m_visibilityConfig;
622  bool m_visibilityConfigHasBeenSet;
623 
624  Aws::Vector<Tag> m_tags;
625  bool m_tagsHasBeenSet;
626 
627  Aws::Map<Aws::String, CustomResponseBody> m_customResponseBodies;
628  bool m_customResponseBodiesHasBeenSet;
629  };
630 
631 } // namespace Model
632 } // namespace WAFV2
633 } // namespace Aws
Aws::WAFV2::Model::CreateWebACLRequest::GetRules
const Aws::Vector< Rule > & GetRules() const
Definition: CreateWebACLRequest.h:251
Aws::WAFV2::Model::Rule
Definition: Rule.h:42
WAFV2Request.h
Aws::WAFV2::Model::CreateWebACLRequest::WithDescription
CreateWebACLRequest & WithDescription(Aws::String &&value)
Definition: CreateWebACLRequest.h:237
Aws::WAFV2::Model::CreateWebACLRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateWebACLRequest.h:365
Scope.h
Aws::WAFV2::Model::CreateWebACLRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateWebACLRequest.h:38
Aws::WAFV2::Model::CreateWebACLRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAFV2::Model::CreateWebACLRequest::WithDescription
CreateWebACLRequest & WithDescription(const char *value)
Definition: CreateWebACLRequest.h:242
Aws::WAFV2::Model::CreateWebACLRequest::WithTags
CreateWebACLRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateWebACLRequest.h:370
Aws::WAFV2::Model::CreateWebACLRequest::WithScope
CreateWebACLRequest & WithScope(Scope &&value)
Definition: CreateWebACLRequest.h:164
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAFV2::Model::CreateWebACLRequest::RulesHasBeenSet
bool RulesHasBeenSet() const
Definition: CreateWebACLRequest.h:259
Aws::WAFV2::Model::CreateWebACLRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateWebACLRequest.h:227
Aws::WAFV2::Model::CreateWebACLRequest::SetCustomResponseBodies
void SetCustomResponseBodies(Aws::Map< Aws::String, CustomResponseBody > &&value)
Definition: CreateWebACLRequest.h:458
Aws::WAFV2::Model::CreateWebACLRequest
Definition: CreateWebACLRequest.h:30
Aws::WAFV2::Model::CreateWebACLRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateWebACLRequest.h:350
Aws::WAFV2::Model::CreateWebACLRequest::SetName
void SetName(const char *value)
Definition: CreateWebACLRequest.h:73
Aws::WAFV2::Model::CreateWebACLRequest::WithScope
CreateWebACLRequest & WithScope(const Scope &value)
Definition: CreateWebACLRequest.h:152
Aws::WAFV2::Model::CreateWebACLRequest::SetScope
void SetScope(Scope &&value)
Definition: CreateWebACLRequest.h:140
Aws::WAFV2::Model::CreateWebACLRequest::AddRules
CreateWebACLRequest & AddRules(Rule &&value)
Definition: CreateWebACLRequest.h:307
Aws::WAFV2::Model::CreateWebACLRequest::GetScope
const Scope & GetScope() const
Definition: CreateWebACLRequest.h:104
Aws::WAFV2::Model::CreateWebACLRequest::SetDefaultAction
void SetDefaultAction(const DefaultAction &value)
Definition: CreateWebACLRequest.h:183
Aws::WAFV2::Model::CreateWebACLRequest::CustomResponseBodiesHasBeenSet
bool CustomResponseBodiesHasBeenSet() const
Definition: CreateWebACLRequest.h:422
Aws::WAFV2::Model::CreateWebACLRequest::SetVisibilityConfig
void SetVisibilityConfig(const VisibilityConfig &value)
Definition: CreateWebACLRequest.h:326
Aws::WAFV2::Model::CreateWebACLRequest::SetRules
void SetRules(Aws::Vector< Rule > &&value)
Definition: CreateWebACLRequest.h:275
Aws::WAFV2::Model::VisibilityConfig
Definition: VisibilityConfig.h:33
Aws::WAFV2::Model::CreateWebACLRequest::WithName
CreateWebACLRequest & WithName(const char *value)
Definition: CreateWebACLRequest.h:91
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WAFV2::Model::CreateWebACLRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateWebACLRequest.h:61
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::CreateWebACLRequest::AddCustomResponseBodies
CreateWebACLRequest & AddCustomResponseBodies(const char *key, CustomResponseBody &&value)
Definition: CreateWebACLRequest.h:584
AWSVector.h
CustomResponseBody.h
Rule.h
Aws::WAFV2::Model::CreateWebACLRequest::GetVisibilityConfig
const VisibilityConfig & GetVisibilityConfig() const
Definition: CreateWebACLRequest.h:314
Aws::WAFV2::Model::CreateWebACLRequest::WithName
CreateWebACLRequest & WithName(Aws::String &&value)
Definition: CreateWebACLRequest.h:85
WAFV2_EXPORTS.h
Aws::WAFV2::Model::CreateWebACLRequest::ScopeHasBeenSet
bool ScopeHasBeenSet() const
Definition: CreateWebACLRequest.h:116
Aws::WAFV2::Model::CreateWebACLRequest::AddRules
CreateWebACLRequest & AddRules(const Rule &value)
Definition: CreateWebACLRequest.h:299
Aws::WAFV2::Model::CreateWebACLRequest::GetDefaultAction
const DefaultAction & GetDefaultAction() const
Definition: CreateWebACLRequest.h:171
Aws::WAFV2::Model::CreateWebACLRequest::GetName
const Aws::String & GetName() const
Definition: CreateWebACLRequest.h:49
Aws::WAFV2::Model::CreateWebACLRequest::WithName
CreateWebACLRequest & WithName(const Aws::String &value)
Definition: CreateWebACLRequest.h:79
Aws::WAFV2::Model::CreateWebACLRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WAFV2::Model::CreateWebACLRequest::AddCustomResponseBodies
CreateWebACLRequest & AddCustomResponseBodies(const Aws::String &key, const CustomResponseBody &value)
Definition: CreateWebACLRequest.h:512
Aws::WAFV2::Model::CreateWebACLRequest::AddCustomResponseBodies
CreateWebACLRequest & AddCustomResponseBodies(Aws::String &&key, const CustomResponseBody &value)
Definition: CreateWebACLRequest.h:530
Aws::WAFV2::Model::CreateWebACLRequest::WithCustomResponseBodies
CreateWebACLRequest & WithCustomResponseBodies(const Aws::Map< Aws::String, CustomResponseBody > &value)
Definition: CreateWebACLRequest.h:476
Aws::WAFV2::WAFV2Request
Definition: WAFV2Request.h:17
Aws::WAFV2::Model::CreateWebACLRequest::WithDefaultAction
CreateWebACLRequest & WithDefaultAction(DefaultAction &&value)
Definition: CreateWebACLRequest.h:201
Aws::WAFV2::Model::CreateWebACLRequest::SetVisibilityConfig
void SetVisibilityConfig(VisibilityConfig &&value)
Definition: CreateWebACLRequest.h:332
Aws::WAFV2::Model::CreateWebACLRequest::AddCustomResponseBodies
CreateWebACLRequest & AddCustomResponseBodies(const char *key, const CustomResponseBody &value)
Definition: CreateWebACLRequest.h:602
Aws::WAFV2::Model::CreateWebACLRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateWebACLRequest.h:222
Aws::WAFV2::Model::CreateWebACLRequest::GetCustomResponseBodies
const Aws::Map< Aws::String, CustomResponseBody > & GetCustomResponseBodies() const
Definition: CreateWebACLRequest.h:404
Aws::WAFV2::Model::CreateWebACLRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateWebACLRequest.h:207
Aws::WAFV2::Model::DefaultAction
Definition: DefaultAction.h:36
Aws::WAFV2::Model::CustomResponseBody
Definition: CustomResponseBody.h:35
Aws::WAFV2::Model::CreateWebACLRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateWebACLRequest.h:67
Aws::WAFV2::Model::CreateWebACLRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateWebACLRequest.h:212
Aws::WAFV2::Model::CreateWebACLRequest::CreateWebACLRequest
CreateWebACLRequest()
Aws::WAFV2::Model::CreateWebACLRequest::WithRules
CreateWebACLRequest & WithRules(const Aws::Vector< Rule > &value)
Definition: CreateWebACLRequest.h:283
Aws::WAFV2::Model::CreateWebACLRequest::WithRules
CreateWebACLRequest & WithRules(Aws::Vector< Rule > &&value)
Definition: CreateWebACLRequest.h:291
AWSString.h
Aws::WAFV2::Model::CreateWebACLRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateWebACLRequest.h:360
Aws::WAFV2::Model::CreateWebACLRequest::WithTags
CreateWebACLRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateWebACLRequest.h:375
Aws::WAFV2::Model::CreateWebACLRequest::AddCustomResponseBodies
CreateWebACLRequest & AddCustomResponseBodies(const Aws::String &key, CustomResponseBody &&value)
Definition: CreateWebACLRequest.h:548
Aws::WAFV2::Model::CreateWebACLRequest::SetDefaultAction
void SetDefaultAction(DefaultAction &&value)
Definition: CreateWebACLRequest.h:189
Aws::WAFV2::Model::CreateWebACLRequest::WithCustomResponseBodies
CreateWebACLRequest & WithCustomResponseBodies(Aws::Map< Aws::String, CustomResponseBody > &&value)
Definition: CreateWebACLRequest.h:494
Aws::WAFV2::Model::CreateWebACLRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateWebACLRequest.h:217
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::CreateWebACLRequest::WithDefaultAction
CreateWebACLRequest & WithDefaultAction(const DefaultAction &value)
Definition: CreateWebACLRequest.h:195
Aws::WAFV2::Model::CreateWebACLRequest::DefaultActionHasBeenSet
bool DefaultActionHasBeenSet() const
Definition: CreateWebACLRequest.h:177
Aws::WAFV2::Model::CreateWebACLRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateWebACLRequest.h:55
Tag.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::CreateWebACLRequest::AddTags
CreateWebACLRequest & AddTags(Tag &&value)
Definition: CreateWebACLRequest.h:385
Aws::WAFV2::Model::Tag
Definition: Tag.h:41
DefaultAction.h
Aws::WAFV2::Model::CreateWebACLRequest::SetRules
void SetRules(const Aws::Vector< Rule > &value)
Definition: CreateWebACLRequest.h:267
Aws::WAFV2::Model::CreateWebACLRequest::VisibilityConfigHasBeenSet
bool VisibilityConfigHasBeenSet() const
Definition: CreateWebACLRequest.h:320
Aws::WAFV2::Model::Scope
Scope
Definition: Scope.h:17
VisibilityConfig.h
Aws::WAFV2::Model::CreateWebACLRequest::SetScope
void SetScope(const Scope &value)
Definition: CreateWebACLRequest.h:128
Aws::WAFV2::Model::CreateWebACLRequest::SetCustomResponseBodies
void SetCustomResponseBodies(const Aws::Map< Aws::String, CustomResponseBody > &value)
Definition: CreateWebACLRequest.h:440
Aws::WAFV2::Model::CreateWebACLRequest::AddTags
CreateWebACLRequest & AddTags(const Tag &value)
Definition: CreateWebACLRequest.h:380
AWSMap.h
Aws::WAFV2::Model::CreateWebACLRequest::WithDescription
CreateWebACLRequest & WithDescription(const Aws::String &value)
Definition: CreateWebACLRequest.h:232
Aws::WAFV2::Model::CreateWebACLRequest::AddCustomResponseBodies
CreateWebACLRequest & AddCustomResponseBodies(Aws::String &&key, CustomResponseBody &&value)
Definition: CreateWebACLRequest.h:566
Aws::WAFV2::Model::CreateWebACLRequest::WithVisibilityConfig
CreateWebACLRequest & WithVisibilityConfig(const VisibilityConfig &value)
Definition: CreateWebACLRequest.h:338
Aws::WAFV2::Model::CreateWebACLRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateWebACLRequest.h:355
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::WAFV2::Model::CreateWebACLRequest::WithVisibilityConfig
CreateWebACLRequest & WithVisibilityConfig(VisibilityConfig &&value)
Definition: CreateWebACLRequest.h:344