CopyableBuilder<RuleCondition.Builder,RuleCondition>
, SdkBuilder<RuleCondition.Builder,RuleCondition>
public static interface RuleCondition.Builder extends CopyableBuilder<RuleCondition.Builder,RuleCondition>
Modifier and Type | Method | Description |
---|---|---|
RuleCondition.Builder |
field(String field) |
The name of the field.
|
RuleCondition.Builder |
values(String... values) |
The condition value.
|
RuleCondition.Builder |
values(Collection<String> values) |
The condition value.
|
copy
apply, build
RuleCondition.Builder field(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
.RuleCondition.Builder values(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. 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)
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)
RuleCondition.Builder values(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)
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. 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)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.