> + * limitations under the License. > + */ > +package org.jclouds.azurecompute.domain; > +import com.google.common.base.Objects; > + > +import java.net.URI; > +import java.util.Calendar; > + > +import static com.google.common.base.Preconditions.checkNotNull; > + > +/** > + * OS images from the image repository > + * > + * @see <a href="http://msdn.microsoft.com/en-us/library/jj157191" >api</a> > + */ > +public class OSImage {
We use Google Auto for the domain model. This allows us to: * Enforce immutable objects easily. * Remove the boilerplate code introduced in large domain objects. * Avoid adding (and maintaining) the equals/hashcode/tostring methods. In general, refactor all these domain objects to use Google auto. You can have a look at the latest OpenStack pull requests, ProfitBricks or GCE providers for further reference. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/132/files#r24749691
