public static interface RuleCondition.Builder extends SdkPojo, CopyableBuilder<RuleCondition.Builder,RuleCondition>
equalsBySdkFields, sdkFieldscopyapplyMutation, buildRuleCondition.Builder field(String field)
The field in the HTTP request. The following are the possible values:
http-header
http-request-method
host-header
path-pattern
query-string
source-ip
field - The field in the HTTP request. The following are the possible values:
http-header
http-request-method
host-header
path-pattern
query-string
source-ip
RuleCondition.Builder values(Collection<String> values)
The condition value. Specify only when Field is host-header or
path-pattern. Alternatively, to specify multiple host names or multiple path patterns, use
HostHeaderConfig or PathPatternConfig.
If Field is host-header and you are not using HostHeaderConfig, you
can specify a single host name (for example, my.example.com) in Values. A host name is case
insensitive, can be up to 128 characters in length, and can contain any of the following characters.
A-Z, a-z, 0-9
- .
* (matches 0 or more characters)
? (matches exactly 1 character)
If Field is path-pattern and you are not using PathPatternConfig, you
can specify a single path pattern (for example, /img/*) in Values. A path pattern is
case-sensitive, can be up to 128 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)
values - The condition value. Specify only when Field is host-header or
path-pattern. Alternatively, to specify multiple host names or multiple path patterns,
use HostHeaderConfig or PathPatternConfig.
If Field is host-header and you are not using HostHeaderConfig,
you can specify a single host name (for example, my.example.com) in Values. A host name
is case insensitive, can be up to 128 characters in length, and can contain any of the following
characters.
A-Z, a-z, 0-9
- .
* (matches 0 or more characters)
? (matches exactly 1 character)
If Field is path-pattern and you are not using
PathPatternConfig, you can specify a single path pattern (for example, /img/*) in
Values. A path pattern is case-sensitive, can be up to 128 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)
RuleCondition.Builder values(String... values)
The condition value. Specify only when Field is host-header or
path-pattern. Alternatively, to specify multiple host names or multiple path patterns, use
HostHeaderConfig or PathPatternConfig.
If Field is host-header and you are not using HostHeaderConfig, you
can specify a single host name (for example, my.example.com) in Values. A host name is case
insensitive, can be up to 128 characters in length, and can contain any of the following characters.
A-Z, a-z, 0-9
- .
* (matches 0 or more characters)
? (matches exactly 1 character)
If Field is path-pattern and you are not using PathPatternConfig, you
can specify a single path pattern (for example, /img/*) in Values. A path pattern is
case-sensitive, can be up to 128 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)
values - The condition value. Specify only when Field is host-header or
path-pattern. Alternatively, to specify multiple host names or multiple path patterns,
use HostHeaderConfig or PathPatternConfig.
If Field is host-header and you are not using HostHeaderConfig,
you can specify a single host name (for example, my.example.com) in Values. A host name
is case insensitive, can be up to 128 characters in length, and can contain any of the following
characters.
A-Z, a-z, 0-9
- .
* (matches 0 or more characters)
? (matches exactly 1 character)
If Field is path-pattern and you are not using
PathPatternConfig, you can specify a single path pattern (for example, /img/*) in
Values. A path pattern is case-sensitive, can be up to 128 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)
RuleCondition.Builder hostHeaderConfig(HostHeaderConditionConfig hostHeaderConfig)
Information for a host header condition. Specify only when Field is host-header.
hostHeaderConfig - Information for a host header condition. Specify only when Field is
host-header.default RuleCondition.Builder hostHeaderConfig(Consumer<HostHeaderConditionConfig.Builder> hostHeaderConfig)
Information for a host header condition. Specify only when Field is host-header.
HostHeaderConditionConfig.Builder
avoiding the need to create one manually via HostHeaderConditionConfig.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to hostHeaderConfig(HostHeaderConditionConfig).
hostHeaderConfig - a consumer that will call methods on HostHeaderConditionConfig.BuilderhostHeaderConfig(HostHeaderConditionConfig)RuleCondition.Builder pathPatternConfig(PathPatternConditionConfig pathPatternConfig)
Information for a path pattern condition. Specify only when Field is path-pattern.
pathPatternConfig - Information for a path pattern condition. Specify only when Field is
path-pattern.default RuleCondition.Builder pathPatternConfig(Consumer<PathPatternConditionConfig.Builder> pathPatternConfig)
Information for a path pattern condition. Specify only when Field is path-pattern.
PathPatternConditionConfig.Builder
avoiding the need to create one manually via PathPatternConditionConfig.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to pathPatternConfig(PathPatternConditionConfig).
pathPatternConfig - a consumer that will call methods on PathPatternConditionConfig.BuilderpathPatternConfig(PathPatternConditionConfig)RuleCondition.Builder httpHeaderConfig(HttpHeaderConditionConfig httpHeaderConfig)
Information for an HTTP header condition. Specify only when Field is http-header.
httpHeaderConfig - Information for an HTTP header condition. Specify only when Field is
http-header.default RuleCondition.Builder httpHeaderConfig(Consumer<HttpHeaderConditionConfig.Builder> httpHeaderConfig)
Information for an HTTP header condition. Specify only when Field is http-header.
HttpHeaderConditionConfig.Builder
avoiding the need to create one manually via HttpHeaderConditionConfig.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to httpHeaderConfig(HttpHeaderConditionConfig).
httpHeaderConfig - a consumer that will call methods on HttpHeaderConditionConfig.BuilderhttpHeaderConfig(HttpHeaderConditionConfig)RuleCondition.Builder queryStringConfig(QueryStringConditionConfig queryStringConfig)
Information for a query string condition. Specify only when Field is query-string.
queryStringConfig - Information for a query string condition. Specify only when Field is
query-string.default RuleCondition.Builder queryStringConfig(Consumer<QueryStringConditionConfig.Builder> queryStringConfig)
Information for a query string condition. Specify only when Field is query-string.
QueryStringConditionConfig.Builder
avoiding the need to create one manually via QueryStringConditionConfig.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to queryStringConfig(QueryStringConditionConfig).
queryStringConfig - a consumer that will call methods on QueryStringConditionConfig.BuilderqueryStringConfig(QueryStringConditionConfig)RuleCondition.Builder httpRequestMethodConfig(HttpRequestMethodConditionConfig httpRequestMethodConfig)
Information for an HTTP method condition. Specify only when Field is
http-request-method.
httpRequestMethodConfig - Information for an HTTP method condition. Specify only when Field is
http-request-method.default RuleCondition.Builder httpRequestMethodConfig(Consumer<HttpRequestMethodConditionConfig.Builder> httpRequestMethodConfig)
Information for an HTTP method condition. Specify only when Field is
http-request-method.
HttpRequestMethodConditionConfig.Builder
avoiding the need to create one manually via HttpRequestMethodConditionConfig.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to httpRequestMethodConfig(HttpRequestMethodConditionConfig).
httpRequestMethodConfig - a consumer that will call methods on HttpRequestMethodConditionConfig.BuilderhttpRequestMethodConfig(HttpRequestMethodConditionConfig)RuleCondition.Builder sourceIpConfig(SourceIpConditionConfig sourceIpConfig)
Information for a source IP condition. Specify only when Field is source-ip.
sourceIpConfig - Information for a source IP condition. Specify only when Field is source-ip.default RuleCondition.Builder sourceIpConfig(Consumer<SourceIpConditionConfig.Builder> sourceIpConfig)
Information for a source IP condition. Specify only when Field is source-ip.
SourceIpConditionConfig.Builder avoiding
the need to create one manually via SourceIpConditionConfig.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to sourceIpConfig(SourceIpConditionConfig).
sourceIpConfig - a consumer that will call methods on SourceIpConditionConfig.BuildersourceIpConfig(SourceIpConditionConfig)Copyright © 2022. All rights reserved.