Interface CustomErrorResponses.Builder

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

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

    • quantity

      The number of HTTP status codes for which you want to specify a custom error page and/or a caching duration. If Quantity is 0, you can omit Items.

      Parameters:
      quantity - The number of HTTP status codes for which you want to specify a custom error page and/or a caching duration. If Quantity is 0, you can omit Items.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • items

      A complex type that contains a CustomErrorResponse element for each HTTP status code for which you want to specify a custom error page and/or a caching duration.

      Parameters:
      items - A complex type that contains a CustomErrorResponse element for each HTTP status code for which you want to specify a custom error page and/or a caching duration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • items

      A complex type that contains a CustomErrorResponse element for each HTTP status code for which you want to specify a custom error page and/or a caching duration.

      Parameters:
      items - A complex type that contains a CustomErrorResponse element for each HTTP status code for which you want to specify a custom error page and/or a caching duration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • items

      A complex type that contains a CustomErrorResponse element for each HTTP status code for which you want to specify a custom error page and/or a caching duration.

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

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

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