@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Rule extends Object implements Serializable, Cloneable
Information about a rule.
Constructor and Description |
---|
Rule() |
Modifier and Type | Method and Description |
---|---|
Rule |
clone() |
boolean |
equals(Object obj) |
List<Action> |
getActions()
The actions.
|
List<RuleCondition> |
getConditions()
The conditions.
|
Boolean |
getIsDefault()
Indicates whether this is the default rule.
|
String |
getPriority()
The priority.
|
String |
getRuleArn()
The Amazon Resource Name (ARN) of the rule.
|
int |
hashCode() |
Boolean |
isDefault()
Indicates whether this is the default rule.
|
void |
setActions(Collection<Action> actions)
The actions.
|
void |
setConditions(Collection<RuleCondition> conditions)
The conditions.
|
void |
setIsDefault(Boolean isDefault)
Indicates whether this is the default rule.
|
void |
setPriority(String priority)
The priority.
|
void |
setRuleArn(String ruleArn)
The Amazon Resource Name (ARN) of the rule.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Rule |
withActions(Action... actions)
The actions.
|
Rule |
withActions(Collection<Action> actions)
The actions.
|
Rule |
withConditions(Collection<RuleCondition> conditions)
The conditions.
|
Rule |
withConditions(RuleCondition... conditions)
The conditions.
|
Rule |
withIsDefault(Boolean isDefault)
Indicates whether this is the default rule.
|
Rule |
withPriority(String priority)
The priority.
|
Rule |
withRuleArn(String ruleArn)
The Amazon Resource Name (ARN) of the rule.
|
public void setRuleArn(String ruleArn)
The Amazon Resource Name (ARN) of the rule.
ruleArn
- The Amazon Resource Name (ARN) of the rule.public String getRuleArn()
The Amazon Resource Name (ARN) of the rule.
public Rule withRuleArn(String ruleArn)
The Amazon Resource Name (ARN) of the rule.
ruleArn
- The Amazon Resource Name (ARN) of the rule.public void setPriority(String priority)
The priority.
priority
- The priority.public String getPriority()
The priority.
public Rule withPriority(String priority)
The priority.
priority
- The priority.public List<RuleCondition> getConditions()
The conditions.
public void setConditions(Collection<RuleCondition> conditions)
The conditions.
conditions
- The conditions.public Rule withConditions(RuleCondition... conditions)
The conditions.
NOTE: This method appends the values to the existing list (if any). Use
setConditions(java.util.Collection)
or withConditions(java.util.Collection)
if you want to
override the existing values.
conditions
- The conditions.public Rule withConditions(Collection<RuleCondition> conditions)
The conditions.
conditions
- The conditions.public void setActions(Collection<Action> actions)
The actions.
actions
- The actions.public Rule withActions(Action... actions)
The actions.
NOTE: This method appends the values to the existing list (if any). Use
setActions(java.util.Collection)
or withActions(java.util.Collection)
if you want to override
the existing values.
actions
- The actions.public Rule withActions(Collection<Action> actions)
The actions.
actions
- The actions.public void setIsDefault(Boolean isDefault)
Indicates whether this is the default rule.
isDefault
- Indicates whether this is the default rule.public Boolean getIsDefault()
Indicates whether this is the default rule.
public Rule withIsDefault(Boolean isDefault)
Indicates whether this is the default rule.
isDefault
- Indicates whether this is the default rule.public Boolean isDefault()
Indicates whether this is the default rule.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.