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/wafv2/model/DataProtectionConfig.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/wafv2/model/CaptchaConfig.h>
17#include <aws/wafv2/model/ChallengeConfig.h>
18#include <aws/wafv2/model/AssociationConfig.h>
19#include <aws/wafv2/model/OnSourceDDoSProtectionConfig.h>
20#include <aws/wafv2/model/ApplicationConfig.h>
21#include <aws/wafv2/model/Rule.h>
22#include <aws/wafv2/model/Tag.h>
23#include <aws/wafv2/model/CustomResponseBody.h>
58 template<
typename NameT = Aws::String>
59 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
60 template<
typename NameT = Aws::String>
76 inline void SetScope(
Scope value) { m_scopeHasBeenSet =
true; m_scope = value; }
87 template<
typename DefaultActionT = DefaultAction>
88 void SetDefaultAction(DefaultActionT&& value) { m_defaultActionHasBeenSet =
true; m_defaultAction = std::forward<DefaultActionT>(value); }
89 template<
typename DefaultActionT = DefaultAction>
99 template<
typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
101 template<
typename DescriptionT = Aws::String>
113 template<
typename RulesT = Aws::Vector<Rule>>
114 void SetRules(RulesT&& value) { m_rulesHasBeenSet =
true; m_rules = std::forward<RulesT>(value); }
115 template<
typename RulesT = Aws::Vector<Rule>>
117 template<
typename RulesT = Rule>
128 template<
typename VisibilityConfigT = VisibilityConfig>
129 void SetVisibilityConfig(VisibilityConfigT&& value) { m_visibilityConfigHasBeenSet =
true; m_visibilityConfig = std::forward<VisibilityConfigT>(value); }
130 template<
typename VisibilityConfigT = VisibilityConfig>
146 template<
typename DataProtectionConfigT = DataProtectionConfig>
147 void SetDataProtectionConfig(DataProtectionConfigT&& value) { m_dataProtectionConfigHasBeenSet =
true; m_dataProtectionConfig = std::forward<DataProtectionConfigT>(value); }
148 template<
typename DataProtectionConfigT = DataProtectionConfig>
158 template<
typename TagsT = Aws::Vector<Tag>>
159 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
160 template<
typename TagsT = Aws::Vector<Tag>>
162 template<
typename TagsT = Tag>
182 template<
typename CustomResponseBodiesT = Aws::Map<Aws::String, CustomResponseBody>>
183 void SetCustomResponseBodies(CustomResponseBodiesT&& value) { m_customResponseBodiesHasBeenSet =
true; m_customResponseBodies = std::forward<CustomResponseBodiesT>(value); }
184 template<
typename CustomResponseBodiesT = Aws::Map<Aws::String, CustomResponseBody>>
186 template<
typename CustomResponseBodiesKeyT = Aws::String,
typename CustomResponseBodiesValueT = CustomResponseBody>
188 m_customResponseBodiesHasBeenSet =
true; m_customResponseBodies.emplace(std::forward<CustomResponseBodiesKeyT>(key), std::forward<CustomResponseBodiesValueT>(value));
return *
this;
200 template<
typename CaptchaConfigT = CaptchaConfig>
201 void SetCaptchaConfig(CaptchaConfigT&& value) { m_captchaConfigHasBeenSet =
true; m_captchaConfig = std::forward<CaptchaConfigT>(value); }
202 template<
typename CaptchaConfigT = CaptchaConfig>
214 template<
typename ChallengeConfigT = ChallengeConfig>
215 void SetChallengeConfig(ChallengeConfigT&& value) { m_challengeConfigHasBeenSet =
true; m_challengeConfig = std::forward<ChallengeConfigT>(value); }
216 template<
typename ChallengeConfigT = ChallengeConfig>
235 template<
typename TokenDomainsT = Aws::Vector<Aws::String>>
236 void SetTokenDomains(TokenDomainsT&& value) { m_tokenDomainsHasBeenSet =
true; m_tokenDomains = std::forward<TokenDomainsT>(value); }
237 template<
typename TokenDomainsT = Aws::Vector<Aws::String>>
239 template<
typename TokenDomainsT = Aws::String>
258 template<
typename AssociationConfigT = AssociationConfig>
259 void SetAssociationConfig(AssociationConfigT&& value) { m_associationConfigHasBeenSet =
true; m_associationConfig = std::forward<AssociationConfigT>(value); }
260 template<
typename AssociationConfigT = AssociationConfig>
274 template<
typename OnSourceDDoSProtectionConfigT = OnSourceDDoSProtectionConfig>
275 void SetOnSourceDDoSProtectionConfig(OnSourceDDoSProtectionConfigT&& value) { m_onSourceDDoSProtectionConfigHasBeenSet =
true; m_onSourceDDoSProtectionConfig = std::forward<OnSourceDDoSProtectionConfigT>(value); }
276 template<
typename OnSourceDDoSProtectionConfigT = OnSourceDDoSProtectionConfig>
288 template<
typename ApplicationConfigT = ApplicationConfig>
289 void SetApplicationConfig(ApplicationConfigT&& value) { m_applicationConfigHasBeenSet =
true; m_applicationConfig = std::forward<ApplicationConfigT>(value); }
290 template<
typename ApplicationConfigT = ApplicationConfig>
296 bool m_nameHasBeenSet =
false;
299 bool m_scopeHasBeenSet =
false;
301 DefaultAction m_defaultAction;
302 bool m_defaultActionHasBeenSet =
false;
305 bool m_descriptionHasBeenSet =
false;
308 bool m_rulesHasBeenSet =
false;
310 VisibilityConfig m_visibilityConfig;
311 bool m_visibilityConfigHasBeenSet =
false;
313 DataProtectionConfig m_dataProtectionConfig;
314 bool m_dataProtectionConfigHasBeenSet =
false;
317 bool m_tagsHasBeenSet =
false;
320 bool m_customResponseBodiesHasBeenSet =
false;
322 CaptchaConfig m_captchaConfig;
323 bool m_captchaConfigHasBeenSet =
false;
325 ChallengeConfig m_challengeConfig;
326 bool m_challengeConfigHasBeenSet =
false;
329 bool m_tokenDomainsHasBeenSet =
false;
331 AssociationConfig m_associationConfig;
332 bool m_associationConfigHasBeenSet =
false;
334 OnSourceDDoSProtectionConfig m_onSourceDDoSProtectionConfig;
335 bool m_onSourceDDoSProtectionConfigHasBeenSet =
false;
337 ApplicationConfig m_applicationConfig;
338 bool m_applicationConfigHasBeenSet =
false;
CreateWebACLRequest & WithCaptchaConfig(CaptchaConfigT &&value)
bool DataProtectionConfigHasBeenSet() const
CreateWebACLRequest & WithAssociationConfig(AssociationConfigT &&value)
void SetDescription(DescriptionT &&value)
void SetCaptchaConfig(CaptchaConfigT &&value)
CreateWebACLRequest & WithVisibilityConfig(VisibilityConfigT &&value)
void SetChallengeConfig(ChallengeConfigT &&value)
void SetCustomResponseBodies(CustomResponseBodiesT &&value)
const Aws::String & GetDescription() const
const VisibilityConfig & GetVisibilityConfig() const
bool AssociationConfigHasBeenSet() const
const Aws::Vector< Rule > & GetRules() const
bool CaptchaConfigHasBeenSet() const
void SetName(NameT &&value)
CreateWebACLRequest & WithRules(RulesT &&value)
CreateWebACLRequest & WithScope(Scope value)
bool ChallengeConfigHasBeenSet() const
CreateWebACLRequest & WithCustomResponseBodies(CustomResponseBodiesT &&value)
bool NameHasBeenSet() const
virtual const char * GetServiceRequestName() const override
const ChallengeConfig & GetChallengeConfig() const
bool OnSourceDDoSProtectionConfigHasBeenSet() const
bool DescriptionHasBeenSet() const
void SetVisibilityConfig(VisibilityConfigT &&value)
CreateWebACLRequest & AddCustomResponseBodies(CustomResponseBodiesKeyT &&key, CustomResponseBodiesValueT &&value)
bool VisibilityConfigHasBeenSet() const
const Aws::Map< Aws::String, CustomResponseBody > & GetCustomResponseBodies() const
void SetDataProtectionConfig(DataProtectionConfigT &&value)
AWS_WAFV2_API Aws::String SerializePayload() const override
AWS_WAFV2_API CreateWebACLRequest()=default
void SetTags(TagsT &&value)
void SetScope(Scope value)
void SetAssociationConfig(AssociationConfigT &&value)
const Aws::String & GetName() const
CreateWebACLRequest & WithDefaultAction(DefaultActionT &&value)
bool ScopeHasBeenSet() const
CreateWebACLRequest & WithTokenDomains(TokenDomainsT &&value)
bool TagsHasBeenSet() const
void SetRules(RulesT &&value)
void SetTokenDomains(TokenDomainsT &&value)
void SetDefaultAction(DefaultActionT &&value)
bool DefaultActionHasBeenSet() const
CreateWebACLRequest & WithChallengeConfig(ChallengeConfigT &&value)
CreateWebACLRequest & WithName(NameT &&value)
const OnSourceDDoSProtectionConfig & GetOnSourceDDoSProtectionConfig() const
CreateWebACLRequest & WithDataProtectionConfig(DataProtectionConfigT &&value)
bool ApplicationConfigHasBeenSet() const
CreateWebACLRequest & AddTags(TagsT &&value)
const AssociationConfig & GetAssociationConfig() const
const CaptchaConfig & GetCaptchaConfig() const
const DataProtectionConfig & GetDataProtectionConfig() const
CreateWebACLRequest & WithTags(TagsT &&value)
CreateWebACLRequest & AddTokenDomains(TokenDomainsT &&value)
CreateWebACLRequest & AddRules(RulesT &&value)
CreateWebACLRequest & WithOnSourceDDoSProtectionConfig(OnSourceDDoSProtectionConfigT &&value)
void SetApplicationConfig(ApplicationConfigT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateWebACLRequest & WithDescription(DescriptionT &&value)
bool RulesHasBeenSet() const
CreateWebACLRequest & WithApplicationConfig(ApplicationConfigT &&value)
const DefaultAction & GetDefaultAction() const
const Aws::Vector< Aws::String > & GetTokenDomains() const
bool CustomResponseBodiesHasBeenSet() const
bool TokenDomainsHasBeenSet() const
void SetOnSourceDDoSProtectionConfig(OnSourceDDoSProtectionConfigT &&value)
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const ApplicationConfig & GetApplicationConfig() const
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