@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsWafv2WebAclDetails extends Object implements Serializable, Cloneable, StructuredPojo
Details about an WAFv2 web Access Control List (ACL).
Constructor and Description |
---|
AwsWafv2WebAclDetails() |
Modifier and Type | Method and Description |
---|---|
AwsWafv2WebAclDetails |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.
|
Long |
getCapacity()
The web ACL capacity units (WCUs) currently being used by this web ACL.
|
AwsWafv2WebAclCaptchaConfigDetails |
getCaptchaConfig()
Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their own
CaptchaConfig settings. |
AwsWafv2WebAclActionDetails |
getDefaultAction()
The action to perform if none of the Rules contained in the web ACL match.
|
String |
getDescription()
A description of the web ACL that helps with identification.
|
String |
getId()
A unique identifier for the web ACL.
|
Boolean |
getManagedbyFirewallManager()
Indicates whether this web ACL is managed by Firewall Manager.
|
String |
getName()
The name of the web ACL.
|
List<AwsWafv2RulesDetails> |
getRules()
The Rule statements used to identify the web requests that you want to allow, block, or count.
|
AwsWafv2VisibilityConfigDetails |
getVisibilityConfig()
Defines and enables Amazon CloudWatch metrics and web request sample collection.
|
int |
hashCode() |
Boolean |
isManagedbyFirewallManager()
Indicates whether this web ACL is managed by Firewall Manager.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.
|
void |
setCapacity(Long capacity)
The web ACL capacity units (WCUs) currently being used by this web ACL.
|
void |
setCaptchaConfig(AwsWafv2WebAclCaptchaConfigDetails captchaConfig)
Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their own
CaptchaConfig settings. |
void |
setDefaultAction(AwsWafv2WebAclActionDetails defaultAction)
The action to perform if none of the Rules contained in the web ACL match.
|
void |
setDescription(String description)
A description of the web ACL that helps with identification.
|
void |
setId(String id)
A unique identifier for the web ACL.
|
void |
setManagedbyFirewallManager(Boolean managedbyFirewallManager)
Indicates whether this web ACL is managed by Firewall Manager.
|
void |
setName(String name)
The name of the web ACL.
|
void |
setRules(Collection<AwsWafv2RulesDetails> rules)
The Rule statements used to identify the web requests that you want to allow, block, or count.
|
void |
setVisibilityConfig(AwsWafv2VisibilityConfigDetails visibilityConfig)
Defines and enables Amazon CloudWatch metrics and web request sample collection.
|
String |
toString()
Returns a string representation of this object.
|
AwsWafv2WebAclDetails |
withArn(String arn)
The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.
|
AwsWafv2WebAclDetails |
withCapacity(Long capacity)
The web ACL capacity units (WCUs) currently being used by this web ACL.
|
AwsWafv2WebAclDetails |
withCaptchaConfig(AwsWafv2WebAclCaptchaConfigDetails captchaConfig)
Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their own
CaptchaConfig settings. |
AwsWafv2WebAclDetails |
withDefaultAction(AwsWafv2WebAclActionDetails defaultAction)
The action to perform if none of the Rules contained in the web ACL match.
|
AwsWafv2WebAclDetails |
withDescription(String description)
A description of the web ACL that helps with identification.
|
AwsWafv2WebAclDetails |
withId(String id)
A unique identifier for the web ACL.
|
AwsWafv2WebAclDetails |
withManagedbyFirewallManager(Boolean managedbyFirewallManager)
Indicates whether this web ACL is managed by Firewall Manager.
|
AwsWafv2WebAclDetails |
withName(String name)
The name of the web ACL.
|
AwsWafv2WebAclDetails |
withRules(AwsWafv2RulesDetails... rules)
The Rule statements used to identify the web requests that you want to allow, block, or count.
|
AwsWafv2WebAclDetails |
withRules(Collection<AwsWafv2RulesDetails> rules)
The Rule statements used to identify the web requests that you want to allow, block, or count.
|
AwsWafv2WebAclDetails |
withVisibilityConfig(AwsWafv2VisibilityConfigDetails visibilityConfig)
Defines and enables Amazon CloudWatch metrics and web request sample collection.
|
public void setName(String name)
The name of the web ACL.
name
- The name of the web ACL.public String getName()
The name of the web ACL.
public AwsWafv2WebAclDetails withName(String name)
The name of the web ACL.
name
- The name of the web ACL.public void setArn(String arn)
The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.
arn
- The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.public String getArn()
The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.
public AwsWafv2WebAclDetails withArn(String arn)
The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.
arn
- The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.public void setManagedbyFirewallManager(Boolean managedbyFirewallManager)
Indicates whether this web ACL is managed by Firewall Manager.
managedbyFirewallManager
- Indicates whether this web ACL is managed by Firewall Manager.public Boolean getManagedbyFirewallManager()
Indicates whether this web ACL is managed by Firewall Manager.
public AwsWafv2WebAclDetails withManagedbyFirewallManager(Boolean managedbyFirewallManager)
Indicates whether this web ACL is managed by Firewall Manager.
managedbyFirewallManager
- Indicates whether this web ACL is managed by Firewall Manager.public Boolean isManagedbyFirewallManager()
Indicates whether this web ACL is managed by Firewall Manager.
public void setId(String id)
A unique identifier for the web ACL.
id
- A unique identifier for the web ACL.public String getId()
A unique identifier for the web ACL.
public AwsWafv2WebAclDetails withId(String id)
A unique identifier for the web ACL.
id
- A unique identifier for the web ACL.public void setCapacity(Long capacity)
The web ACL capacity units (WCUs) currently being used by this web ACL.
capacity
- The web ACL capacity units (WCUs) currently being used by this web ACL.public Long getCapacity()
The web ACL capacity units (WCUs) currently being used by this web ACL.
public AwsWafv2WebAclDetails withCapacity(Long capacity)
The web ACL capacity units (WCUs) currently being used by this web ACL.
capacity
- The web ACL capacity units (WCUs) currently being used by this web ACL.public void setCaptchaConfig(AwsWafv2WebAclCaptchaConfigDetails captchaConfig)
Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their own
CaptchaConfig
settings.
captchaConfig
- Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their own
CaptchaConfig
settings.public AwsWafv2WebAclCaptchaConfigDetails getCaptchaConfig()
Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their own
CaptchaConfig
settings.
CaptchaConfig
settings.public AwsWafv2WebAclDetails withCaptchaConfig(AwsWafv2WebAclCaptchaConfigDetails captchaConfig)
Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their own
CaptchaConfig
settings.
captchaConfig
- Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their own
CaptchaConfig
settings.public void setDefaultAction(AwsWafv2WebAclActionDetails defaultAction)
The action to perform if none of the Rules contained in the web ACL match.
defaultAction
- The action to perform if none of the Rules contained in the web ACL match.public AwsWafv2WebAclActionDetails getDefaultAction()
The action to perform if none of the Rules contained in the web ACL match.
public AwsWafv2WebAclDetails withDefaultAction(AwsWafv2WebAclActionDetails defaultAction)
The action to perform if none of the Rules contained in the web ACL match.
defaultAction
- The action to perform if none of the Rules contained in the web ACL match.public void setDescription(String description)
A description of the web ACL that helps with identification.
description
- A description of the web ACL that helps with identification.public String getDescription()
A description of the web ACL that helps with identification.
public AwsWafv2WebAclDetails withDescription(String description)
A description of the web ACL that helps with identification.
description
- A description of the web ACL that helps with identification.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 AwsWafv2WebAclDetails 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 AwsWafv2WebAclDetails 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 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 AwsWafv2WebAclDetails 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 AwsWafv2WebAclDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.