/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.waf.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetSampledRequestsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The WebACLId of the WebACL for which you want GetSampledRequests to return * a sample of requests. *

*/ private String webAclId; /** *

* RuleId is one of three values: *

* */ private String ruleId; /** *

* The start date and time and the end date and time of the range for which you want GetSampledRequests * to 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. *

*/ private TimeWindow timeWindow; /** *

* 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, * GetSampledRequests returns information about all of them. *

*/ private Long maxItems; /** *

* The WebACLId of the WebACL for which you want GetSampledRequests to return * a sample of requests. *

* * @param webAclId * The WebACLId of the WebACL for which you want GetSampledRequests to * return a sample of requests. */ public void setWebAclId(String webAclId) { this.webAclId = webAclId; } /** *

* The WebACLId of the WebACL for which you want GetSampledRequests to return * a sample of requests. *

* * @return The WebACLId of the WebACL for which you want GetSampledRequests * to return a sample of requests. */ public String getWebAclId() { return this.webAclId; } /** *

* The WebACLId of the WebACL for which you want GetSampledRequests to return * a sample of requests. *

* * @param webAclId * The WebACLId of the WebACL for which you want GetSampledRequests to * return a sample of requests. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSampledRequestsRequest withWebAclId(String webAclId) { setWebAclId(webAclId); return this; } /** *

* RuleId is one of three values: *

* * * @param ruleId * RuleId is one of three values:

*