public ErrorDetails withErrorCode(WorkspaceImageErrorDetailCode errorCode) {
        this.errorCode = errorCode.toString();
        return this;
    }
<p>
Indicates the error code returned.
</p>

@param errorCode
       Indicates the error code returned.
@return Returns a reference to this object so that method calls can be chained together.
@see WorkspaceImageErrorDetailCode
aws-java-sdk-workspaces/src/main/java/com/amazonaws/services/workspaces/model/ErrorDetails.java