public TaskExecutionResultDetail withErrorCode(String errorCode) {
        setErrorCode(errorCode);
        return this;
    }
<p>
Errors that DataSync encountered during execution of the task. You can use this error code to help troubleshoot
issues.
</p>

@param errorCode
       Errors that DataSync encountered during execution of the task. You can use this error code to help
       troubleshoot issues.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-datasync/src/main/java/com/amazonaws/services/datasync/model/TaskExecutionResultDetail.java