public BatchDeleteDocumentResponseFailedDocument withErrorCode(String errorCode) {
        setErrorCode(errorCode);
        return this;
    }
<p>
The error code for why the document couldn't be removed from the index.
</p>

@param errorCode
       The error code 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.
@see ErrorCode
aws-java-sdk-kendra/src/main/java/com/amazonaws/services/kendra/model/BatchDeleteDocumentResponseFailedDocument.java