public DatastoreProperties withErrorCause(ErrorCause errorCause) {
        setErrorCause(errorCause);
        return this;
    }
<p>
The error cause for the current data store operation.
</p>

@param errorCause
       The error cause for the current data store operation.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-healthlake/src/main/java/com/amazonaws/services/healthlake/model/DatastoreProperties.java