Interface BatchDetectSentimentResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, ComprehendResponse.Builder, CopyableBuilder<BatchDetectSentimentResponse.Builder,BatchDetectSentimentResponse>, SdkBuilder<BatchDetectSentimentResponse.Builder,BatchDetectSentimentResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
BatchDetectSentimentResponse

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

    • resultList

      A list of objects containing the results of the operation. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If all of the documents contain an error, the ResultList is empty.

      Parameters:
      resultList - A list of objects containing the results of the operation. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If all of the documents contain an error, the ResultList is empty.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resultList

      A list of objects containing the results of the operation. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If all of the documents contain an error, the ResultList is empty.

      Parameters:
      resultList - A list of objects containing the results of the operation. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If all of the documents contain an error, the ResultList is empty.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resultList

      A list of objects containing the results of the operation. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If all of the documents contain an error, the ResultList is empty.

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

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

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

      A list containing one object for each document that contained an error. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If there are no errors in the batch, the ErrorList is empty.

      Parameters:
      errorList - A list containing one object for each document that contained an error. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If there are no errors in the batch, the ErrorList is empty.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errorList

      A list containing one object for each document that contained an error. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If there are no errors in the batch, the ErrorList is empty.

      Parameters:
      errorList - A list containing one object for each document that contained an error. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If there are no errors in the batch, the ErrorList is empty.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errorList

      A list containing one object for each document that contained an error. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If there are no errors in the batch, the ErrorList is empty.

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

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

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