Interface GetSampledRequestsRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<GetSampledRequestsRequest.Builder,GetSampledRequestsRequest>,SdkBuilder<GetSampledRequestsRequest.Builder,GetSampledRequestsRequest>,SdkPojo,SdkRequest.Builder,Wafv2Request.Builder
- Enclosing class:
- GetSampledRequestsRequest
public static interface GetSampledRequestsRequest.Builder extends Wafv2Request.Builder, SdkPojo, CopyableBuilder<GetSampledRequestsRequest.Builder,GetSampledRequestsRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetSampledRequestsRequest.BuildermaxItems(Long maxItems)The number of requests that you want WAF to return from among the first 5,000 requests that your Amazon Web Services resource received during the time range.GetSampledRequestsRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)GetSampledRequestsRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)GetSampledRequestsRequest.BuilderruleMetricName(String ruleMetricName)The metric name assigned to theRuleorRuleGroupdimension for which you want a sample of requests.GetSampledRequestsRequest.Builderscope(String scope)Specifies whether this is for an Amazon CloudFront distribution or for a regional application.GetSampledRequestsRequest.Builderscope(Scope scope)Specifies whether this is for an Amazon CloudFront distribution or for a regional application.default GetSampledRequestsRequest.BuildertimeWindow(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.GetSampledRequestsRequest.BuildertimeWindow(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.GetSampledRequestsRequest.BuilderwebAclArn(String webAclArn)The Amazon resource name (ARN) of theWebACLfor which you want a sample of requests.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
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.services.wafv2.model.Wafv2Request.Builder
build
-
-
-
-
Method Detail
-
webAclArn
GetSampledRequestsRequest.Builder webAclArn(String webAclArn)
The Amazon resource name (ARN) of the
WebACLfor which you want a sample of requests.- Parameters:
webAclArn- The Amazon resource name (ARN) of theWebACLfor which you want a sample of requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleMetricName
GetSampledRequestsRequest.Builder ruleMetricName(String ruleMetricName)
The metric name assigned to the
RuleorRuleGroupdimension for which you want a sample of requests.- Parameters:
ruleMetricName- The metric name assigned to theRuleorRuleGroupdimension for which you want a sample of requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scope
GetSampledRequestsRequest.Builder scope(String scope)
Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance.
To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
-
CLI - Specify the Region when you use the CloudFront scope:
--scope=CLOUDFRONT --region=us-east-1. -
API and SDKs - For all calls, use the Region endpoint us-east-1.
- Parameters:
scope- Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance.To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
-
CLI - Specify the Region when you use the CloudFront scope:
--scope=CLOUDFRONT --region=us-east-1. -
API and SDKs - For all calls, use the Region endpoint us-east-1.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Scope,Scope
-
-
scope
GetSampledRequestsRequest.Builder scope(Scope scope)
Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance.
To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
-
CLI - Specify the Region when you use the CloudFront scope:
--scope=CLOUDFRONT --region=us-east-1. -
API and SDKs - For all calls, use the Region endpoint us-east-1.
- Parameters:
scope- Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance.To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
-
CLI - Specify the Region when you use the CloudFront scope:
--scope=CLOUDFRONT --region=us-east-1. -
API and SDKs - For all calls, use the Region endpoint us-east-1.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Scope,Scope
-
-
timeWindow
GetSampledRequestsRequest.Builder timeWindow(TimeWindow 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. If you specify a start time that's earlier than three hours ago, WAF sets it to three hours ago.- 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. If you specify a start time that's earlier than three hours ago, WAF sets it to three hours ago.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeWindow
default GetSampledRequestsRequest.Builder timeWindow(Consumer<TimeWindow.Builder> 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. If you specify a start time that's earlier than three hours ago, WAF sets it to three hours ago.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)
-
maxItems
GetSampledRequestsRequest.Builder maxItems(Long maxItems)
The number of requests that you want WAF to return from among the first 5,000 requests that your Amazon Web Services 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 WAF to return from among the first 5,000 requests that your Amazon Web Services 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
GetSampledRequestsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-