Class GetSampledRequestsRequest

    • Constructor Detail

      • GetSampledRequestsRequest

        public GetSampledRequestsRequest()
    • Method Detail

      • setWebAclId

        public void setWebAclId​(String webAclId)

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

        Parameters:
        webAclId - The WebACLId of the WebACL for which you want GetSampledRequests to return a sample of requests.
      • getWebAclId

        public String getWebAclId()

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

        Returns:
        The WebACLId of the WebACL for which you want GetSampledRequests to return a sample of requests.
      • withWebAclId

        public GetSampledRequestsRequest withWebAclId​(String webAclId)

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

        Parameters:
        webAclId - The WebACLId of the WebACL for which you want GetSampledRequests to return a sample of requests.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setRuleId

        public void setRuleId​(String ruleId)

        RuleId is one of two values:

        • The RuleId of the Rule for which you want GetSampledRequests to return a sample of requests.
        • Default_Action, which causes GetSampledRequests to return a sample of the requests that didn't match any of the rules in the specified WebACL.
        Parameters:
        ruleId - RuleId is one of two values:

        • The RuleId of the Rule for which you want GetSampledRequests to return a sample of requests.
        • Default_Action, which causes GetSampledRequests to return a sample of the requests that didn't match any of the rules in the specified WebACL.
      • getRuleId

        public String getRuleId()

        RuleId is one of two values:

        • The RuleId of the Rule for which you want GetSampledRequests to return a sample of requests.
        • Default_Action, which causes GetSampledRequests to return a sample of the requests that didn't match any of the rules in the specified WebACL.
        Returns:
        RuleId is one of two values:

        • The RuleId of the Rule for which you want GetSampledRequests to return a sample of requests.
        • Default_Action, which causes GetSampledRequests to return a sample of the requests that didn't match any of the rules in the specified WebACL.
      • withRuleId

        public GetSampledRequestsRequest withRuleId​(String ruleId)

        RuleId is one of two values:

        • The RuleId of the Rule for which you want GetSampledRequests to return a sample of requests.
        • Default_Action, which causes GetSampledRequests to return a sample of the requests that didn't match any of the rules in the specified WebACL.
        Parameters:
        ruleId - RuleId is one of two values:

        • The RuleId of the Rule for which you want GetSampledRequests to return a sample of requests.
        • Default_Action, which causes GetSampledRequests to return a sample of the requests that didn't match any of the rules in the specified WebACL.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setTimeWindow

        public void setTimeWindow​(TimeWindow timeWindow)

        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. Specify the date and time in Unix time format (in seconds). 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 want GetSampledRequests to return a sample of requests. Specify the date and time in Unix time format (in seconds). You can specify any time range in the previous three hours.
      • getTimeWindow

        public TimeWindow getTimeWindow()

        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. Specify the date and time in Unix time format (in seconds). You can specify any time range in the previous three hours.

        Returns:
        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. Specify the date and time in Unix time format (in seconds). You can specify any time range in the previous three hours.
      • withTimeWindow

        public GetSampledRequestsRequest withTimeWindow​(TimeWindow timeWindow)

        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. Specify the date and time in Unix time format (in seconds). 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 want GetSampledRequests to return a sample of requests. Specify the date and time in Unix time format (in seconds). 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.
      • setMaxItems

        public void setMaxItems​(Long 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, GetSampledRequests returns 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 of MaxItems, GetSampledRequests returns information about all of them.
      • getMaxItems

        public Long getMaxItems()

        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.

        Returns:
        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.
      • withMaxItems

        public GetSampledRequestsRequest withMaxItems​(Long 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, GetSampledRequests returns 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 of MaxItems, GetSampledRequests returns information about all of them.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object