public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }
<p>
If the <code>Status</code> field is set to <code>FAILED</code>, the <code>ErrorCode</code> field indicates the
reason the synchronization failed.
</p>

@param errorCode
       If the <code>Status</code> field is set to <code>FAILED</code>, the <code>ErrorCode</code> field indicates
       the reason the synchronization failed.
@see ErrorCode
aws-java-sdk-kendra/src/main/java/com/amazonaws/services/kendra/model/DataSourceSyncJob.java