Interface BatchDetectTargetedSentimentResponse.Builder

    • Method Detail

      • resultList

        BatchDetectTargetedSentimentResponse.Builder resultList​(Collection<BatchDetectTargetedSentimentItemResult> 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

        BatchDetectTargetedSentimentResponse.Builder resultList​(BatchDetectTargetedSentimentItemResult... 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.
      • errorList

        BatchDetectTargetedSentimentResponse.Builder errorList​(BatchItemError... errorList)

        List of errors that the operation can return.

        Parameters:
        errorList - List of errors that the operation can return.
        Returns:
        Returns a reference to this object so that method calls can be chained together.