Interface CreateRuleRequest.Builder

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

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

    • name

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

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

      CreateRuleRequest.Builder metricName(String metricName)

      A friendly name or description for the metrics for this Rule. 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 the name of the metric after you create the Rule.

      Parameters:
      metricName - A friendly name or description for the metrics for this Rule. 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 the name of the metric after you create the Rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • changeToken

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

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