@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsWafWebAclDetails extends Object implements Serializable, Cloneable, StructuredPojo
Details about a WAF WebACL.
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 WebACL match.
|
String |
getName()
A friendly name or description of the WebACL.
|
List<AwsWafWebAclRule> |
getRules()
An array that contains the action for each rule in a WebACL, the priority of the rule, and the ID of the rule.
|
String |
getWebAclId()
A unique identifier for a WebACL.
|
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 WebACL match.
|
void |
setName(String name)
A friendly name or description of the WebACL.
|
void |
setRules(Collection<AwsWafWebAclRule> rules)
An array that contains the action for each rule in a WebACL, the priority of the rule, and the ID of the rule.
|
void |
setWebAclId(String webAclId)
A unique identifier for a WebACL.
|
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 WebACL match.
|
AwsWafWebAclDetails |
withName(String name)
A friendly name or description of the WebACL.
|
AwsWafWebAclDetails |
withRules(AwsWafWebAclRule... rules)
An array that contains the action for each rule in a WebACL, 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 WebACL, the priority of the rule, and the ID of the rule.
|
AwsWafWebAclDetails |
withWebAclId(String webAclId)
A unique identifier for a WebACL.
|
public void setName(String name)
A friendly name or description of the WebACL. You can't change the name of a WebACL after you create it.
name
- A friendly name or description of the WebACL. You can't change the name of a WebACL after you create it.public String getName()
A friendly name or description of the WebACL. You can't change the name of a WebACL after you create it.
public AwsWafWebAclDetails withName(String name)
A friendly name or description of the WebACL. You can't change the name of a WebACL after you create it.
name
- A friendly name or description of the WebACL. You can't change the name of a WebACL after you create it.public void setDefaultAction(String defaultAction)
The action to perform if none of the rules contained in the WebACL match.
defaultAction
- The action to perform if none of the rules contained in the WebACL match.public String getDefaultAction()
The action to perform if none of the rules contained in the WebACL match.
public AwsWafWebAclDetails withDefaultAction(String defaultAction)
The action to perform if none of the rules contained in the WebACL match.
defaultAction
- The action to perform if none of the rules contained in the WebACL match.public List<AwsWafWebAclRule> getRules()
An array that contains the action for each rule in a WebACL, 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 WebACL, the priority of the rule, and the ID of the rule.
rules
- An array that contains the action for each rule in a WebACL, 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 WebACL, 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 WebACL, 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 WebACL, the priority of the rule, and the ID of the rule.
rules
- An array that contains the action for each rule in a WebACL, the priority of the rule, and the ID of the
rule.public void setWebAclId(String webAclId)
A unique identifier for a WebACL.
webAclId
- A unique identifier for a WebACL.public String getWebAclId()
A unique identifier for a WebACL.
public AwsWafWebAclDetails withWebAclId(String webAclId)
A unique identifier for a WebACL.
webAclId
- A unique identifier for a WebACL.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.