Interface WebACL.Builder

    • Method Detail

      • webACLId

        WebACL.Builder webACLId​(String webACLId)

        A unique identifier for a WebACL. You use WebACLId to get information about a WebACL (see GetWebACL), update a WebACL (see UpdateWebACL), and delete a WebACL from AWS WAF (see DeleteWebACL).

        WebACLId is returned by CreateWebACL and by ListWebACLs.

        Parameters:
        webACLId - A unique identifier for a WebACL. You use WebACLId to get information about a WebACL (see GetWebACL), update a WebACL (see UpdateWebACL), and delete a WebACL from AWS WAF (see DeleteWebACL).

        WebACLId is returned by CreateWebACL and by ListWebACLs.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        WebACL.Builder name​(String name)

        A friendly name or description of the WebACL. You can't change the name of a WebACL after you create it.

        Parameters:
        name - A friendly name or description of the WebACL. You can't change the name of a WebACL after you create it.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metricName

        WebACL.Builder metricName​(String metricName)

        A friendly name or description for the metrics for this WebACL. The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change MetricName after you create the WebACL.

        Parameters:
        metricName - A friendly name or description for the metrics for this WebACL. The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change MetricName after you create the WebACL.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • defaultAction

        WebACL.Builder defaultAction​(WafAction defaultAction)

        The action to perform if none of the Rules contained in the WebACL match. The action is specified by the WafAction object.

        Parameters:
        defaultAction - The action to perform if none of the Rules contained in the WebACL match. The action is specified by the WafAction object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • rules

        WebACL.Builder rules​(Collection<ActivatedRule> rules)

        An array that contains the action for each Rule in a WebACL, the priority of the Rule, and the ID of the Rule.

        Parameters:
        rules - An array that contains the action for each Rule in a WebACL, the priority of the Rule, and the ID of the Rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • rules

        WebACL.Builder rules​(ActivatedRule... rules)

        An array that contains the action for each Rule in a WebACL, the priority of the Rule, and the ID of the Rule.

        Parameters:
        rules - An array that contains the action for each Rule in a WebACL, the priority of the Rule, and the ID of the Rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • webACLArn

        WebACL.Builder webACLArn​(String webACLArn)

        Tha Amazon Resource Name (ARN) of the web ACL.

        Parameters:
        webACLArn - Tha Amazon Resource Name (ARN) of the web ACL.
        Returns:
        Returns a reference to this object so that method calls can be chained together.