public static interface SampledHTTPRequest.Builder extends CopyableBuilder<SampledHTTPRequest.Builder,SampledHTTPRequest>
Modifier and Type | Method and Description |
---|---|
SampledHTTPRequest.Builder |
action(String action)
The action for the
Rule that the request matched: ALLOW , BLOCK , or
COUNT . |
default SampledHTTPRequest.Builder |
request(Consumer<HTTPRequest.Builder> request)
A complex type that contains detailed information about the request.
|
SampledHTTPRequest.Builder |
request(HTTPRequest request)
A complex type that contains detailed information about the request.
|
SampledHTTPRequest.Builder |
timestamp(Instant timestamp)
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
|
SampledHTTPRequest.Builder |
weight(Long weight)
A value that indicates how one result in the response relates proportionally to other results in the
response.
|
copy
apply, build
SampledHTTPRequest.Builder request(HTTPRequest request)
A complex type that contains detailed information about the request.
request
- A complex type that contains detailed information about the request.default SampledHTTPRequest.Builder request(Consumer<HTTPRequest.Builder> request)
A complex type that contains detailed information about the request.
This is a convenience that creates an instance of theHTTPRequest.Builder
avoiding the need to create
one manually via HTTPRequest.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to request(HTTPRequest)
.request
- a consumer that will call methods on HTTPRequest.Builder
request(HTTPRequest)
SampledHTTPRequest.Builder weight(Long weight)
A value that indicates how one result in the response relates proportionally to other results in the
response. A result that has a weight of 2
represents roughly twice as many CloudFront web
requests as a result that has a weight of 1
.
weight
- A value that indicates how one result in the response relates proportionally to other results in the
response. A result that has a weight of 2
represents roughly twice as many CloudFront web
requests as a result that has a weight of 1
.SampledHTTPRequest.Builder timestamp(Instant timestamp)
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
timestamp
- The time at which AWS WAF received the request from your AWS resource, in Unix time format (in
seconds).SampledHTTPRequest.Builder action(String action)
The action for the Rule
that the request matched: ALLOW
, BLOCK
, or
COUNT
.
action
- The action for the Rule
that the request matched: ALLOW
, BLOCK
,
or COUNT
.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.