Interface RuleCondition.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RuleCondition.Builder,
,RuleCondition> SdkBuilder<RuleCondition.Builder,
,RuleCondition> SdkPojo
- Enclosing class:
RuleCondition
-
Method Summary
Modifier and TypeMethodDescriptionThe field in the HTTP request.default RuleCondition.Builder
hostHeaderConfig
(Consumer<HostHeaderConditionConfig.Builder> hostHeaderConfig) Information for a host header condition.hostHeaderConfig
(HostHeaderConditionConfig hostHeaderConfig) Information for a host header condition.default RuleCondition.Builder
httpHeaderConfig
(Consumer<HttpHeaderConditionConfig.Builder> httpHeaderConfig) Information for an HTTP header condition.httpHeaderConfig
(HttpHeaderConditionConfig httpHeaderConfig) Information for an HTTP header condition.default RuleCondition.Builder
httpRequestMethodConfig
(Consumer<HttpRequestMethodConditionConfig.Builder> httpRequestMethodConfig) Information for an HTTP method condition.httpRequestMethodConfig
(HttpRequestMethodConditionConfig httpRequestMethodConfig) Information for an HTTP method condition.default RuleCondition.Builder
pathPatternConfig
(Consumer<PathPatternConditionConfig.Builder> pathPatternConfig) Information for a path pattern condition.pathPatternConfig
(PathPatternConditionConfig pathPatternConfig) Information for a path pattern condition.default RuleCondition.Builder
queryStringConfig
(Consumer<QueryStringConditionConfig.Builder> queryStringConfig) Information for a query string condition.queryStringConfig
(QueryStringConditionConfig queryStringConfig) Information for a query string condition.default RuleCondition.Builder
sourceIpConfig
(Consumer<SourceIpConditionConfig.Builder> sourceIpConfig) Information for a source IP condition.sourceIpConfig
(SourceIpConditionConfig sourceIpConfig) Information for a source IP condition.The condition value.values
(Collection<String> values) The condition value.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
- Parameters:
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
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
values
The condition value. Specify only when
Field
ishost-header
orpath-pattern
. Alternatively, to specify multiple host names or multiple path patterns, useHostHeaderConfig
orPathPatternConfig
.If
Field
ishost-header
and you are not usingHostHeaderConfig
, you can specify a single host name (for example, my.example.com) inValues
. 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
ispath-pattern
and you are not usingPathPatternConfig
, you can specify a single path pattern (for example, /img/*) inValues
. 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)
- Parameters:
values
- The condition value. Specify only whenField
ishost-header
orpath-pattern
. Alternatively, to specify multiple host names or multiple path patterns, useHostHeaderConfig
orPathPatternConfig
.If
Field
ishost-header
and you are not usingHostHeaderConfig
, you can specify a single host name (for example, my.example.com) inValues
. 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
ispath-pattern
and you are not usingPathPatternConfig
, you can specify a single path pattern (for example, /img/*) inValues
. 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)
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
values
The condition value. Specify only when
Field
ishost-header
orpath-pattern
. Alternatively, to specify multiple host names or multiple path patterns, useHostHeaderConfig
orPathPatternConfig
.If
Field
ishost-header
and you are not usingHostHeaderConfig
, you can specify a single host name (for example, my.example.com) inValues
. 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
ispath-pattern
and you are not usingPathPatternConfig
, you can specify a single path pattern (for example, /img/*) inValues
. 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)
- Parameters:
values
- The condition value. Specify only whenField
ishost-header
orpath-pattern
. Alternatively, to specify multiple host names or multiple path patterns, useHostHeaderConfig
orPathPatternConfig
.If
Field
ishost-header
and you are not usingHostHeaderConfig
, you can specify a single host name (for example, my.example.com) inValues
. 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
ispath-pattern
and you are not usingPathPatternConfig
, you can specify a single path pattern (for example, /img/*) inValues
. 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)
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
hostHeaderConfig
Information for a host header condition. Specify only when
Field
ishost-header
.- Parameters:
hostHeaderConfig
- Information for a host header condition. Specify only whenField
ishost-header
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostHeaderConfig
default RuleCondition.Builder hostHeaderConfig(Consumer<HostHeaderConditionConfig.Builder> hostHeaderConfig) Information for a host header condition. Specify only when
This is a convenience method that creates an instance of theField
ishost-header
.HostHeaderConditionConfig.Builder
avoiding the need to create one manually viaHostHeaderConditionConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohostHeaderConfig(HostHeaderConditionConfig)
.- Parameters:
hostHeaderConfig
- a consumer that will call methods onHostHeaderConditionConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
pathPatternConfig
Information for a path pattern condition. Specify only when
Field
ispath-pattern
.- Parameters:
pathPatternConfig
- Information for a path pattern condition. Specify only whenField
ispath-pattern
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pathPatternConfig
default RuleCondition.Builder pathPatternConfig(Consumer<PathPatternConditionConfig.Builder> pathPatternConfig) Information for a path pattern condition. Specify only when
This is a convenience method that creates an instance of theField
ispath-pattern
.PathPatternConditionConfig.Builder
avoiding the need to create one manually viaPathPatternConditionConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topathPatternConfig(PathPatternConditionConfig)
.- Parameters:
pathPatternConfig
- a consumer that will call methods onPathPatternConditionConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
httpHeaderConfig
Information for an HTTP header condition. Specify only when
Field
ishttp-header
.- Parameters:
httpHeaderConfig
- Information for an HTTP header condition. Specify only whenField
ishttp-header
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
httpHeaderConfig
default RuleCondition.Builder httpHeaderConfig(Consumer<HttpHeaderConditionConfig.Builder> httpHeaderConfig) Information for an HTTP header condition. Specify only when
This is a convenience method that creates an instance of theField
ishttp-header
.HttpHeaderConditionConfig.Builder
avoiding the need to create one manually viaHttpHeaderConditionConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohttpHeaderConfig(HttpHeaderConditionConfig)
.- Parameters:
httpHeaderConfig
- a consumer that will call methods onHttpHeaderConditionConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
queryStringConfig
Information for a query string condition. Specify only when
Field
isquery-string
.- Parameters:
queryStringConfig
- Information for a query string condition. Specify only whenField
isquery-string
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryStringConfig
default RuleCondition.Builder queryStringConfig(Consumer<QueryStringConditionConfig.Builder> queryStringConfig) Information for a query string condition. Specify only when
This is a convenience method that creates an instance of theField
isquery-string
.QueryStringConditionConfig.Builder
avoiding the need to create one manually viaQueryStringConditionConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toqueryStringConfig(QueryStringConditionConfig)
.- Parameters:
queryStringConfig
- a consumer that will call methods onQueryStringConditionConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
httpRequestMethodConfig
RuleCondition.Builder httpRequestMethodConfig(HttpRequestMethodConditionConfig httpRequestMethodConfig) Information for an HTTP method condition. Specify only when
Field
ishttp-request-method
.- Parameters:
httpRequestMethodConfig
- Information for an HTTP method condition. Specify only whenField
ishttp-request-method
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
httpRequestMethodConfig
default RuleCondition.Builder httpRequestMethodConfig(Consumer<HttpRequestMethodConditionConfig.Builder> httpRequestMethodConfig) Information for an HTTP method condition. Specify only when
This is a convenience method that creates an instance of theField
ishttp-request-method
.HttpRequestMethodConditionConfig.Builder
avoiding the need to create one manually viaHttpRequestMethodConditionConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohttpRequestMethodConfig(HttpRequestMethodConditionConfig)
.- Parameters:
httpRequestMethodConfig
- a consumer that will call methods onHttpRequestMethodConditionConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceIpConfig
Information for a source IP condition. Specify only when
Field
issource-ip
.- Parameters:
sourceIpConfig
- Information for a source IP condition. Specify only whenField
issource-ip
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceIpConfig
default RuleCondition.Builder sourceIpConfig(Consumer<SourceIpConditionConfig.Builder> sourceIpConfig) Information for a source IP condition. Specify only when
This is a convenience method that creates an instance of theField
issource-ip
.SourceIpConditionConfig.Builder
avoiding the need to create one manually viaSourceIpConditionConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosourceIpConfig(SourceIpConditionConfig)
.- Parameters:
sourceIpConfig
- a consumer that will call methods onSourceIpConditionConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-