@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsWafWebAclDetails extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about an WAF web access control list (web ACL).
Constructor and Description |
---|
AwsWafWebAclDetails() |
Modifier and Type | Method and Description |
---|---|
AwsWafWebAclDetails |
clone() |
boolean |
equals(Object obj) |
String |
getDefaultAction()
The action to perform if none of the rules contained in the web ACL match.
|
String |
getName()
A friendly name or description of the web ACL.
|
List<AwsWafWebAclRule> |
getRules()
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()
A unique identifier for a 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 |
setName(String name)
A friendly name or description of the web ACL.
|
void |
setRules(Collection<AwsWafWebAclRule> rules)
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)
A unique identifier for a web ACL.
|
String |
toString()
Returns a string representation of this object.
|
AwsWafWebAclDetails |
withDefaultAction(String defaultAction)
The action to perform if none of the rules contained in the web ACL match.
|
AwsWafWebAclDetails |
withName(String name)
A friendly name or description of the web ACL.
|
AwsWafWebAclDetails |
withRules(AwsWafWebAclRule... rules)
An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.
|
AwsWafWebAclDetails |
withRules(Collection<AwsWafWebAclRule> rules)
An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.
|
AwsWafWebAclDetails |
withWebAclId(String webAclId)
A unique identifier for a web ACL.
|
public void setName(String name)
A friendly name or description of the web ACL. You can't change the name of a web ACL after you create it.
name
- A friendly name or description of the web ACL. You can't change the name of a web ACL after you create it.public String getName()
A friendly name or description of the web ACL. You can't change the name of a web ACL after you create it.
public AwsWafWebAclDetails withName(String name)
A friendly name or description of the web ACL. You can't change the name of a web ACL after you create it.
name
- A friendly name or description of the web ACL. You can't change the name of a web ACL after you create it.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 AwsWafWebAclDetails 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 List<AwsWafWebAclRule> getRules()
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 setRules(Collection<AwsWafWebAclRule> rules)
An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.
rules
- 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 AwsWafWebAclDetails withRules(AwsWafWebAclRule... rules)
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
setRules(java.util.Collection)
or withRules(java.util.Collection)
if you want to override the
existing values.
rules
- 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 AwsWafWebAclDetails withRules(Collection<AwsWafWebAclRule> rules)
An array that contains the action for each rule in a web ACL, the priority of the rule, and the ID of the rule.
rules
- 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)
A unique identifier for a web ACL.
webAclId
- A unique identifier for a web ACL.public String getWebAclId()
A unique identifier for a web ACL.
public AwsWafWebAclDetails withWebAclId(String webAclId)
A unique identifier for a web ACL.
webAclId
- A unique identifier for a web ACL.public String toString()
toString
in class Object
Object.toString()
public AwsWafWebAclDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.