@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsWafRuleGroupRulesDetails extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the rules attached to the rule group. These rules identify the web requests that you want to allow, block, or count.
Constructor and Description |
---|
AwsWafRuleGroupRulesDetails() |
Modifier and Type | Method and Description |
---|---|
AwsWafRuleGroupRulesDetails |
clone() |
boolean |
equals(Object obj) |
AwsWafRuleGroupRulesActionDetails |
getAction()
Provides information about what action WAF should take on a web request when it matches the criteria defined in
the rule.
|
Integer |
getPriority()
If you define more than one rule in a web ACL, WAF evaluates each request against the rules in order based on the
value of
Priority . |
String |
getRuleId()
The rule ID for a rule.
|
String |
getType()
The type of rule.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAction(AwsWafRuleGroupRulesActionDetails action)
Provides information about what action WAF should take on a web request when it matches the criteria defined in
the rule.
|
void |
setPriority(Integer priority)
If you define more than one rule in a web ACL, WAF evaluates each request against the rules in order based on the
value of
Priority . |
void |
setRuleId(String ruleId)
The rule ID for a rule.
|
void |
setType(String type)
The type of rule.
|
String |
toString()
Returns a string representation of this object.
|
AwsWafRuleGroupRulesDetails |
withAction(AwsWafRuleGroupRulesActionDetails action)
Provides information about what action WAF should take on a web request when it matches the criteria defined in
the rule.
|
AwsWafRuleGroupRulesDetails |
withPriority(Integer priority)
If you define more than one rule in a web ACL, WAF evaluates each request against the rules in order based on the
value of
Priority . |
AwsWafRuleGroupRulesDetails |
withRuleId(String ruleId)
The rule ID for a rule.
|
AwsWafRuleGroupRulesDetails |
withType(String type)
The type of rule.
|
public void setAction(AwsWafRuleGroupRulesActionDetails action)
Provides information about what action WAF should take on a web request when it matches the criteria defined in the rule.
action
- Provides information about what action WAF should take on a web request when it matches the criteria
defined in the rule.public AwsWafRuleGroupRulesActionDetails getAction()
Provides information about what action WAF should take on a web request when it matches the criteria defined in the rule.
public AwsWafRuleGroupRulesDetails withAction(AwsWafRuleGroupRulesActionDetails action)
Provides information about what action WAF should take on a web request when it matches the criteria defined in the rule.
action
- Provides information about what action WAF should take on a web request when it matches the criteria
defined in the rule.public void setPriority(Integer priority)
If you define more than one rule in a web ACL, WAF evaluates each request against the rules in order based on the
value of Priority
.
priority
- If you define more than one rule in a web ACL, WAF evaluates each request against the rules in order based
on the value of Priority
.public Integer getPriority()
If you define more than one rule in a web ACL, WAF evaluates each request against the rules in order based on the
value of Priority
.
Priority
.public AwsWafRuleGroupRulesDetails withPriority(Integer priority)
If you define more than one rule in a web ACL, WAF evaluates each request against the rules in order based on the
value of Priority
.
priority
- If you define more than one rule in a web ACL, WAF evaluates each request against the rules in order based
on the value of Priority
.public void setRuleId(String ruleId)
The rule ID for a rule.
ruleId
- The rule ID for a rule.public String getRuleId()
The rule ID for a rule.
public AwsWafRuleGroupRulesDetails withRuleId(String ruleId)
The rule ID for a rule.
ruleId
- The rule ID for a rule.public void setType(String type)
The type of rule.
type
- The type of rule.public String getType()
The type of rule.
public AwsWafRuleGroupRulesDetails withType(String type)
The type of rule.
type
- The type of rule.public String toString()
toString
in class Object
Object.toString()
public AwsWafRuleGroupRulesDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.