public ErrorResponse withCode(ErrorCode code) {
        this.code = code.toString();
        return this;
    }
<p>
The error code associated with the error.
</p>

@param code
       The error code associated with the error.
@return Returns a reference to this object so that method calls can be chained together.
@see ErrorCode
aws-java-sdk-migrationhubrefactorspaces/src/main/java/com/amazonaws/services/migrationhubrefactorspaces/model/ErrorResponse.java