public BatchDeleteDocumentResponseFailedDocument withErrorMessage(String errorMessage) {
        setErrorMessage(errorMessage);
        return this;
    }
<p>
An explanation for why the document couldn't be removed from the index.
</p>

@param errorMessage
       An explanation for why the document couldn't be removed from the index.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kendra/src/main/java/com/amazonaws/services/kendra/model/BatchDeleteDocumentResponseFailedDocument.java