@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() |
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) |
void |
setName(String name)
The name of the rule.
|
String |
toString()
Returns a string representation of this object.
|
RuleSummary |
withAction(RuleAction action) |
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)
action
- public RuleAction getAction()
public RuleSummary withAction(RuleAction action)
action
- 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.