AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateWebACLRequest.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/CustomResponseBody.h>
20#include <utility>
21
22namespace Aws
23{
24namespace WAFV2
25{
26namespace Model
27{
28
32 {
33 public:
34 AWS_WAFV2_API UpdateWebACLRequest();
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "UpdateWebACL"; }
41
42 AWS_WAFV2_API Aws::String SerializePayload() const override;
43
45
46
48
52 inline const Aws::String& GetName() const{ return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
56 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
57 inline UpdateWebACLRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
58 inline UpdateWebACLRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
59 inline UpdateWebACLRequest& WithName(const char* value) { SetName(value); return *this;}
61
63
74 inline const Scope& GetScope() const{ return m_scope; }
75 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
76 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
77 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
78 inline UpdateWebACLRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
79 inline UpdateWebACLRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
81
83
88 inline const Aws::String& GetId() const{ return m_id; }
89 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
90 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
91 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
92 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
93 inline UpdateWebACLRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
94 inline UpdateWebACLRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
95 inline UpdateWebACLRequest& WithId(const char* value) { SetId(value); return *this;}
97
99
103 inline const DefaultAction& GetDefaultAction() const{ return m_defaultAction; }
104 inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; }
105 inline void SetDefaultAction(const DefaultAction& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; }
106 inline void SetDefaultAction(DefaultAction&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::move(value); }
107 inline UpdateWebACLRequest& WithDefaultAction(const DefaultAction& value) { SetDefaultAction(value); return *this;}
108 inline UpdateWebACLRequest& WithDefaultAction(DefaultAction&& value) { SetDefaultAction(std::move(value)); return *this;}
110
112
115 inline const Aws::String& GetDescription() const{ return m_description; }
116 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
117 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
118 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
119 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
120 inline UpdateWebACLRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
121 inline UpdateWebACLRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
122 inline UpdateWebACLRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
124
126
131 inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
132 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
133 inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
134 inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
135 inline UpdateWebACLRequest& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
136 inline UpdateWebACLRequest& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
137 inline UpdateWebACLRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
138 inline UpdateWebACLRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
140
142
146 inline const VisibilityConfig& GetVisibilityConfig() const{ return m_visibilityConfig; }
147 inline bool VisibilityConfigHasBeenSet() const { return m_visibilityConfigHasBeenSet; }
148 inline void SetVisibilityConfig(const VisibilityConfig& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = value; }
149 inline void SetVisibilityConfig(VisibilityConfig&& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = std::move(value); }
151 inline UpdateWebACLRequest& WithVisibilityConfig(VisibilityConfig&& value) { SetVisibilityConfig(std::move(value)); return *this;}
153
155
165 inline const Aws::String& GetLockToken() const{ return m_lockToken; }
166 inline bool LockTokenHasBeenSet() const { return m_lockTokenHasBeenSet; }
167 inline void SetLockToken(const Aws::String& value) { m_lockTokenHasBeenSet = true; m_lockToken = value; }
168 inline void SetLockToken(Aws::String&& value) { m_lockTokenHasBeenSet = true; m_lockToken = std::move(value); }
169 inline void SetLockToken(const char* value) { m_lockTokenHasBeenSet = true; m_lockToken.assign(value); }
170 inline UpdateWebACLRequest& WithLockToken(const Aws::String& value) { SetLockToken(value); return *this;}
171 inline UpdateWebACLRequest& WithLockToken(Aws::String&& value) { SetLockToken(std::move(value)); return *this;}
172 inline UpdateWebACLRequest& WithLockToken(const char* value) { SetLockToken(value); return *this;}
174
176
189 inline const Aws::Map<Aws::String, CustomResponseBody>& GetCustomResponseBodies() const{ return m_customResponseBodies; }
190 inline bool CustomResponseBodiesHasBeenSet() const { return m_customResponseBodiesHasBeenSet; }
191 inline void SetCustomResponseBodies(const Aws::Map<Aws::String, CustomResponseBody>& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies = value; }
192 inline void SetCustomResponseBodies(Aws::Map<Aws::String, CustomResponseBody>&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies = std::move(value); }
195 inline UpdateWebACLRequest& AddCustomResponseBodies(const Aws::String& key, const CustomResponseBody& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, value); return *this; }
196 inline UpdateWebACLRequest& AddCustomResponseBodies(Aws::String&& key, const CustomResponseBody& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(std::move(key), value); return *this; }
197 inline UpdateWebACLRequest& AddCustomResponseBodies(const Aws::String& key, CustomResponseBody&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, std::move(value)); return *this; }
198 inline UpdateWebACLRequest& AddCustomResponseBodies(Aws::String&& key, CustomResponseBody&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(std::move(key), std::move(value)); return *this; }
199 inline UpdateWebACLRequest& AddCustomResponseBodies(const char* key, CustomResponseBody&& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, std::move(value)); return *this; }
200 inline UpdateWebACLRequest& AddCustomResponseBodies(const char* key, const CustomResponseBody& value) { m_customResponseBodiesHasBeenSet = true; m_customResponseBodies.emplace(key, value); return *this; }
202
204
209 inline const CaptchaConfig& GetCaptchaConfig() const{ return m_captchaConfig; }
210 inline bool CaptchaConfigHasBeenSet() const { return m_captchaConfigHasBeenSet; }
211 inline void SetCaptchaConfig(const CaptchaConfig& value) { m_captchaConfigHasBeenSet = true; m_captchaConfig = value; }
212 inline void SetCaptchaConfig(CaptchaConfig&& value) { m_captchaConfigHasBeenSet = true; m_captchaConfig = std::move(value); }
213 inline UpdateWebACLRequest& WithCaptchaConfig(const CaptchaConfig& value) { SetCaptchaConfig(value); return *this;}
214 inline UpdateWebACLRequest& WithCaptchaConfig(CaptchaConfig&& value) { SetCaptchaConfig(std::move(value)); return *this;}
216
218
223 inline const ChallengeConfig& GetChallengeConfig() const{ return m_challengeConfig; }
224 inline bool ChallengeConfigHasBeenSet() const { return m_challengeConfigHasBeenSet; }
225 inline void SetChallengeConfig(const ChallengeConfig& value) { m_challengeConfigHasBeenSet = true; m_challengeConfig = value; }
226 inline void SetChallengeConfig(ChallengeConfig&& value) { m_challengeConfigHasBeenSet = true; m_challengeConfig = std::move(value); }
227 inline UpdateWebACLRequest& WithChallengeConfig(const ChallengeConfig& value) { SetChallengeConfig(value); return *this;}
228 inline UpdateWebACLRequest& WithChallengeConfig(ChallengeConfig&& value) { SetChallengeConfig(std::move(value)); return *this;}
230
232
244 inline const Aws::Vector<Aws::String>& GetTokenDomains() const{ return m_tokenDomains; }
245 inline bool TokenDomainsHasBeenSet() const { return m_tokenDomainsHasBeenSet; }
246 inline void SetTokenDomains(const Aws::Vector<Aws::String>& value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains = value; }
247 inline void SetTokenDomains(Aws::Vector<Aws::String>&& value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains = std::move(value); }
249 inline UpdateWebACLRequest& WithTokenDomains(Aws::Vector<Aws::String>&& value) { SetTokenDomains(std::move(value)); return *this;}
250 inline UpdateWebACLRequest& AddTokenDomains(const Aws::String& value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains.push_back(value); return *this; }
251 inline UpdateWebACLRequest& AddTokenDomains(Aws::String&& value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains.push_back(std::move(value)); return *this; }
252 inline UpdateWebACLRequest& AddTokenDomains(const char* value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains.push_back(value); return *this; }
254
256
268 inline const AssociationConfig& GetAssociationConfig() const{ return m_associationConfig; }
269 inline bool AssociationConfigHasBeenSet() const { return m_associationConfigHasBeenSet; }
270 inline void SetAssociationConfig(const AssociationConfig& value) { m_associationConfigHasBeenSet = true; m_associationConfig = value; }
271 inline void SetAssociationConfig(AssociationConfig&& value) { m_associationConfigHasBeenSet = true; m_associationConfig = std::move(value); }
273 inline UpdateWebACLRequest& WithAssociationConfig(AssociationConfig&& value) { SetAssociationConfig(std::move(value)); return *this;}
275 private:
276
277 Aws::String m_name;
278 bool m_nameHasBeenSet = false;
279
280 Scope m_scope;
281 bool m_scopeHasBeenSet = false;
282
283 Aws::String m_id;
284 bool m_idHasBeenSet = false;
285
286 DefaultAction m_defaultAction;
287 bool m_defaultActionHasBeenSet = false;
288
289 Aws::String m_description;
290 bool m_descriptionHasBeenSet = false;
291
292 Aws::Vector<Rule> m_rules;
293 bool m_rulesHasBeenSet = false;
294
295 VisibilityConfig m_visibilityConfig;
296 bool m_visibilityConfigHasBeenSet = false;
297
298 Aws::String m_lockToken;
299 bool m_lockTokenHasBeenSet = false;
300
301 Aws::Map<Aws::String, CustomResponseBody> m_customResponseBodies;
302 bool m_customResponseBodiesHasBeenSet = false;
303
304 CaptchaConfig m_captchaConfig;
305 bool m_captchaConfigHasBeenSet = false;
306
307 ChallengeConfig m_challengeConfig;
308 bool m_challengeConfigHasBeenSet = false;
309
310 Aws::Vector<Aws::String> m_tokenDomains;
311 bool m_tokenDomainsHasBeenSet = false;
312
313 AssociationConfig m_associationConfig;
314 bool m_associationConfigHasBeenSet = false;
315 };
316
317} // namespace Model
318} // namespace WAFV2
319} // namespace Aws
UpdateWebACLRequest & WithAssociationConfig(const AssociationConfig &value)
UpdateWebACLRequest & WithDescription(const Aws::String &value)
void SetDefaultAction(const DefaultAction &value)
const Aws::Vector< Aws::String > & GetTokenDomains() const
UpdateWebACLRequest & WithDescription(const char *value)
UpdateWebACLRequest & WithCaptchaConfig(const CaptchaConfig &value)
UpdateWebACLRequest & WithChallengeConfig(ChallengeConfig &&value)
UpdateWebACLRequest & WithRules(const Aws::Vector< Rule > &value)
UpdateWebACLRequest & AddCustomResponseBodies(const char *key, CustomResponseBody &&value)
void SetVisibilityConfig(VisibilityConfig &&value)
void SetAssociationConfig(const AssociationConfig &value)
UpdateWebACLRequest & WithName(const char *value)
void SetChallengeConfig(ChallengeConfig &&value)
UpdateWebACLRequest & WithLockToken(const char *value)
const ChallengeConfig & GetChallengeConfig() const
UpdateWebACLRequest & WithName(const Aws::String &value)
UpdateWebACLRequest & WithRules(Aws::Vector< Rule > &&value)
UpdateWebACLRequest & WithTokenDomains(const Aws::Vector< Aws::String > &value)
const DefaultAction & GetDefaultAction() const
void SetId(const Aws::String &value)
UpdateWebACLRequest & AddCustomResponseBodies(const Aws::String &key, const CustomResponseBody &value)
UpdateWebACLRequest & WithLockToken(const Aws::String &value)
AWS_WAFV2_API Aws::String SerializePayload() const override
UpdateWebACLRequest & WithDescription(Aws::String &&value)
void SetTokenDomains(Aws::Vector< Aws::String > &&value)
UpdateWebACLRequest & WithChallengeConfig(const ChallengeConfig &value)
void SetAssociationConfig(AssociationConfig &&value)
UpdateWebACLRequest & WithAssociationConfig(AssociationConfig &&value)
UpdateWebACLRequest & WithCustomResponseBodies(Aws::Map< Aws::String, CustomResponseBody > &&value)
UpdateWebACLRequest & AddTokenDomains(const char *value)
const VisibilityConfig & GetVisibilityConfig() const
UpdateWebACLRequest & AddCustomResponseBodies(Aws::String &&key, CustomResponseBody &&value)
void SetDefaultAction(DefaultAction &&value)
UpdateWebACLRequest & WithId(Aws::String &&value)
UpdateWebACLRequest & WithTokenDomains(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
UpdateWebACLRequest & AddRules(const Rule &value)
UpdateWebACLRequest & WithCaptchaConfig(CaptchaConfig &&value)
const Aws::Vector< Rule > & GetRules() const
const CaptchaConfig & GetCaptchaConfig() const
void SetTokenDomains(const Aws::Vector< Aws::String > &value)
void SetName(const Aws::String &value)
UpdateWebACLRequest & AddTokenDomains(const Aws::String &value)
void SetChallengeConfig(const ChallengeConfig &value)
void SetCaptchaConfig(const CaptchaConfig &value)
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateWebACLRequest & AddTokenDomains(Aws::String &&value)
UpdateWebACLRequest & WithScope(Scope &&value)
UpdateWebACLRequest & WithCustomResponseBodies(const Aws::Map< Aws::String, CustomResponseBody > &value)
void SetVisibilityConfig(const VisibilityConfig &value)
const Aws::String & GetDescription() const
UpdateWebACLRequest & WithName(Aws::String &&value)
UpdateWebACLRequest & WithScope(const Scope &value)
void SetCustomResponseBodies(Aws::Map< Aws::String, CustomResponseBody > &&value)
void SetRules(const Aws::Vector< Rule > &value)
UpdateWebACLRequest & WithDefaultAction(const DefaultAction &value)
UpdateWebACLRequest & AddCustomResponseBodies(const Aws::String &key, CustomResponseBody &&value)
UpdateWebACLRequest & WithId(const char *value)
UpdateWebACLRequest & WithLockToken(Aws::String &&value)
UpdateWebACLRequest & AddCustomResponseBodies(Aws::String &&key, const CustomResponseBody &value)
void SetCaptchaConfig(CaptchaConfig &&value)
void SetCustomResponseBodies(const Aws::Map< Aws::String, CustomResponseBody > &value)
UpdateWebACLRequest & WithId(const Aws::String &value)
void SetRules(Aws::Vector< Rule > &&value)
const AssociationConfig & GetAssociationConfig() const
const Aws::Map< Aws::String, CustomResponseBody > & GetCustomResponseBodies() const
UpdateWebACLRequest & WithVisibilityConfig(const VisibilityConfig &value)
UpdateWebACLRequest & WithVisibilityConfig(VisibilityConfig &&value)
void SetLockToken(const Aws::String &value)
UpdateWebACLRequest & AddCustomResponseBodies(const char *key, const CustomResponseBody &value)
UpdateWebACLRequest & WithDefaultAction(DefaultAction &&value)
void SetDescription(const Aws::String &value)
UpdateWebACLRequest & AddRules(Rule &&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