Interface GetSampledRequestsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetSampledRequestsResponse.Builder,GetSampledRequestsResponse>,SdkBuilder<GetSampledRequestsResponse.Builder,GetSampledRequestsResponse>,SdkPojo,SdkResponse.Builder,Wafv2Response.Builder
- Enclosing class:
- GetSampledRequestsResponse
public static interface GetSampledRequestsResponse.Builder extends Wafv2Response.Builder, SdkPojo, CopyableBuilder<GetSampledRequestsResponse.Builder,GetSampledRequestsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetSampledRequestsResponse.BuilderpopulationSize(Long populationSize)The total number of requests from whichGetSampledRequestsgot a sample ofMaxItemsrequests.GetSampledRequestsResponse.BuildersampledRequests(Collection<SampledHTTPRequest> sampledRequests)A complex type that contains detailed information about each of the requests in the sample.GetSampledRequestsResponse.BuildersampledRequests(Consumer<SampledHTTPRequest.Builder>... sampledRequests)A complex type that contains detailed information about each of the requests in the sample.GetSampledRequestsResponse.BuildersampledRequests(SampledHTTPRequest... sampledRequests)A complex type that contains detailed information about each of the requests in the sample.default GetSampledRequestsResponse.BuildertimeWindow(Consumer<TimeWindow.Builder> timeWindow)Usually,TimeWindowis the time range that you specified in theGetSampledRequestsrequest.GetSampledRequestsResponse.BuildertimeWindow(TimeWindow timeWindow)Usually,TimeWindowis the time range that you specified in theGetSampledRequestsrequest.-
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, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Methods inherited from interface software.amazon.awssdk.services.wafv2.model.Wafv2Response.Builder
build, responseMetadata, responseMetadata
-
-
-
-
Method Detail
-
sampledRequests
GetSampledRequestsResponse.Builder sampledRequests(Collection<SampledHTTPRequest> 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(SampledHTTPRequest... 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.Builderavoiding the need to create one manually viaSampledHTTPRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#sampledRequests(List.) - 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:
#sampledRequests(java.util.Collection)
-
populationSize
GetSampledRequestsResponse.Builder populationSize(Long populationSize)
The total number of requests from which
GetSampledRequestsgot a sample ofMaxItemsrequests. IfPopulationSizeis less thanMaxItems, the sample includes every request that your Amazon Web Services resource received during the specified time range.- Parameters:
populationSize- The total number of requests from whichGetSampledRequestsgot a sample ofMaxItemsrequests. IfPopulationSizeis less thanMaxItems, the sample includes every request that your Amazon Web Services resource received during the specified time range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeWindow
GetSampledRequestsResponse.Builder timeWindow(TimeWindow timeWindow)
Usually,
TimeWindowis the time range that you specified in theGetSampledRequestsrequest. However, if your Amazon Web Services resource received more than 5,000 requests during the time range that you specified in the request,GetSampledRequestsreturns the time range for the first 5,000 requests. Times are in Coordinated Universal Time (UTC) format.- Parameters:
timeWindow- Usually,TimeWindowis the time range that you specified in theGetSampledRequestsrequest. However, if your Amazon Web Services resource received more than 5,000 requests during the time range that you specified in the request,GetSampledRequestsreturns 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
default GetSampledRequestsResponse.Builder timeWindow(Consumer<TimeWindow.Builder> timeWindow)
Usually,
This is a convenience method that creates an instance of theTimeWindowis the time range that you specified in theGetSampledRequestsrequest. However, if your Amazon Web Services resource received more than 5,000 requests during the time range that you specified in the request,GetSampledRequestsreturns the time range for the first 5,000 requests. Times are in Coordinated Universal Time (UTC) format.TimeWindow.Builderavoiding the need to create one manually viaTimeWindow.builder().When the
Consumercompletes,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:
timeWindow(TimeWindow)
-
-