public class CreateRuleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Contains the parameters for CreateRule.
NOOP
Constructor and Description |
---|
CreateRuleRequest() |
Modifier and Type | Method and Description |
---|---|
CreateRuleRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
List<Action> |
getActions()
An action.
|
List<RuleCondition> |
getConditions()
A condition.
|
String |
getListenerArn()
The Amazon Resource Name (ARN) of the listener.
|
Integer |
getPriority()
The priority for the rule.
|
int |
hashCode() |
void |
setActions(Collection<Action> actions)
An action.
|
void |
setConditions(Collection<RuleCondition> conditions)
A condition.
|
void |
setListenerArn(String listenerArn)
The Amazon Resource Name (ARN) of the listener.
|
void |
setPriority(Integer priority)
The priority for the rule.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CreateRuleRequest |
withActions(Action... actions)
An action.
|
CreateRuleRequest |
withActions(Collection<Action> actions)
An action.
|
CreateRuleRequest |
withConditions(Collection<RuleCondition> conditions)
A condition.
|
CreateRuleRequest |
withConditions(RuleCondition... conditions)
A condition.
|
CreateRuleRequest |
withListenerArn(String listenerArn)
The Amazon Resource Name (ARN) of the listener.
|
CreateRuleRequest |
withPriority(Integer priority)
The priority for the rule.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setListenerArn(String listenerArn)
The Amazon Resource Name (ARN) of the listener.
listenerArn
- The Amazon Resource Name (ARN) of the listener.public String getListenerArn()
The Amazon Resource Name (ARN) of the listener.
public CreateRuleRequest withListenerArn(String listenerArn)
The Amazon Resource Name (ARN) of the listener.
listenerArn
- The Amazon Resource Name (ARN) of the listener.public List<RuleCondition> getConditions()
A condition. Each condition has the field path-pattern
and specifies one path pattern. A path
pattern is case sensitive, can be up to 255 characters in length, and can contain any of the following
characters:
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
* (matches 0 or more characters)
? (matches exactly 1 character)
path-pattern
and specifies one path pattern. A
path pattern is case sensitive, can be up to 255 characters in length, and can contain any of the
following characters:
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
(matches 0 or more characters)
? (matches exactly 1 character)
public void setConditions(Collection<RuleCondition> conditions)
A condition. Each condition has the field path-pattern
and specifies one path pattern. A path
pattern is case sensitive, can be up to 255 characters in length, and can contain any of the following
characters:
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
* (matches 0 or more characters)
? (matches exactly 1 character)
conditions
- A condition. Each condition has the field path-pattern
and specifies one path pattern. A path
pattern is case sensitive, can be up to 255 characters in length, and can contain any of the following
characters:
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
(matches 0 or more characters)
? (matches exactly 1 character)
public CreateRuleRequest withConditions(RuleCondition... conditions)
A condition. Each condition has the field path-pattern
and specifies one path pattern. A path
pattern is case sensitive, can be up to 255 characters in length, and can contain any of the following
characters:
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
* (matches 0 or more characters)
? (matches exactly 1 character)
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
- A condition. Each condition has the field path-pattern
and specifies one path pattern. A path
pattern is case sensitive, can be up to 255 characters in length, and can contain any of the following
characters:
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
(matches 0 or more characters)
? (matches exactly 1 character)
public CreateRuleRequest withConditions(Collection<RuleCondition> conditions)
A condition. Each condition has the field path-pattern
and specifies one path pattern. A path
pattern is case sensitive, can be up to 255 characters in length, and can contain any of the following
characters:
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
* (matches 0 or more characters)
? (matches exactly 1 character)
conditions
- A condition. Each condition has the field path-pattern
and specifies one path pattern. A path
pattern is case sensitive, can be up to 255 characters in length, and can contain any of the following
characters:
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
(matches 0 or more characters)
? (matches exactly 1 character)
public void setPriority(Integer priority)
The priority for the rule. A listener can't have multiple rules with the same priority.
priority
- The priority for the rule. A listener can't have multiple rules with the same priority.public Integer getPriority()
The priority for the rule. A listener can't have multiple rules with the same priority.
public CreateRuleRequest withPriority(Integer priority)
The priority for the rule. A listener can't have multiple rules with the same priority.
priority
- The priority for the rule. A listener can't have multiple rules with the same priority.public List<Action> getActions()
An action. Each action has the type forward
and specifies a target group.
forward
and specifies a target group.public void setActions(Collection<Action> actions)
An action. Each action has the type forward
and specifies a target group.
actions
- An action. Each action has the type forward
and specifies a target group.public CreateRuleRequest withActions(Action... actions)
An action. Each action has the type forward
and specifies a target group.
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
- An action. Each action has the type forward
and specifies a target group.public CreateRuleRequest withActions(Collection<Action> actions)
An action. Each action has the type forward
and specifies a target group.
actions
- An action. Each action has the type forward
and specifies a target group.public String toString()
toString
in class Object
Object.toString()
public CreateRuleRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.