@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsWafv2RuleGroupDetails extends Object implements Serializable, Cloneable, StructuredPojo
Details about an WAFv2 rule group.
Constructor and Description |
---|
AwsWafv2RuleGroupDetails() |
Modifier and Type | Method and Description |
---|---|
AwsWafv2RuleGroupDetails |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the entity.
|
Long |
getCapacity()
The web ACL capacity units (WCUs) required for this rule group.
|
String |
getDescription()
A description of the rule group that helps with identification.
|
String |
getId()
A unique identifier for the rule group.
|
String |
getName()
The name of the rule group.
|
List<AwsWafv2RulesDetails> |
getRules()
The Rule statements used to identify the web requests that you want to allow, block, or count.
|
String |
getScope()
Specifies whether the rule group is for an Amazon CloudFront distribution or for a regional application.
|
AwsWafv2VisibilityConfigDetails |
getVisibilityConfig()
Defines and enables Amazon CloudWatch metrics and web request sample collection.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the entity.
|
void |
setCapacity(Long capacity)
The web ACL capacity units (WCUs) required for this rule group.
|
void |
setDescription(String description)
A description of the rule group that helps with identification.
|
void |
setId(String id)
A unique identifier for the rule group.
|
void |
setName(String name)
The name of the rule group.
|
void |
setRules(Collection<AwsWafv2RulesDetails> rules)
The Rule statements used to identify the web requests that you want to allow, block, or count.
|
void |
setScope(String scope)
Specifies whether the rule group is for an Amazon CloudFront distribution or for a regional application.
|
void |
setVisibilityConfig(AwsWafv2VisibilityConfigDetails visibilityConfig)
Defines and enables Amazon CloudWatch metrics and web request sample collection.
|
String |
toString()
Returns a string representation of this object.
|
AwsWafv2RuleGroupDetails |
withArn(String arn)
The Amazon Resource Name (ARN) of the entity.
|
AwsWafv2RuleGroupDetails |
withCapacity(Long capacity)
The web ACL capacity units (WCUs) required for this rule group.
|
AwsWafv2RuleGroupDetails |
withDescription(String description)
A description of the rule group that helps with identification.
|
AwsWafv2RuleGroupDetails |
withId(String id)
A unique identifier for the rule group.
|
AwsWafv2RuleGroupDetails |
withName(String name)
The name of the rule group.
|
AwsWafv2RuleGroupDetails |
withRules(AwsWafv2RulesDetails... rules)
The Rule statements used to identify the web requests that you want to allow, block, or count.
|
AwsWafv2RuleGroupDetails |
withRules(Collection<AwsWafv2RulesDetails> rules)
The Rule statements used to identify the web requests that you want to allow, block, or count.
|
AwsWafv2RuleGroupDetails |
withScope(String scope)
Specifies whether the rule group is for an Amazon CloudFront distribution or for a regional application.
|
AwsWafv2RuleGroupDetails |
withVisibilityConfig(AwsWafv2VisibilityConfigDetails visibilityConfig)
Defines and enables Amazon CloudWatch metrics and web request sample collection.
|
public void setCapacity(Long capacity)
The web ACL capacity units (WCUs) required for this rule group.
capacity
- The web ACL capacity units (WCUs) required for this rule group.public Long getCapacity()
The web ACL capacity units (WCUs) required for this rule group.
public AwsWafv2RuleGroupDetails withCapacity(Long capacity)
The web ACL capacity units (WCUs) required for this rule group.
capacity
- The web ACL capacity units (WCUs) required for this rule group.public void setDescription(String description)
A description of the rule group that helps with identification.
description
- A description of the rule group that helps with identification.public String getDescription()
A description of the rule group that helps with identification.
public AwsWafv2RuleGroupDetails withDescription(String description)
A description of the rule group that helps with identification.
description
- A description of the rule group that helps with identification.public void setId(String id)
A unique identifier for the rule group.
id
- A unique identifier for the rule group.public String getId()
A unique identifier for the rule group.
public AwsWafv2RuleGroupDetails withId(String id)
A unique identifier for the rule group.
id
- A unique identifier for the rule group.public void setName(String name)
The name of the rule group. You cannot change the name of a rule group after you create it.
name
- The name of the rule group. You cannot change the name of a rule group after you create it.public String getName()
The name of the rule group. You cannot change the name of a rule group after you create it.
public AwsWafv2RuleGroupDetails withName(String name)
The name of the rule group. You cannot change the name of a rule group after you create it.
name
- The name of the rule group. You cannot change the name of a rule group after you create it.public void setArn(String arn)
The Amazon Resource Name (ARN) of the entity.
arn
- The Amazon Resource Name (ARN) of the entity.public String getArn()
The Amazon Resource Name (ARN) of the entity.
public AwsWafv2RuleGroupDetails withArn(String arn)
The Amazon Resource Name (ARN) of the entity.
arn
- The Amazon Resource Name (ARN) of the entity.public List<AwsWafv2RulesDetails> getRules()
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.
public void setRules(Collection<AwsWafv2RulesDetails> rules)
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.
rules
- 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.public AwsWafv2RuleGroupDetails withRules(AwsWafv2RulesDetails... rules)
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.
NOTE: This method appends the values to the existing list (if any). Use
setRules(java.util.Collection)
or withRules(java.util.Collection)
if you want to override the
existing values.
rules
- 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.public AwsWafv2RuleGroupDetails withRules(Collection<AwsWafv2RulesDetails> rules)
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.
rules
- 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.public void setScope(String 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.
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.public String getScope()
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.
public AwsWafv2RuleGroupDetails withScope(String 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.
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.public void setVisibilityConfig(AwsWafv2VisibilityConfigDetails visibilityConfig)
Defines and enables Amazon CloudWatch metrics and web request sample collection.
visibilityConfig
- Defines and enables Amazon CloudWatch metrics and web request sample collection.public AwsWafv2VisibilityConfigDetails getVisibilityConfig()
Defines and enables Amazon CloudWatch metrics and web request sample collection.
public AwsWafv2RuleGroupDetails withVisibilityConfig(AwsWafv2VisibilityConfigDetails visibilityConfig)
Defines and enables Amazon CloudWatch metrics and web request sample collection.
visibilityConfig
- Defines and enables Amazon CloudWatch metrics and web request sample collection.public String toString()
toString
in class Object
Object.toString()
public AwsWafv2RuleGroupDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.