Interface TemplateError.Builder

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

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

    • type

      Type of error.

      Parameters:
      type - Type of error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      Type of error.

      Parameters:
      type - Type of error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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<Entity>).

      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: