Interface GetSampledRequestsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<GetSampledRequestsRequest.Builder,,GetSampledRequestsRequest> SdkBuilder<GetSampledRequestsRequest.Builder,,GetSampledRequestsRequest> SdkPojo,SdkRequest.Builder,WafRequest.Builder
- Enclosing class:
GetSampledRequestsRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.RuleIdis one of three values:timeWindow(Consumer<TimeWindow.Builder> timeWindow) The start date and time and the end date and time of the range for which you wantGetSampledRequeststo return a sample of requests.timeWindow(TimeWindow timeWindow) The start date and time and the end date and time of the range for which you wantGetSampledRequeststo return a sample of requests.TheWebACLIdof theWebACLfor which you wantGetSampledRequeststo return a sample of requests.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.waf.model.WafRequest.Builder
build
-
Method Details
-
webAclId
The
WebACLIdof theWebACLfor which you wantGetSampledRequeststo return a sample of requests.- Parameters:
webAclId- TheWebACLIdof theWebACLfor which you wantGetSampledRequeststo return a sample of requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleId
RuleIdis one of three values:-
The
RuleIdof theRuleor theRuleGroupIdof theRuleGroupfor which you wantGetSampledRequeststo return a sample of requests. -
Default_Action, which causesGetSampledRequeststo return a sample of the requests that didn't match any of the rules in the specifiedWebACL.
- Parameters:
ruleId-RuleIdis one of three values:-
The
RuleIdof theRuleor theRuleGroupIdof theRuleGroupfor which you wantGetSampledRequeststo return a sample of requests. -
Default_Action, which causesGetSampledRequeststo return a sample of the requests that didn't match any of the rules in the specifiedWebACL.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
timeWindow
The start date and time and the end date and time of the range for which you want
GetSampledRequeststo return a sample of requests. You must specify the times in Coordinated Universal Time (UTC) format. UTC format includes the special designator,Z. For example,"2016-09-27T14:50Z". You can specify any time range in the previous three hours.- Parameters:
timeWindow- The start date and time and the end date and time of the range for which you wantGetSampledRequeststo return a sample of requests. You must specify the times in Coordinated Universal Time (UTC) format. UTC format includes the special designator,Z. For example,"2016-09-27T14:50Z". You can specify any time range in the previous three hours.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeWindow
The start date and time and the end date and time of the range for which you want
This is a convenience method that creates an instance of theGetSampledRequeststo return a sample of requests. You must specify the times in Coordinated Universal Time (UTC) format. UTC format includes the special designator,Z. For example,"2016-09-27T14:50Z". You can specify any time range in the previous three hours.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:
-
maxItems
The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range. If your resource received fewer requests than the value of
MaxItems,GetSampledRequestsreturns information about all of them.- Parameters:
maxItems- The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range. If your resource received fewer requests than the value ofMaxItems,GetSampledRequestsreturns information about all of them.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
GetSampledRequestsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
GetSampledRequestsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-