@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RuleSummary extends Object implements Serializable, Cloneable, StructuredPojo
High-level information about a Rule, returned by operations like DescribeManagedRuleGroup. This
provides information like the ID, that you can use to retrieve and manage a RuleGroup
, and the ARN, that
you provide to the RuleGroupReferenceStatement to use the rule group in a Rule.
Constructor and Description |
---|
RuleSummary() |
Modifier and Type | Method and Description |
---|---|
RuleSummary |
clone() |
boolean |
equals(Object obj) |
RuleAction |
getAction()
The action that WAF should take on a web request when it matches a rule's statement.
|
String |
getName()
The name of the rule.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAction(RuleAction action)
The action that WAF should take on a web request when it matches a rule's statement.
|
void |
setName(String name)
The name of the rule.
|
String |
toString()
Returns a string representation of this object.
|
RuleSummary |
withAction(RuleAction action)
The action that WAF should take on a web request when it matches a rule's statement.
|
RuleSummary |
withName(String name)
The name of the rule.
|
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 RuleSummary withName(String name)
The name of the rule.
name
- The name of the rule.public void setAction(RuleAction action)
The action that WAF should take on a web request when it matches a rule's 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 a rule's statement. Settings at the web
ACL level can override the rule action setting.public RuleAction getAction()
The action that WAF should take on a web request when it matches a rule's statement. Settings at the web ACL level can override the rule action setting.
public RuleSummary withAction(RuleAction action)
The action that WAF should take on a web request when it matches a rule's 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 a rule's statement. Settings at the web
ACL level can override the rule action setting.public String toString()
toString
in class Object
Object.toString()
public RuleSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.