@Generated(value="software.amazon.awssdk:codegen") public class RuleCondition extends Object implements ToCopyableBuilder<RuleCondition.Builder,RuleCondition>
Information about a condition for a rule.
Modifier and Type | Class and Description |
---|---|
static interface |
RuleCondition.Builder |
Modifier and Type | Method and Description |
---|---|
static RuleCondition.Builder |
builder() |
boolean |
equals(Object obj) |
String |
field()
The name of the field.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
static Class<? extends RuleCondition.Builder> |
serializableBuilderClass() |
RuleCondition.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
List<String> |
values()
The condition value.
|
copy
public String field()
The name of the field. The possible values are host-header
and path-pattern
.
host-header
and path-pattern
.public List<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. Note that 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. Note that you can include up to three wildcard characters.
A-Z, a-z, 0-9
_ - . $ / ~ " ' @ : +
& (using &)
* (matches 0 or more characters)
? (matches exactly 1 character)
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
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. Note that 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. Note that 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.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<RuleCondition.Builder,RuleCondition>
public static RuleCondition.Builder builder()
public static Class<? extends RuleCondition.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.