Use ResizeOptsBuilder, not ResizeOpts.