Interface SizeConstraintStatement.Builder

All Superinterfaces:
Buildable, CopyableBuilder<SizeConstraintStatement.Builder,SizeConstraintStatement>, SdkBuilder<SizeConstraintStatement.Builder,SizeConstraintStatement>, SdkPojo
Enclosing class:
SizeConstraintStatement

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

    • fieldToMatch

      SizeConstraintStatement.Builder fieldToMatch(FieldToMatch fieldToMatch)

      The part of the web request that you want WAF to inspect.

      Parameters:
      fieldToMatch - The part of the web request that you want WAF to inspect.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fieldToMatch

      default SizeConstraintStatement.Builder fieldToMatch(Consumer<FieldToMatch.Builder> fieldToMatch)

      The part of the web request that you want WAF to inspect.

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

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

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

      SizeConstraintStatement.Builder comparisonOperator(String comparisonOperator)

      The operator to use to compare the request part to the size setting.

      Parameters:
      comparisonOperator - The operator to use to compare the request part to the size setting.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • comparisonOperator

      SizeConstraintStatement.Builder comparisonOperator(ComparisonOperator comparisonOperator)

      The operator to use to compare the request part to the size setting.

      Parameters:
      comparisonOperator - The operator to use to compare the request part to the size setting.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • size

      The size, in byte, to compare to the request part, after any transformations.

      Parameters:
      size - The size, in byte, to compare to the request part, after any transformations.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • textTransformations

      SizeConstraintStatement.Builder textTransformations(Collection<TextTransformation> textTransformations)

      Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the FieldToMatch request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.

      Parameters:
      textTransformations - Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the FieldToMatch request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • textTransformations

      SizeConstraintStatement.Builder textTransformations(TextTransformation... textTransformations)

      Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the FieldToMatch request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.

      Parameters:
      textTransformations - Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the FieldToMatch request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • textTransformations

      SizeConstraintStatement.Builder textTransformations(Consumer<TextTransformation.Builder>... textTransformations)

      Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the FieldToMatch request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.

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

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

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