public class RuleCondition extends Object implements Serializable, Cloneable
Information about a condition for a rule.
| Constructor and Description |
|---|
RuleCondition() |
| Modifier and Type | Method and Description |
|---|---|
RuleCondition |
clone() |
boolean |
equals(Object obj) |
String |
getField()
The name of the field.
|
List<String> |
getValues()
The values for the field.
|
int |
hashCode() |
void |
setField(String field)
The name of the field.
|
void |
setValues(Collection<String> values)
The values for the field.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RuleCondition |
withField(String field)
The name of the field.
|
RuleCondition |
withValues(Collection<String> values)
The values for the field.
|
RuleCondition |
withValues(String... values)
The values for the field.
|
public void setField(String field)
The name of the field. The possible value is path-pattern.
field - The name of the field. The possible value is
path-pattern.public String getField()
The name of the field. The possible value is path-pattern.
path-pattern.public RuleCondition withField(String field)
The name of the field. The possible value is path-pattern.
field - The name of the field. The possible value is
path-pattern.public List<String> getValues()
The values for the field.
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 &amp;)
* (matches 0 or more characters)
? (matches exactly 1 character)
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 &amp;)
(matches 0 or more characters)
? (matches exactly 1 character)
public void setValues(Collection<String> values)
The values for the field.
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 &amp;)
* (matches 0 or more characters)
? (matches exactly 1 character)
values - The values for the field.
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 &amp;)
(matches 0 or more characters)
? (matches exactly 1 character)
public RuleCondition withValues(String... values)
The values for the field.
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 &amp;)
* (matches 0 or more characters)
? (matches exactly 1 character)
NOTE: This method appends the values to the existing list (if
any). Use setValues(java.util.Collection) or
withValues(java.util.Collection) if you want to override the
existing values.
values - The values for the field.
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 &amp;)
(matches 0 or more characters)
? (matches exactly 1 character)
public RuleCondition withValues(Collection<String> values)
The values for the field.
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 &amp;)
* (matches 0 or more characters)
? (matches exactly 1 character)
values - The values for the field.
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 &amp;)
(matches 0 or more characters)
? (matches exactly 1 character)
public String toString()
toString in class ObjectObject.toString()public RuleCondition clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.