@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. | 
| 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. Each rule can include zero or one of the following conditions: http-request-method,
 host-header, path-pattern, and source-ip, and zero or more of the
 following conditions: http-header and query-string.
 
http-request-method, host-header, path-pattern, and
         source-ip, and zero or more of the following conditions: http-header and
         query-string.public void setConditions(Collection<RuleCondition> conditions)
 The conditions. Each rule can include zero or one of the following conditions: http-request-method,
 host-header, path-pattern, and source-ip, and zero or more of the
 following conditions: http-header and query-string.
 
conditions - The conditions. Each rule can include zero or one of the following conditions:
        http-request-method, host-header, path-pattern, and
        source-ip, and zero or more of the following conditions: http-header and
        query-string.public Rule withConditions(RuleCondition... conditions)
 The conditions. Each rule can include zero or one of the following conditions: http-request-method,
 host-header, path-pattern, and source-ip, and zero or more of the
 following conditions: http-header and query-string.
 
 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. Each rule can include zero or one of the following conditions:
        http-request-method, host-header, path-pattern, and
        source-ip, and zero or more of the following conditions: http-header and
        query-string.public Rule withConditions(Collection<RuleCondition> conditions)
 The conditions. Each rule can include zero or one of the following conditions: http-request-method,
 host-header, path-pattern, and source-ip, and zero or more of the
 following conditions: http-header and query-string.
 
conditions - The conditions. Each rule can include zero or one of the following conditions:
        http-request-method, host-header, path-pattern, and
        source-ip, and zero or more of the following conditions: http-header and
        query-string.public List<Action> getActions()
 The actions. Each rule must include exactly one of the following types of actions: forward,
 redirect, or fixed-response, and it must be the last action to be performed.
 
forward,
         redirect, or fixed-response, and it must be the last action to be performed.public void setActions(Collection<Action> actions)
 The actions. Each rule must include exactly one of the following types of actions: forward,
 redirect, or fixed-response, and it must be the last action to be performed.
 
actions - The actions. Each rule must include exactly one of the following types of actions: forward,
        redirect, or fixed-response, and it must be the last action to be performed.public Rule withActions(Action... actions)
 The actions. Each rule must include exactly one of the following types of actions: forward,
 redirect, or fixed-response, and it must be the last action to be performed.
 
 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. Each rule must include exactly one of the following types of actions: forward,
        redirect, or fixed-response, and it must be the last action to be performed.public Rule withActions(Collection<Action> actions)
 The actions. Each rule must include exactly one of the following types of actions: forward,
 redirect, or fixed-response, and it must be the last action to be performed.
 
actions - The actions. Each rule must include exactly one of the following types of actions: forward,
        redirect, or fixed-response, and it must be the last action to be performed.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 ObjectObject.toString()