Interface CustomErrorResponses.Builder

    • Method Detail

      • quantity

        CustomErrorResponses.Builder quantity​(Integer 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

        CustomErrorResponses.Builder items​(Collection<CustomErrorResponse> 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

        CustomErrorResponses.Builder items​(CustomErrorResponse... 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.