Interface SampledHTTPRequest.Builder

    • Method Detail

      • request

        SampledHTTPRequest.Builder request​(HTTPRequest request)

        A complex type that contains detailed information about the request.

        Parameters:
        request - A complex type that contains detailed information about the request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • weight

        SampledHTTPRequest.Builder weight​(Long weight)

        A value that indicates how one result in the response relates proportionally to other results in the response. A result that has a weight of 2 represents roughly twice as many CloudFront web requests as a result that has a weight of 1.

        Parameters:
        weight - A value that indicates how one result in the response relates proportionally to other results in the response. A result that has a weight of 2 represents roughly twice as many CloudFront web requests as a result that has a weight of 1.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • timestamp

        SampledHTTPRequest.Builder timestamp​(Instant timestamp)

        The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).

        Parameters:
        timestamp - The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • action

        SampledHTTPRequest.Builder action​(String action)

        The action for the Rule that the request matched: ALLOW, BLOCK, or COUNT.

        Parameters:
        action - The action for the Rule that the request matched: ALLOW, BLOCK, or COUNT.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ruleWithinRuleGroup

        SampledHTTPRequest.Builder ruleWithinRuleGroup​(String ruleWithinRuleGroup)

        This value is returned if the GetSampledRequests request specifies the ID of a RuleGroup rather than the ID of an individual rule. RuleWithinRuleGroup is the rule within the specified RuleGroup that matched the request listed in the response.

        Parameters:
        ruleWithinRuleGroup - This value is returned if the GetSampledRequests request specifies the ID of a RuleGroup rather than the ID of an individual rule. RuleWithinRuleGroup is the rule within the specified RuleGroup that matched the request listed in the response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.