@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsWafv2RulesDetails extends Object implements Serializable, Cloneable, StructuredPojo
Provides details about rules in a rule group. A rule identifies 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.
Constructor and Description |
---|
AwsWafv2RulesDetails() |
Modifier and Type | Method and Description |
---|---|
AwsWafv2RulesDetails |
clone() |
boolean |
equals(Object obj) |
AwsWafv2RulesActionDetails |
getAction()
The action that WAF should take on a web request when it matches the rule statement.
|
String |
getName()
The name of the rule.
|
String |
getOverrideAction()
The action to use in the place of the action that results from the rule group evaluation.
|
Integer |
getPriority()
If you define more than one Rule in a WebACL, WAF evaluates each request against the Rules in order based on the
value of
Priority . |
AwsWafv2VisibilityConfigDetails |
getVisibilityConfig()
Defines and enables Amazon CloudWatch metrics and web request sample collection.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAction(AwsWafv2RulesActionDetails action)
The action that WAF should take on a web request when it matches the rule statement.
|
void |
setName(String name)
The name of the rule.
|
void |
setOverrideAction(String overrideAction)
The action to use in the place of the action that results from the rule group evaluation.
|
void |
setPriority(Integer priority)
If you define more than one Rule in a WebACL, WAF evaluates each request against the Rules in order based on the
value of
Priority . |
void |
setVisibilityConfig(AwsWafv2VisibilityConfigDetails visibilityConfig)
Defines and enables Amazon CloudWatch metrics and web request sample collection.
|
String |
toString()
Returns a string representation of this object.
|
AwsWafv2RulesDetails |
withAction(AwsWafv2RulesActionDetails action)
The action that WAF should take on a web request when it matches the rule statement.
|
AwsWafv2RulesDetails |
withName(String name)
The name of the rule.
|
AwsWafv2RulesDetails |
withOverrideAction(String overrideAction)
The action to use in the place of the action that results from the rule group evaluation.
|
AwsWafv2RulesDetails |
withPriority(Integer priority)
If you define more than one Rule in a WebACL, WAF evaluates each request against the Rules in order based on the
value of
Priority . |
AwsWafv2RulesDetails |
withVisibilityConfig(AwsWafv2VisibilityConfigDetails visibilityConfig)
Defines and enables Amazon CloudWatch metrics and web request sample collection.
|
public void setAction(AwsWafv2RulesActionDetails action)
The action that WAF should take on a web request when it matches the rule statement. Settings at the web ACL level can override the rule action setting.
action
- The action that WAF should take on a web request when it matches the rule statement. Settings at the web
ACL level can override the rule action setting.public AwsWafv2RulesActionDetails getAction()
The action that WAF should take on a web request when it matches the rule statement. Settings at the web ACL level can override the rule action setting.
public AwsWafv2RulesDetails withAction(AwsWafv2RulesActionDetails action)
The action that WAF should take on a web request when it matches the rule statement. Settings at the web ACL level can override the rule action setting.
action
- The action that WAF should take on a web request when it matches the rule statement. Settings at the web
ACL level can override the rule action setting.public void setName(String name)
The name of the rule.
name
- The name of the rule.public String getName()
The name of the rule.
public AwsWafv2RulesDetails withName(String name)
The name of the rule.
name
- The name of the rule.public void setOverrideAction(String overrideAction)
The action to use in the place of the action that results from the rule group evaluation.
overrideAction
- The action to use in the place of the action that results from the rule group evaluation.public String getOverrideAction()
The action to use in the place of the action that results from the rule group evaluation.
public AwsWafv2RulesDetails withOverrideAction(String overrideAction)
The action to use in the place of the action that results from the rule group evaluation.
overrideAction
- The action to use in the place of the action that results from the rule group evaluation.public void setPriority(Integer priority)
If you define more than one Rule in a WebACL, WAF evaluates each request against the Rules in order based on the
value of Priority
. WAF processes rules with lower priority first. The priorities don't need to be
consecutive, but they must all be different.
priority
- If you define more than one Rule in a WebACL, WAF evaluates each request against the Rules in order based
on the value of Priority
. WAF processes rules with lower priority first. The priorities don't
need to be consecutive, but they must all be different.public Integer getPriority()
If you define more than one Rule in a WebACL, WAF evaluates each request against the Rules in order based on the
value of Priority
. WAF processes rules with lower priority first. The priorities don't need to be
consecutive, but they must all be different.
Priority
. WAF processes rules with lower priority first. The priorities
don't need to be consecutive, but they must all be different.public AwsWafv2RulesDetails withPriority(Integer priority)
If you define more than one Rule in a WebACL, WAF evaluates each request against the Rules in order based on the
value of Priority
. WAF processes rules with lower priority first. The priorities don't need to be
consecutive, but they must all be different.
priority
- If you define more than one Rule in a WebACL, WAF evaluates each request against the Rules in order based
on the value of Priority
. WAF processes rules with lower priority first. The priorities don't
need to be consecutive, but they must all be different.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 AwsWafv2RulesDetails 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 AwsWafv2RulesDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.