Interface CreateWebAclRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<CreateWebAclRequest.Builder,CreateWebAclRequest>, SdkBuilder<CreateWebAclRequest.Builder,CreateWebAclRequest>, SdkPojo, SdkRequest.Builder, WafRequest.Builder
Enclosing class:
CreateWebAclRequest

public static interface CreateWebAclRequest.Builder extends WafRequest.Builder, SdkPojo, CopyableBuilder<CreateWebAclRequest.Builder,CreateWebAclRequest>
  • Method Details

    • name

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

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

      CreateWebAclRequest.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

      CreateWebAclRequest.Builder defaultAction(WafAction defaultAction)

      The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of the Rule objects that are associated with the WebACL.

      Parameters:
      defaultAction - The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of the Rule objects that are associated with the WebACL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • defaultAction

      default CreateWebAclRequest.Builder defaultAction(Consumer<WafAction.Builder> defaultAction)

      The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of the Rule objects that are associated with the WebACL.

      This is a convenience method that creates an instance of the WafAction.Builder avoiding the need to create one manually via WafAction.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to defaultAction(WafAction).

      Parameters:
      defaultAction - a consumer that will call methods on WafAction.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • changeToken

      CreateWebAclRequest.Builder changeToken(String changeToken)

      The value returned by the most recent call to GetChangeToken.

      Parameters:
      changeToken - The value returned by the most recent call to GetChangeToken.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

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

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

      This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      CreateWebAclRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.