Interface GetSampledRequestsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetSampledRequestsResponse.Builder,
,GetSampledRequestsResponse> SdkBuilder<GetSampledRequestsResponse.Builder,
,GetSampledRequestsResponse> SdkPojo
,SdkResponse.Builder
,WafResponse.Builder
- Enclosing class:
GetSampledRequestsResponse
-
Method Summary
Modifier and TypeMethodDescriptionpopulationSize
(Long populationSize) The total number of requests from whichGetSampledRequests
got a sample ofMaxItems
requests.sampledRequests
(Collection<SampledHTTPRequest> sampledRequests) A complex type that contains detailed information about each of the requests in the sample.sampledRequests
(Consumer<SampledHTTPRequest.Builder>... sampledRequests) A complex type that contains detailed information about each of the requests in the sample.sampledRequests
(SampledHTTPRequest... sampledRequests) A complex type that contains detailed information about each of the requests in the sample.timeWindow
(Consumer<TimeWindow.Builder> timeWindow) Usually,TimeWindow
is the time range that you specified in theGetSampledRequests
request.timeWindow
(TimeWindow timeWindow) Usually,TimeWindow
is the time range that you specified in theGetSampledRequests
request.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
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
Methods inherited from interface software.amazon.awssdk.services.waf.model.WafResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
sampledRequests
A complex type that contains detailed information about each of the requests in the sample.
- Parameters:
sampledRequests
- A complex type that contains detailed information about each of the requests in the sample.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sampledRequests
A complex type that contains detailed information about each of the requests in the sample.
- Parameters:
sampledRequests
- A complex type that contains detailed information about each of the requests in the sample.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sampledRequests
GetSampledRequestsResponse.Builder sampledRequests(Consumer<SampledHTTPRequest.Builder>... sampledRequests) A complex type that contains detailed information about each of the requests in the sample.
This is a convenience method that creates an instance of theSampledHTTPRequest.Builder
avoiding the need to create one manually viaSampledHTTPRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosampledRequests(List<SampledHTTPRequest>)
.- Parameters:
sampledRequests
- a consumer that will call methods onSampledHTTPRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
populationSize
The total number of requests from which
GetSampledRequests
got a sample ofMaxItems
requests. IfPopulationSize
is less thanMaxItems
, the sample includes every request that your AWS resource received during the specified time range.- Parameters:
populationSize
- The total number of requests from whichGetSampledRequests
got a sample ofMaxItems
requests. IfPopulationSize
is less thanMaxItems
, the sample includes every request that your AWS resource received during the specified time range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeWindow
Usually,
TimeWindow
is the time range that you specified in theGetSampledRequests
request. However, if your AWS resource received more than 5,000 requests during the time range that you specified in the request,GetSampledRequests
returns the time range for the first 5,000 requests. Times are in Coordinated Universal Time (UTC) format.- Parameters:
timeWindow
- Usually,TimeWindow
is the time range that you specified in theGetSampledRequests
request. However, if your AWS resource received more than 5,000 requests during the time range that you specified in the request,GetSampledRequests
returns the time range for the first 5,000 requests. Times are in Coordinated Universal Time (UTC) format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeWindow
Usually,
This is a convenience method that creates an instance of theTimeWindow
is the time range that you specified in theGetSampledRequests
request. However, if your AWS resource received more than 5,000 requests during the time range that you specified in the request,GetSampledRequests
returns the time range for the first 5,000 requests. Times are in Coordinated Universal Time (UTC) format.TimeWindow.Builder
avoiding the need to create one manually viaTimeWindow.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totimeWindow(TimeWindow)
.- Parameters:
timeWindow
- a consumer that will call methods onTimeWindow.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-