I'd really expect the service (i.e. the Java API) to use strongly-typed objects for these arguments.