Interface RenderUiTemplateResponse.Builder

  • Method Details

    • renderedContent

      RenderUiTemplateResponse.Builder renderedContent(String renderedContent)

      A Liquid template that renders the HTML for the worker UI.

      Parameters:
      renderedContent - A Liquid template that renders the HTML for the worker UI.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errors

      A list of one or more RenderingError objects if any were encountered while rendering the template. If there were no errors, the list is empty.

      Parameters:
      errors - A list of one or more RenderingError objects if any were encountered while rendering the template. If there were no errors, the list is empty.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errors

      A list of one or more RenderingError objects if any were encountered while rendering the template. If there were no errors, the list is empty.

      Parameters:
      errors - A list of one or more RenderingError objects if any were encountered while rendering the template. If there were no errors, the list is empty.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errors

      A list of one or more RenderingError objects if any were encountered while rendering the template. If there were no errors, the list is empty.

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

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

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