Class RuleSummary
- java.lang.Object
-
- com.amazonaws.services.waf.model.RuleSummary
-
- All Implemented Interfaces:
Serializable,Cloneable
public class RuleSummary extends Object implements Serializable, Cloneable
Contains the identifier and the friendly name or description of the
Rule.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RuleSummary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuleSummaryclone()booleanequals(Object obj)StringgetName()A friendly name or description of the Rule.StringgetRuleId()A unique identifier for aRule.inthashCode()voidsetName(String name)A friendly name or description of the Rule.voidsetRuleId(String ruleId)A unique identifier for aRule.StringtoString()Returns a string representation of this object; useful for testing and debugging.RuleSummarywithName(String name)A friendly name or description of the Rule.RuleSummarywithRuleId(String ruleId)A unique identifier for aRule.
-
-
-
Method Detail
-
setRuleId
public void setRuleId(String ruleId)
A unique identifier for a
Rule. You useRuleIdto get more information about aRule(see GetRule), update aRule(see UpdateRule), insert aRuleinto aWebACLor delete one from aWebACL(see UpdateWebACL), or delete aRulefrom AWS WAF (see DeleteRule).RuleIdis returned by CreateRule and by ListRules.- Parameters:
ruleId- A unique identifier for aRule. You useRuleIdto get more information about aRule(see GetRule), update aRule(see UpdateRule), insert aRuleinto aWebACLor delete one from aWebACL(see UpdateWebACL), or delete aRulefrom AWS WAF (see DeleteRule).RuleIdis returned by CreateRule and by ListRules.
-
getRuleId
public String getRuleId()
A unique identifier for a
Rule. You useRuleIdto get more information about aRule(see GetRule), update aRule(see UpdateRule), insert aRuleinto aWebACLor delete one from aWebACL(see UpdateWebACL), or delete aRulefrom AWS WAF (see DeleteRule).RuleIdis returned by CreateRule and by ListRules.- Returns:
- A unique identifier for a
Rule. You useRuleIdto get more information about aRule(see GetRule), update aRule(see UpdateRule), insert aRuleinto aWebACLor delete one from aWebACL(see UpdateWebACL), or delete aRulefrom AWS WAF (see DeleteRule).RuleIdis returned by CreateRule and by ListRules.
-
withRuleId
public RuleSummary withRuleId(String ruleId)
A unique identifier for a
Rule. You useRuleIdto get more information about aRule(see GetRule), update aRule(see UpdateRule), insert aRuleinto aWebACLor delete one from aWebACL(see UpdateWebACL), or delete aRulefrom AWS WAF (see DeleteRule).RuleIdis returned by CreateRule and by ListRules.- Parameters:
ruleId- A unique identifier for aRule. You useRuleIdto get more information about aRule(see GetRule), update aRule(see UpdateRule), insert aRuleinto aWebACLor delete one from aWebACL(see UpdateWebACL), or delete aRulefrom AWS WAF (see DeleteRule).RuleIdis returned by CreateRule and by ListRules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
public void setName(String name)
A friendly name or description of the Rule. You can't change the name of a
Ruleafter you create it.- Parameters:
name- A friendly name or description of the Rule. You can't change the name of aRuleafter you create it.
-
getName
public String getName()
A friendly name or description of the Rule. You can't change the name of a
Ruleafter you create it.- Returns:
- A friendly name or description of the Rule. You can't
change the name of a
Ruleafter you create it.
-
withName
public RuleSummary withName(String name)
A friendly name or description of the Rule. You can't change the name of a
Ruleafter you create it.- Parameters:
name- A friendly name or description of the Rule. You can't change the name of aRuleafter you create it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RuleSummary clone()
-
-