Interface CustomRequestHandling.Builder

  • Method Details

    • insertHeaders

      The HTTP headers to insert into the request. Duplicate header names are not allowed.

      For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.

      Parameters:
      insertHeaders - The HTTP headers to insert into the request. Duplicate header names are not allowed.

      For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.

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

      CustomRequestHandling.Builder insertHeaders(CustomHTTPHeader... insertHeaders)

      The HTTP headers to insert into the request. Duplicate header names are not allowed.

      For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.

      Parameters:
      insertHeaders - The HTTP headers to insert into the request. Duplicate header names are not allowed.

      For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.

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

      The HTTP headers to insert into the request. Duplicate header names are not allowed.

      For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.

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

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

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