AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateWebACLRequest.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/WAFV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/wafv2/model/Scope.h>
11#include <aws/wafv2/model/DefaultAction.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/wafv2/model/VisibilityConfig.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/wafv2/model/CaptchaConfig.h>
16#include <aws/wafv2/model/ChallengeConfig.h>
17#include <aws/wafv2/model/AssociationConfig.h>
18#include <aws/wafv2/model/Rule.h>
19#include <aws/wafv2/model/Tag.h>
20#include <aws/wafv2/model/CustomResponseBody.h>
21#include <utility>
22
23namespace Aws
24{
25namespace WAFV2
26{
27namespace Model
28{
29
33 {
34 public:
35 AWS_WAFV2_API CreateWebACLRequest();
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "CreateWebACL"; }
42
43 AWS_WAFV2_API Aws::String SerializePayload() const override;
44
46
47
49
53 inline const Aws::String& GetName() const{ return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
58 inline CreateWebACLRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
59 inline CreateWebACLRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
60 inline CreateWebACLRequest& WithName(const char* value) { SetName(value); return *this;}
62
64
75 inline const Scope& GetScope() const{ return m_scope; }
76 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
77 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
78 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
79 inline CreateWebACLRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
80 inline CreateWebACLRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
82
84
88 inline const DefaultAction& GetDefaultAction() const{ return m_defaultAction; }
89 inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; }
90 inline void SetDefaultAction(const DefaultAction& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; }
91 inline void SetDefaultAction(DefaultAction&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::move(value); }
92 inline CreateWebACLRequest& WithDefaultAction(const DefaultAction& value) { SetDefaultAction(value); return *this;}
93 inline CreateWebACLRequest& WithDefaultAction(DefaultAction&& value) { SetDefaultAction(std::move(value)); return *this;}
95
97
100 inline const Aws::String& GetDescription() const{ return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
103 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
104 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
105 inline CreateWebACLRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
106 inline CreateWebACLRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
107 inline CreateWebACLRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
109
111
116 inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
117 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
118 inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
119 inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
120 inline CreateWebACLRequest& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
121 inline CreateWebACLRequest& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
122 inline CreateWebACLRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
123 inline CreateWebACLRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
125
127
131 inline const VisibilityConfig& GetVisibilityConfig() const{ return m_visibilityConfig; }
132 inline bool VisibilityConfigHasBeenSet() const { return m_visibilityConfigHasBeenSet; }
133 inline void SetVisibilityConfig(const VisibilityConfig& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = value; }
134 inline void SetVisibilityConfig(VisibilityConfig&& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = std::move(value); }
136 inline CreateWebACLRequest& WithVisibilityConfig(VisibilityConfig&& value) { SetVisibilityConfig(std::move(value)); return *this;}
138
140
143 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
144 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
145 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
146 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
147 inline CreateWebACLRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
148 inline CreateWebACLRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
149 inline CreateWebACLRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
150 inline CreateWebACLRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
152
154
167 inline const Aws::Map<Aws::String, CustomResponseBody>& GetCustomResponseBodies() const{ return m_customResponseBodies; }
168 inline bool CustomResponseBodiesHasBeenSet() const { return m_customResponseBodiesHasBeenSet; }
169 inline void SetCustomResponseBodies(const Aws::Map<Aws::String, CustomResponseBody>& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies = value; }
170 inline void SetCustomResponseBodies(Aws::Map<Aws::String, CustomResponseBody>&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies = std::move(value); }
173 inline CreateWebACLRequest& AddCustomResponseBodies(const Aws::String& key, const CustomResponseBody& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, value); return *this; }
174 inline CreateWebACLRequest& AddCustomResponseBodies(Aws::String&& key, const CustomResponseBody& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(std::move(key), value); return *this; }
175 inline CreateWebACLRequest& AddCustomResponseBodies(const Aws::String& key, CustomResponseBody&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, std::move(value)); return *this; }
176 inline CreateWebACLRequest& AddCustomResponseBodies(Aws::String&& key, CustomResponseBody&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(std::move(key), std::move(value)); return *this; }
177 inline CreateWebACLRequest& AddCustomResponseBodies(const char* key, CustomResponseBody&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, std::move(value)); return *this; }
178 inline CreateWebACLRequest& AddCustomResponseBodies(const char* key, const CustomResponseBody& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, value); return *this; }
180
182
187 inline const CaptchaConfig& GetCaptchaConfig() const{ return m_captchaConfig; }
188 inline bool CaptchaConfigHasBeenSet() const { return m_captchaConfigHasBeenSet; }
189 inline void SetCaptchaConfig(const CaptchaConfig& value) { m_captchaConfigHasBeenSet = true; m_captchaConfig = value; }
190 inline void SetCaptchaConfig(CaptchaConfig&& value) { m_captchaConfigHasBeenSet = true; m_captchaConfig = std::move(value); }
191 inline CreateWebACLRequest& WithCaptchaConfig(const CaptchaConfig& value) { SetCaptchaConfig(value); return *this;}
192 inline CreateWebACLRequest& WithCaptchaConfig(CaptchaConfig&& value) { SetCaptchaConfig(std::move(value)); return *this;}
194
196
201 inline const ChallengeConfig& GetChallengeConfig() const{ return m_challengeConfig; }
202 inline bool ChallengeConfigHasBeenSet() const { return m_challengeConfigHasBeenSet; }
203 inline void SetChallengeConfig(const ChallengeConfig& value) { m_challengeConfigHasBeenSet = true; m_challengeConfig = value; }
204 inline void SetChallengeConfig(ChallengeConfig&& value) { m_challengeConfigHasBeenSet = true; m_challengeConfig = std::move(value); }
205 inline CreateWebACLRequest& WithChallengeConfig(const ChallengeConfig& value) { SetChallengeConfig(value); return *this;}
206 inline CreateWebACLRequest& WithChallengeConfig(ChallengeConfig&& value) { SetChallengeConfig(std::move(value)); return *this;}
208
210
222 inline const Aws::Vector<Aws::String>& GetTokenDomains() const{ return m_tokenDomains; }
223 inline bool TokenDomainsHasBeenSet() const { return m_tokenDomainsHasBeenSet; }
224 inline void SetTokenDomains(const Aws::Vector<Aws::String>& value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains = value; }
225 inline void SetTokenDomains(Aws::Vector<Aws::String>&& value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains = std::move(value); }
227 inline CreateWebACLRequest& WithTokenDomains(Aws::Vector<Aws::String>&& value) { SetTokenDomains(std::move(value)); return *this;}
228 inline CreateWebACLRequest& AddTokenDomains(const Aws::String& value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains.push_back(value); return *this; }
229 inline CreateWebACLRequest& AddTokenDomains(Aws::String&& value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains.push_back(std::move(value)); return *this; }
230 inline CreateWebACLRequest& AddTokenDomains(const char* value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains.push_back(value); return *this; }
232
234
246 inline const AssociationConfig& GetAssociationConfig() const{ return m_associationConfig; }
247 inline bool AssociationConfigHasBeenSet() const { return m_associationConfigHasBeenSet; }
248 inline void SetAssociationConfig(const AssociationConfig& value) { m_associationConfigHasBeenSet = true; m_associationConfig = value; }
249 inline void SetAssociationConfig(AssociationConfig&& value) { m_associationConfigHasBeenSet = true; m_associationConfig = std::move(value); }
251 inline CreateWebACLRequest& WithAssociationConfig(AssociationConfig&& value) { SetAssociationConfig(std::move(value)); return *this;}
253 private:
254
255 Aws::String m_name;
256 bool m_nameHasBeenSet = false;
257
258 Scope m_scope;
259 bool m_scopeHasBeenSet = false;
260
261 DefaultAction m_defaultAction;
262 bool m_defaultActionHasBeenSet = false;
263
264 Aws::String m_description;
265 bool m_descriptionHasBeenSet = false;
266
267 Aws::Vector<Rule> m_rules;
268 bool m_rulesHasBeenSet = false;
269
270 VisibilityConfig m_visibilityConfig;
271 bool m_visibilityConfigHasBeenSet = false;
272
273 Aws::Vector<Tag> m_tags;
274 bool m_tagsHasBeenSet = false;
275
276 Aws::Map<Aws::String, CustomResponseBody> m_customResponseBodies;
277 bool m_customResponseBodiesHasBeenSet = false;
278
279 CaptchaConfig m_captchaConfig;
280 bool m_captchaConfigHasBeenSet = false;
281
282 ChallengeConfig m_challengeConfig;
283 bool m_challengeConfigHasBeenSet = false;
284
285 Aws::Vector<Aws::String> m_tokenDomains;
286 bool m_tokenDomainsHasBeenSet = false;
287
288 AssociationConfig m_associationConfig;
289 bool m_associationConfigHasBeenSet = false;
290 };
291
292} // namespace Model
293} // namespace WAFV2
294} // namespace Aws
void SetDefaultAction(DefaultAction &&value)
CreateWebACLRequest & WithTokenDomains(Aws::Vector< Aws::String > &&value)
CreateWebACLRequest & WithCustomResponseBodies(Aws::Map< Aws::String, CustomResponseBody > &&value)
void SetVisibilityConfig(const VisibilityConfig &value)
CreateWebACLRequest & WithDefaultAction(DefaultAction &&value)
void SetTokenDomains(Aws::Vector< Aws::String > &&value)
CreateWebACLRequest & WithAssociationConfig(AssociationConfig &&value)
CreateWebACLRequest & AddTags(const Tag &value)
const Aws::String & GetDescription() const
CreateWebACLRequest & WithChallengeConfig(const ChallengeConfig &value)
CreateWebACLRequest & WithName(const char *value)
const VisibilityConfig & GetVisibilityConfig() const
const Aws::Vector< Rule > & GetRules() const
CreateWebACLRequest & WithTags(Aws::Vector< Tag > &&value)
CreateWebACLRequest & AddCustomResponseBodies(const char *key, const CustomResponseBody &value)
CreateWebACLRequest & WithName(Aws::String &&value)
CreateWebACLRequest & WithChallengeConfig(ChallengeConfig &&value)
void SetAssociationConfig(AssociationConfig &&value)
void SetTags(const Aws::Vector< Tag > &value)
void SetCustomResponseBodies(Aws::Map< Aws::String, CustomResponseBody > &&value)
void SetDefaultAction(const DefaultAction &value)
void SetTokenDomains(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
const ChallengeConfig & GetChallengeConfig() const
CreateWebACLRequest & AddRules(const Rule &value)
CreateWebACLRequest & WithCustomResponseBodies(const Aws::Map< Aws::String, CustomResponseBody > &value)
void SetCustomResponseBodies(const Aws::Map< Aws::String, CustomResponseBody > &value)
CreateWebACLRequest & WithTokenDomains(const Aws::Vector< Aws::String > &value)
void SetRules(Aws::Vector< Rule > &&value)
CreateWebACLRequest & WithDefaultAction(const DefaultAction &value)
const Aws::Map< Aws::String, CustomResponseBody > & GetCustomResponseBodies() const
CreateWebACLRequest & AddTags(Tag &&value)
CreateWebACLRequest & WithDescription(Aws::String &&value)
CreateWebACLRequest & AddCustomResponseBodies(const Aws::String &key, const CustomResponseBody &value)
AWS_WAFV2_API Aws::String SerializePayload() const override
CreateWebACLRequest & WithAssociationConfig(const AssociationConfig &value)
CreateWebACLRequest & WithDescription(const char *value)
void SetAssociationConfig(const AssociationConfig &value)
CreateWebACLRequest & AddCustomResponseBodies(Aws::String &&key, CustomResponseBody &&value)
void SetRules(const Aws::Vector< Rule > &value)
void SetCaptchaConfig(const CaptchaConfig &value)
CreateWebACLRequest & WithTags(const Aws::Vector< Tag > &value)
CreateWebACLRequest & AddCustomResponseBodies(const Aws::String &key, CustomResponseBody &&value)
void SetCaptchaConfig(CaptchaConfig &&value)
void SetChallengeConfig(ChallengeConfig &&value)
CreateWebACLRequest & AddTokenDomains(const Aws::String &value)
CreateWebACLRequest & WithDescription(const Aws::String &value)
CreateWebACLRequest & WithRules(const Aws::Vector< Rule > &value)
CreateWebACLRequest & AddTokenDomains(const char *value)
CreateWebACLRequest & AddCustomResponseBodies(Aws::String &&key, const CustomResponseBody &value)
const AssociationConfig & GetAssociationConfig() const
const CaptchaConfig & GetCaptchaConfig() const
CreateWebACLRequest & AddTokenDomains(Aws::String &&value)
CreateWebACLRequest & WithVisibilityConfig(VisibilityConfig &&value)
CreateWebACLRequest & WithCaptchaConfig(const CaptchaConfig &value)
CreateWebACLRequest & AddRules(Rule &&value)
void SetTags(Aws::Vector< Tag > &&value)
CreateWebACLRequest & WithScope(const Scope &value)
CreateWebACLRequest & WithRules(Aws::Vector< Rule > &&value)
CreateWebACLRequest & WithCaptchaConfig(CaptchaConfig &&value)
CreateWebACLRequest & WithScope(Scope &&value)
void SetVisibilityConfig(VisibilityConfig &&value)
void SetName(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
void SetChallengeConfig(const ChallengeConfig &value)
const DefaultAction & GetDefaultAction() const
const Aws::Vector< Aws::String > & GetTokenDomains() const
void SetDescription(const Aws::String &value)
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateWebACLRequest & WithVisibilityConfig(const VisibilityConfig &value)
CreateWebACLRequest & AddCustomResponseBodies(const char *key, CustomResponseBody &&value)
CreateWebACLRequest & WithName(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector