Interface AnalysisError.Builder

    • Method Detail

      • message

        AnalysisError.Builder message​(String message)

        The message associated with the analysis error.

        Parameters:
        message - The message associated with the analysis error.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • violatedEntities

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

        Lists the violated entities that caused the analysis error

        Parameters:
        violatedEntities - Lists the violated entities that caused the analysis error
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • violatedEntities

        AnalysisError.Builder violatedEntities​(Entity... violatedEntities)

        Lists the violated entities that caused the analysis error

        Parameters:
        violatedEntities - Lists the violated entities that caused the analysis error
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • violatedEntities

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

        Lists the violated entities that caused the analysis 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)