7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wafv2/WAFV2_EXPORTS.h>
11#include <aws/wafv2/model/AnalyticsConfig.h>
12#include <aws/wafv2/model/ApplicationConfig.h>
13#include <aws/wafv2/model/AssociationConfig.h>
14#include <aws/wafv2/model/CaptchaConfig.h>
15#include <aws/wafv2/model/ChallengeConfig.h>
16#include <aws/wafv2/model/CustomResponseBody.h>
17#include <aws/wafv2/model/DataProtectionConfig.h>
18#include <aws/wafv2/model/DefaultAction.h>
19#include <aws/wafv2/model/FirewallManagerRuleGroup.h>
20#include <aws/wafv2/model/MonetizationConfig.h>
21#include <aws/wafv2/model/OnSourceDDoSProtectionConfig.h>
22#include <aws/wafv2/model/Rule.h>
23#include <aws/wafv2/model/VisibilityConfig.h>
66 template <
typename NameT = Aws::String>
68 m_nameHasBeenSet =
true;
69 m_name = std::forward<NameT>(value);
71 template <
typename NameT = Aws::String>
73 SetName(std::forward<NameT>(value));
86 template <
typename IdT = Aws::String>
88 m_idHasBeenSet =
true;
89 m_id = std::forward<IdT>(value);
91 template <
typename IdT = Aws::String>
93 SetId(std::forward<IdT>(value));
105 template <
typename ARNT = Aws::String>
107 m_aRNHasBeenSet =
true;
108 m_aRN = std::forward<ARNT>(value);
110 template <
typename ARNT = Aws::String>
112 SetARN(std::forward<ARNT>(value));
124 template <
typename DefaultActionT = DefaultAction>
126 m_defaultActionHasBeenSet =
true;
127 m_defaultAction = std::forward<DefaultActionT>(value);
129 template <
typename DefaultActionT = DefaultAction>
142 template <
typename DescriptionT = Aws::String>
144 m_descriptionHasBeenSet =
true;
145 m_description = std::forward<DescriptionT>(value);
147 template <
typename DescriptionT = Aws::String>
162 template <
typename RulesT = Aws::Vector<Rule>>
164 m_rulesHasBeenSet =
true;
165 m_rules = std::forward<RulesT>(value);
167 template <
typename RulesT = Aws::Vector<Rule>>
169 SetRules(std::forward<RulesT>(value));
172 template <
typename RulesT = Rule>
174 m_rulesHasBeenSet =
true;
175 m_rules.emplace_back(std::forward<RulesT>(value));
187 template <
typename VisibilityConfigT = VisibilityConfig>
189 m_visibilityConfigHasBeenSet =
true;
190 m_visibilityConfig = std::forward<VisibilityConfigT>(value);
192 template <
typename VisibilityConfigT = VisibilityConfig>
211 template <
typename DataProtectionConfigT = DataProtectionConfig>
213 m_dataProtectionConfigHasBeenSet =
true;
214 m_dataProtectionConfig = std::forward<DataProtectionConfigT>(value);
216 template <
typename DataProtectionConfigT = DataProtectionConfig>
239 m_capacityHasBeenSet =
true;
260 return m_preProcessFirewallManagerRuleGroups;
263 template <
typename PreProcessFirewallManagerRuleGroupsT = Aws::Vector<FirewallManagerRuleGroup>>
265 m_preProcessFirewallManagerRuleGroupsHasBeenSet =
true;
266 m_preProcessFirewallManagerRuleGroups = std::forward<PreProcessFirewallManagerRuleGroupsT>(value);
268 template <
typename PreProcessFirewallManagerRuleGroupsT = Aws::Vector<FirewallManagerRuleGroup>>
273 template <
typename PreProcessFirewallManagerRuleGroupsT = FirewallManagerRuleGroup>
275 m_preProcessFirewallManagerRuleGroupsHasBeenSet =
true;
276 m_preProcessFirewallManagerRuleGroups.emplace_back(std::forward<PreProcessFirewallManagerRuleGroupsT>(value));
293 return m_postProcessFirewallManagerRuleGroups;
296 template <
typename PostProcessFirewallManagerRuleGroupsT = Aws::Vector<FirewallManagerRuleGroup>>
298 m_postProcessFirewallManagerRuleGroupsHasBeenSet =
true;
299 m_postProcessFirewallManagerRuleGroups = std::forward<PostProcessFirewallManagerRuleGroupsT>(value);
301 template <
typename PostProcessFirewallManagerRuleGroupsT = Aws::Vector<FirewallManagerRuleGroup>>
306 template <
typename PostProcessFirewallManagerRuleGroupsT = FirewallManagerRuleGroup>
308 m_postProcessFirewallManagerRuleGroupsHasBeenSet =
true;
309 m_postProcessFirewallManagerRuleGroups.emplace_back(std::forward<PostProcessFirewallManagerRuleGroupsT>(value));
326 m_managedByFirewallManagerHasBeenSet =
true;
327 m_managedByFirewallManager = value;
349 template <
typename LabelNamespaceT = Aws::String>
351 m_labelNamespaceHasBeenSet =
true;
352 m_labelNamespace = std::forward<LabelNamespaceT>(value);
354 template <
typename LabelNamespaceT = Aws::String>
377 template <
typename CustomResponseBodiesT = Aws::Map<Aws::String, CustomResponseBody>>
379 m_customResponseBodiesHasBeenSet =
true;
380 m_customResponseBodies = std::forward<CustomResponseBodiesT>(value);
382 template <
typename CustomResponseBodiesT = Aws::Map<Aws::String, CustomResponseBody>>
387 template <
typename CustomResponseBodiesKeyT = Aws::String,
typename CustomResponseBodiesValueT = CustomResponseBody>
389 m_customResponseBodiesHasBeenSet =
true;
390 m_customResponseBodies.emplace(std::forward<CustomResponseBodiesKeyT>(key), std::forward<CustomResponseBodiesValueT>(value));
403 template <
typename CaptchaConfigT = CaptchaConfig>
405 m_captchaConfigHasBeenSet =
true;
406 m_captchaConfig = std::forward<CaptchaConfigT>(value);
408 template <
typename CaptchaConfigT = CaptchaConfig>
423 template <
typename ChallengeConfigT = ChallengeConfig>
425 m_challengeConfigHasBeenSet =
true;
426 m_challengeConfig = std::forward<ChallengeConfigT>(value);
428 template <
typename ChallengeConfigT = ChallengeConfig>
447 template <
typename TokenDomainsT = Aws::Vector<Aws::String>>
449 m_tokenDomainsHasBeenSet =
true;
450 m_tokenDomains = std::forward<TokenDomainsT>(value);
452 template <
typename TokenDomainsT = Aws::Vector<Aws::String>>
457 template <
typename TokenDomainsT = Aws::String>
459 m_tokenDomainsHasBeenSet =
true;
460 m_tokenDomains.emplace_back(std::forward<TokenDomainsT>(value));
483 template <
typename AssociationConfigT = AssociationConfig>
485 m_associationConfigHasBeenSet =
true;
486 m_associationConfig = std::forward<AssociationConfigT>(value);
488 template <
typename AssociationConfigT = AssociationConfig>
508 m_retrofittedByFirewallManagerHasBeenSet =
true;
509 m_retrofittedByFirewallManager = value;
524 template <
typename OnSourceDDoSProtectionConfigT = OnSourceDDoSProtectionConfig>
526 m_onSourceDDoSProtectionConfigHasBeenSet =
true;
527 m_onSourceDDoSProtectionConfig = std::forward<OnSourceDDoSProtectionConfigT>(value);
529 template <
typename OnSourceDDoSProtectionConfigT = OnSourceDDoSProtectionConfig>
542 template <
typename ApplicationConfigT = ApplicationConfig>
544 m_applicationConfigHasBeenSet =
true;
545 m_applicationConfig = std::forward<ApplicationConfigT>(value);
547 template <
typename ApplicationConfigT = ApplicationConfig>
562 template <
typename MonetizationConfigT = MonetizationConfig>
564 m_monetizationConfigHasBeenSet =
true;
565 m_monetizationConfig = std::forward<MonetizationConfigT>(value);
567 template <
typename MonetizationConfigT = MonetizationConfig>
581 template <
typename AnalyticsConfigT = AnalyticsConfig>
583 m_analyticsConfigHasBeenSet =
true;
584 m_analyticsConfig = std::forward<AnalyticsConfigT>(value);
586 template <
typename AnalyticsConfigT = AnalyticsConfig>
609 long long m_capacity{0};
615 bool m_managedByFirewallManager{
false};
621 CaptchaConfig m_captchaConfig;
623 ChallengeConfig m_challengeConfig;
627 AssociationConfig m_associationConfig;
629 bool m_retrofittedByFirewallManager{
false};
631 OnSourceDDoSProtectionConfig m_onSourceDDoSProtectionConfig;
633 ApplicationConfig m_applicationConfig;
635 MonetizationConfig m_monetizationConfig;
637 AnalyticsConfig m_analyticsConfig;
638 bool m_nameHasBeenSet =
false;
639 bool m_idHasBeenSet =
false;
640 bool m_aRNHasBeenSet =
false;
641 bool m_defaultActionHasBeenSet =
false;
642 bool m_descriptionHasBeenSet =
false;
643 bool m_rulesHasBeenSet =
false;
644 bool m_visibilityConfigHasBeenSet =
false;
645 bool m_dataProtectionConfigHasBeenSet =
false;
646 bool m_capacityHasBeenSet =
false;
647 bool m_preProcessFirewallManagerRuleGroupsHasBeenSet =
false;
648 bool m_postProcessFirewallManagerRuleGroupsHasBeenSet =
false;
649 bool m_managedByFirewallManagerHasBeenSet =
false;
650 bool m_labelNamespaceHasBeenSet =
false;
651 bool m_customResponseBodiesHasBeenSet =
false;
652 bool m_captchaConfigHasBeenSet =
false;
653 bool m_challengeConfigHasBeenSet =
false;
654 bool m_tokenDomainsHasBeenSet =
false;
655 bool m_associationConfigHasBeenSet =
false;
656 bool m_retrofittedByFirewallManagerHasBeenSet =
false;
657 bool m_onSourceDDoSProtectionConfigHasBeenSet =
false;
658 bool m_applicationConfigHasBeenSet =
false;
659 bool m_monetizationConfigHasBeenSet =
false;
660 bool m_analyticsConfigHasBeenSet =
false;
bool DefaultActionHasBeenSet() const
WebACL & WithManagedByFirewallManager(bool value)
WebACL & WithLabelNamespace(LabelNamespaceT &&value)
const CaptchaConfig & GetCaptchaConfig() const
bool IdHasBeenSet() const
AWS_WAFV2_API WebACL()=default
WebACL & WithName(NameT &&value)
bool CaptchaConfigHasBeenSet() const
void SetAnalyticsConfig(AnalyticsConfigT &&value)
const OnSourceDDoSProtectionConfig & GetOnSourceDDoSProtectionConfig() const
bool AssociationConfigHasBeenSet() const
const Aws::Map< Aws::String, CustomResponseBody > & GetCustomResponseBodies() const
AWS_WAFV2_API WebACL(Aws::Utils::Json::JsonView jsonValue)
void SetVisibilityConfig(VisibilityConfigT &&value)
void SetLabelNamespace(LabelNamespaceT &&value)
bool NameHasBeenSet() const
bool VisibilityConfigHasBeenSet() const
WebACL & WithVisibilityConfig(VisibilityConfigT &&value)
const Aws::String & GetName() const
WebACL & WithOnSourceDDoSProtectionConfig(OnSourceDDoSProtectionConfigT &&value)
bool ARNHasBeenSet() const
WebACL & AddPreProcessFirewallManagerRuleGroups(PreProcessFirewallManagerRuleGroupsT &&value)
bool OnSourceDDoSProtectionConfigHasBeenSet() const
void SetPreProcessFirewallManagerRuleGroups(PreProcessFirewallManagerRuleGroupsT &&value)
WebACL & WithChallengeConfig(ChallengeConfigT &&value)
const Aws::Vector< Rule > & GetRules() const
WebACL & AddPostProcessFirewallManagerRuleGroups(PostProcessFirewallManagerRuleGroupsT &&value)
void SetOnSourceDDoSProtectionConfig(OnSourceDDoSProtectionConfigT &&value)
WebACL & WithPreProcessFirewallManagerRuleGroups(PreProcessFirewallManagerRuleGroupsT &&value)
void SetDataProtectionConfig(DataProtectionConfigT &&value)
const MonetizationConfig & GetMonetizationConfig() const
const Aws::String & GetLabelNamespace() const
const Aws::Vector< FirewallManagerRuleGroup > & GetPostProcessFirewallManagerRuleGroups() const
bool PreProcessFirewallManagerRuleGroupsHasBeenSet() const
AWS_WAFV2_API WebACL & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetManagedByFirewallManager(bool value)
const Aws::Vector< FirewallManagerRuleGroup > & GetPreProcessFirewallManagerRuleGroups() const
const Aws::String & GetDescription() const
bool MonetizationConfigHasBeenSet() const
long long GetCapacity() const
void SetTokenDomains(TokenDomainsT &&value)
bool RetrofittedByFirewallManagerHasBeenSet() const
WebACL & WithRules(RulesT &&value)
void SetAssociationConfig(AssociationConfigT &&value)
void SetDescription(DescriptionT &&value)
WebACL & WithCaptchaConfig(CaptchaConfigT &&value)
WebACL & WithMonetizationConfig(MonetizationConfigT &&value)
WebACL & AddRules(RulesT &&value)
WebACL & WithCapacity(long long value)
WebACL & AddCustomResponseBodies(CustomResponseBodiesKeyT &&key, CustomResponseBodiesValueT &&value)
WebACL & WithDefaultAction(DefaultActionT &&value)
WebACL & WithRetrofittedByFirewallManager(bool value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetARN(ARNT &&value)
WebACL & WithId(IdT &&value)
const Aws::Vector< Aws::String > & GetTokenDomains() const
bool AnalyticsConfigHasBeenSet() const
WebACL & WithApplicationConfig(ApplicationConfigT &&value)
WebACL & WithARN(ARNT &&value)
void SetCaptchaConfig(CaptchaConfigT &&value)
void SetRetrofittedByFirewallManager(bool value)
void SetApplicationConfig(ApplicationConfigT &&value)
const DataProtectionConfig & GetDataProtectionConfig() const
const VisibilityConfig & GetVisibilityConfig() const
void SetPostProcessFirewallManagerRuleGroups(PostProcessFirewallManagerRuleGroupsT &&value)
void SetMonetizationConfig(MonetizationConfigT &&value)
bool DescriptionHasBeenSet() const
bool TokenDomainsHasBeenSet() const
WebACL & WithAnalyticsConfig(AnalyticsConfigT &&value)
bool GetManagedByFirewallManager() const
WebACL & AddTokenDomains(TokenDomainsT &&value)
WebACL & WithTokenDomains(TokenDomainsT &&value)
void SetCapacity(long long value)
WebACL & WithDataProtectionConfig(DataProtectionConfigT &&value)
bool PostProcessFirewallManagerRuleGroupsHasBeenSet() const
bool RulesHasBeenSet() const
bool LabelNamespaceHasBeenSet() const
WebACL & WithAssociationConfig(AssociationConfigT &&value)
bool ApplicationConfigHasBeenSet() const
const Aws::String & GetId() const
void SetName(NameT &&value)
bool CapacityHasBeenSet() const
bool GetRetrofittedByFirewallManager() const
WebACL & WithDescription(DescriptionT &&value)
void SetRules(RulesT &&value)
const AnalyticsConfig & GetAnalyticsConfig() const
void SetCustomResponseBodies(CustomResponseBodiesT &&value)
bool ManagedByFirewallManagerHasBeenSet() const
const Aws::String & GetARN() const
WebACL & WithPostProcessFirewallManagerRuleGroups(PostProcessFirewallManagerRuleGroupsT &&value)
const AssociationConfig & GetAssociationConfig() const
void SetChallengeConfig(ChallengeConfigT &&value)
bool CustomResponseBodiesHasBeenSet() const
void SetDefaultAction(DefaultActionT &&value)
const ApplicationConfig & GetApplicationConfig() const
bool DataProtectionConfigHasBeenSet() const
const DefaultAction & GetDefaultAction() const
const ChallengeConfig & GetChallengeConfig() const
bool ChallengeConfigHasBeenSet() const
WebACL & WithCustomResponseBodies(CustomResponseBodiesT &&value)
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
Aws::Utils::Json::JsonValue JsonValue