public ReportResult withErrorCode(String errorCode) {
        setErrorCode(errorCode);
        return this;
    }
<p>
Indicates the code associated with the error if DataSync can't create a complete report.
</p>

@param errorCode
       Indicates the code associated with the error if DataSync can't create a complete report.
@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/ReportResult.java