In jclouds we usually provide builders that return the result of a "self()"
methos instead of returning "this". This allows proper builder inheritance.
See an api metadata builder examples [1] (and have a look at its superclass
too).

If the builder you are using does not follow that pattern

Specifically, compare BaseApiMetadata.Builder.id with UpdateImageOptions.Builder.name [1, 2]. Looks like Ignasi's hunch is correct ;-)

To be fair to say, I think UpdateImageOptions.Builder simply predates the self() pattern, so it's probably just ready for an update.

ap

[1] https://github.com/jclouds/jclouds/blob/master/core/src/main/java/org/jclouds/apis/internal/BaseApiMetadata.java#L102 [2] https://github.com/jclouds/jclouds-labs-openstack/blob/master/openstack-glance/src/main/java/org/jclouds/openstack/glance/v1_0/options/UpdateImageOptions.java#L166

Reply via email to