@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 condition value.
|
int |
hashCode() |
void |
setField(String field)
The name of the field.
|
void |
setValues(Collection<String> values)
The condition value.
|
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 condition value.
|
RuleCondition |
withValues(String... values)
The condition value.
|
public void setField(String field)
The name of the field. The possible values are host-header and path-pattern.
field - The name of the field. The possible values are host-header and path-pattern.public String getField()
The name of the field. The possible values are host-header and path-pattern.
host-header and path-pattern.public RuleCondition withField(String field)
The name of the field. The possible values are host-header and path-pattern.
field - The name of the field. The possible values are host-header and path-pattern.public List<String> getValues()
The condition value.
If the field name is host-header, you can specify a single host name (for example, my.example.com).
A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following
characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
- .
* (matches 0 or more characters)
? (matches exactly 1 character)
If the field name is path-pattern, you can specify a single path pattern (for example, /img/*). A
path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of the following
characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
* (matches 0 or more characters)
? (matches exactly 1 character)
If the field name is host-header, you can specify a single host name (for example,
my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can contain
any of the following characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
- .
(matches 0 or more characters)
? (matches exactly 1 character)
If the field name is path-pattern, you can specify a single path pattern (for example,
/img/*). A path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of
the following characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
(matches 0 or more characters)
? (matches exactly 1 character)
public void setValues(Collection<String> values)
The condition value.
If the field name is host-header, you can specify a single host name (for example, my.example.com).
A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following
characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
- .
* (matches 0 or more characters)
? (matches exactly 1 character)
If the field name is path-pattern, you can specify a single path pattern (for example, /img/*). A
path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of the following
characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
* (matches 0 or more characters)
? (matches exactly 1 character)
values - The condition value.
If the field name is host-header, you can specify a single host name (for example,
my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can contain
any of the following characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
- .
(matches 0 or more characters)
? (matches exactly 1 character)
If the field name is path-pattern, you can specify a single path pattern (for example,
/img/*). A path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of
the following characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
(matches 0 or more characters)
? (matches exactly 1 character)
public RuleCondition withValues(String... values)
The condition value.
If the field name is host-header, you can specify a single host name (for example, my.example.com).
A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following
characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
- .
* (matches 0 or more characters)
? (matches exactly 1 character)
If the field name is path-pattern, you can specify a single path pattern (for example, /img/*). A
path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of the following
characters. You can include up to three wildcard 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
setValues(java.util.Collection) or withValues(java.util.Collection) if you want to override the
existing values.
values - The condition value.
If the field name is host-header, you can specify a single host name (for example,
my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can contain
any of the following characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
- .
(matches 0 or more characters)
? (matches exactly 1 character)
If the field name is path-pattern, you can specify a single path pattern (for example,
/img/*). A path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of
the following characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
(matches 0 or more characters)
? (matches exactly 1 character)
public RuleCondition withValues(Collection<String> values)
The condition value.
If the field name is host-header, you can specify a single host name (for example, my.example.com).
A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following
characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
- .
* (matches 0 or more characters)
? (matches exactly 1 character)
If the field name is path-pattern, you can specify a single path pattern (for example, /img/*). A
path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of the following
characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
* (matches 0 or more characters)
? (matches exactly 1 character)
values - The condition value.
If the field name is host-header, you can specify a single host name (for example,
my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can contain
any of the following characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
- .
(matches 0 or more characters)
? (matches exactly 1 character)
If the field name is path-pattern, you can specify a single path pattern (for example,
/img/*). A path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of
the following characters. You can include up to three wildcard characters.
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
(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.