Interface TemplateError.Builder

    • Method Detail

      • message

        TemplateError.Builder message​(String message)

        Description of the error type.

        Parameters:
        message - Description of the error type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • violatedEntities

        TemplateError.Builder violatedEntities​(Collection<Entity> violatedEntities)

        An error path that shows which entities caused the template error.

        Parameters:
        violatedEntities - An error path that shows which entities caused the template error.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • violatedEntities

        TemplateError.Builder violatedEntities​(Entity... violatedEntities)

        An error path that shows which entities caused the template error.

        Parameters:
        violatedEntities - An error path that shows which entities caused the template error.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • violatedEntities

        TemplateError.Builder violatedEntities​(Consumer<Entity.Builder>... violatedEntities)

        An error path that shows which entities caused the template error.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #violatedEntities(List).

        Parameters:
        violatedEntities - a consumer that will call methods on Entity.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #violatedEntities(java.util.Collection)