/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details about an WAFv2 rule group. See Also:
AWS
* API Reference
The web ACL capacity units (WCUs) required for this rule group.
*/ inline long long GetCapacity() const{ return m_capacity; } /** *The web ACL capacity units (WCUs) required for this rule group.
*/ inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; } /** *The web ACL capacity units (WCUs) required for this rule group.
*/ inline void SetCapacity(long long value) { m_capacityHasBeenSet = true; m_capacity = value; } /** *The web ACL capacity units (WCUs) required for this rule group.
*/ inline AwsWafv2RuleGroupDetails& WithCapacity(long long value) { SetCapacity(value); return *this;} /** *A description of the rule group that helps with identification.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *A description of the rule group that helps with identification.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *A description of the rule group that helps with identification.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *A description of the rule group that helps with identification.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *A description of the rule group that helps with identification.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *A description of the rule group that helps with identification.
*/ inline AwsWafv2RuleGroupDetails& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *A description of the rule group that helps with identification.
*/ inline AwsWafv2RuleGroupDetails& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *A description of the rule group that helps with identification.
*/ inline AwsWafv2RuleGroupDetails& WithDescription(const char* value) { SetDescription(value); return *this;} /** *A unique identifier for the rule group.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *A unique identifier for the rule group.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *A unique identifier for the rule group.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *A unique identifier for the rule group.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *A unique identifier for the rule group.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *A unique identifier for the rule group.
*/ inline AwsWafv2RuleGroupDetails& WithId(const Aws::String& value) { SetId(value); return *this;} /** *A unique identifier for the rule group.
*/ inline AwsWafv2RuleGroupDetails& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *A unique identifier for the rule group.
*/ inline AwsWafv2RuleGroupDetails& WithId(const char* value) { SetId(value); return *this;} /** *The name of the rule group. You cannot change the name of a rule group after * you create it.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the rule group. You cannot change the name of a rule group after * you create it.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the rule group. You cannot change the name of a rule group after * you create it.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the rule group. You cannot change the name of a rule group after * you create it.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the rule group. You cannot change the name of a rule group after * you create it.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the rule group. You cannot change the name of a rule group after * you create it.
*/ inline AwsWafv2RuleGroupDetails& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the rule group. You cannot change the name of a rule group after * you create it.
*/ inline AwsWafv2RuleGroupDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the rule group. You cannot change the name of a rule group after * you create it.
*/ inline AwsWafv2RuleGroupDetails& WithName(const char* value) { SetName(value); return *this;} /** *The Amazon Resource Name (ARN) of the entity.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The Amazon Resource Name (ARN) of the entity.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the entity.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The Amazon Resource Name (ARN) of the entity.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The Amazon Resource Name (ARN) of the entity.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The Amazon Resource Name (ARN) of the entity.
*/ inline AwsWafv2RuleGroupDetails& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the entity.
*/ inline AwsWafv2RuleGroupDetails& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the entity.
*/ inline AwsWafv2RuleGroupDetails& WithArn(const char* value) { SetArn(value); return *this;} /** *The Rule statements used to identify the web requests that you want to * allow, block, or count. Each rule includes one top-level statement that WAF uses * to identify matching web requests, and parameters that govern how WAF handles * them.
*/ inline const Aws::VectorThe Rule statements used to identify the web requests that you want to * allow, block, or count. Each rule includes one top-level statement that WAF uses * to identify matching web requests, and parameters that govern how WAF handles * them.
*/ inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; } /** *The Rule statements used to identify the web requests that you want to * allow, block, or count. Each rule includes one top-level statement that WAF uses * to identify matching web requests, and parameters that govern how WAF handles * them.
*/ inline void SetRules(const Aws::VectorThe Rule statements used to identify the web requests that you want to * allow, block, or count. Each rule includes one top-level statement that WAF uses * to identify matching web requests, and parameters that govern how WAF handles * them.
*/ inline void SetRules(Aws::VectorThe Rule statements used to identify the web requests that you want to * allow, block, or count. Each rule includes one top-level statement that WAF uses * to identify matching web requests, and parameters that govern how WAF handles * them.
*/ inline AwsWafv2RuleGroupDetails& WithRules(const Aws::VectorThe Rule statements used to identify the web requests that you want to * allow, block, or count. Each rule includes one top-level statement that WAF uses * to identify matching web requests, and parameters that govern how WAF handles * them.
*/ inline AwsWafv2RuleGroupDetails& WithRules(Aws::VectorThe Rule statements used to identify the web requests that you want to * allow, block, or count. Each rule includes one top-level statement that WAF uses * to identify matching web requests, and parameters that govern how WAF handles * them.
*/ inline AwsWafv2RuleGroupDetails& AddRules(const AwsWafv2RulesDetails& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; } /** *The Rule statements used to identify the web requests that you want to * allow, block, or count. Each rule includes one top-level statement that WAF uses * to identify matching web requests, and parameters that govern how WAF handles * them.
*/ inline AwsWafv2RuleGroupDetails& AddRules(AwsWafv2RulesDetails&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; } /** *Specifies whether the rule group is for an Amazon CloudFront distribution or * for a regional application. A regional application can be an Application Load * Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, or an * Amazon Cognito user pool.
*/ inline const Aws::String& GetScope() const{ return m_scope; } /** *Specifies whether the rule group is for an Amazon CloudFront distribution or * for a regional application. A regional application can be an Application Load * Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, or an * Amazon Cognito user pool.
*/ inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; } /** *Specifies whether the rule group is for an Amazon CloudFront distribution or * for a regional application. A regional application can be an Application Load * Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, or an * Amazon Cognito user pool.
*/ inline void SetScope(const Aws::String& value) { m_scopeHasBeenSet = true; m_scope = value; } /** *Specifies whether the rule group is for an Amazon CloudFront distribution or * for a regional application. A regional application can be an Application Load * Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, or an * Amazon Cognito user pool.
*/ inline void SetScope(Aws::String&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); } /** *Specifies whether the rule group is for an Amazon CloudFront distribution or * for a regional application. A regional application can be an Application Load * Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, or an * Amazon Cognito user pool.
*/ inline void SetScope(const char* value) { m_scopeHasBeenSet = true; m_scope.assign(value); } /** *Specifies whether the rule group is for an Amazon CloudFront distribution or * for a regional application. A regional application can be an Application Load * Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, or an * Amazon Cognito user pool.
*/ inline AwsWafv2RuleGroupDetails& WithScope(const Aws::String& value) { SetScope(value); return *this;} /** *Specifies whether the rule group is for an Amazon CloudFront distribution or * for a regional application. A regional application can be an Application Load * Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, or an * Amazon Cognito user pool.
*/ inline AwsWafv2RuleGroupDetails& WithScope(Aws::String&& value) { SetScope(std::move(value)); return *this;} /** *Specifies whether the rule group is for an Amazon CloudFront distribution or * for a regional application. A regional application can be an Application Load * Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, or an * Amazon Cognito user pool.
*/ inline AwsWafv2RuleGroupDetails& WithScope(const char* value) { SetScope(value); return *this;} /** *Defines and enables Amazon CloudWatch metrics and web request sample * collection.
*/ inline const AwsWafv2VisibilityConfigDetails& GetVisibilityConfig() const{ return m_visibilityConfig; } /** *Defines and enables Amazon CloudWatch metrics and web request sample * collection.
*/ inline bool VisibilityConfigHasBeenSet() const { return m_visibilityConfigHasBeenSet; } /** *Defines and enables Amazon CloudWatch metrics and web request sample * collection.
*/ inline void SetVisibilityConfig(const AwsWafv2VisibilityConfigDetails& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = value; } /** *Defines and enables Amazon CloudWatch metrics and web request sample * collection.
*/ inline void SetVisibilityConfig(AwsWafv2VisibilityConfigDetails&& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = std::move(value); } /** *Defines and enables Amazon CloudWatch metrics and web request sample * collection.
*/ inline AwsWafv2RuleGroupDetails& WithVisibilityConfig(const AwsWafv2VisibilityConfigDetails& value) { SetVisibilityConfig(value); return *this;} /** *Defines and enables Amazon CloudWatch metrics and web request sample * collection.
*/ inline AwsWafv2RuleGroupDetails& WithVisibilityConfig(AwsWafv2VisibilityConfigDetails&& value) { SetVisibilityConfig(std::move(value)); return *this;} private: long long m_capacity; bool m_capacityHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Vector