@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsWafRegionalWebAclDetails extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the web access control list (web ACL). The web ACL contains the rules that identify the requests that you want to allow, block, or count.
Constructor and Description |
---|
AwsWafRegionalWebAclDetails() |
Modifier and Type | Method and Description |
---|---|
AwsWafRegionalWebAclDetails |
clone() |
boolean |
equals(Object obj) |
String |
getDefaultAction()
The action to perform if none of the rules contained in the web ACL match.
|
String |
getMetricName()
A name for the metrics for this web ACL.
|
String |
getName()
A descriptive name for the web ACL.
|
List<AwsWafRegionalWebAclRulesListDetails> |
getRulesList()
An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.
|
String |
getWebAclId()
The ID of the web ACL.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDefaultAction(String defaultAction)
The action to perform if none of the rules contained in the web ACL match.
|
void |
setMetricName(String metricName)
A name for the metrics for this web ACL.
|
void |
setName(String name)
A descriptive name for the web ACL.
|
void |
setRulesList(Collection<AwsWafRegionalWebAclRulesListDetails> rulesList)
An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.
|
void |
setWebAclId(String webAclId)
The ID of the web ACL.
|
String |
toString()
Returns a string representation of this object.
|
AwsWafRegionalWebAclDetails |
withDefaultAction(String defaultAction)
The action to perform if none of the rules contained in the web ACL match.
|
AwsWafRegionalWebAclDetails |
withMetricName(String metricName)
A name for the metrics for this web ACL.
|
AwsWafRegionalWebAclDetails |
withName(String name)
A descriptive name for the web ACL.
|
AwsWafRegionalWebAclDetails |
withRulesList(AwsWafRegionalWebAclRulesListDetails... rulesList)
An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.
|
AwsWafRegionalWebAclDetails |
withRulesList(Collection<AwsWafRegionalWebAclRulesListDetails> rulesList)
An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.
|
AwsWafRegionalWebAclDetails |
withWebAclId(String webAclId)
The ID of the web ACL.
|
public void setDefaultAction(String 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 String getDefaultAction()
The action to perform if none of the rules contained in the web ACL match.
public AwsWafRegionalWebAclDetails withDefaultAction(String 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 setMetricName(String metricName)
A name for the metrics for this web ACL.
metricName
- A name for the metrics for this web ACL.public String getMetricName()
A name for the metrics for this web ACL.
public AwsWafRegionalWebAclDetails withMetricName(String metricName)
A name for the metrics for this web ACL.
metricName
- A name for the metrics for this web ACL.public void setName(String name)
A descriptive name for the web ACL.
name
- A descriptive name for the web ACL.public String getName()
A descriptive name for the web ACL.
public AwsWafRegionalWebAclDetails withName(String name)
A descriptive name for the web ACL.
name
- A descriptive name for the web ACL.public List<AwsWafRegionalWebAclRulesListDetails> getRulesList()
An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.
public void setRulesList(Collection<AwsWafRegionalWebAclRulesListDetails> rulesList)
An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.
rulesList
- An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the
rule.public AwsWafRegionalWebAclDetails withRulesList(AwsWafRegionalWebAclRulesListDetails... rulesList)
An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.
NOTE: This method appends the values to the existing list (if any). Use
setRulesList(java.util.Collection)
or withRulesList(java.util.Collection)
if you want to
override the existing values.
rulesList
- An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the
rule.public AwsWafRegionalWebAclDetails withRulesList(Collection<AwsWafRegionalWebAclRulesListDetails> rulesList)
An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.
rulesList
- An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the
rule.public void setWebAclId(String webAclId)
The ID of the web ACL.
webAclId
- The ID of the web ACL.public String getWebAclId()
The ID of the web ACL.
public AwsWafRegionalWebAclDetails withWebAclId(String webAclId)
The ID of the web ACL.
webAclId
- The ID of the web ACL.public String toString()
toString
in class Object
Object.toString()
public AwsWafRegionalWebAclDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.