> +      this.state = state;
> +      return this;
> +      }
> +
> +      public Builder location(Location location) {
> +      this.location = location;
> +      return this;
> +      }
> +
> +      public Builder version(int version) {
> +      this.version = version;
> +      return this;
> +      }
> +
> +      public DataCenter build() {
> +      return DataCenter.create(id, name, version, state, location);

The builders should check that all non-nullable fields are present when calling 
the build() method. Also a good practice is to make them mandatory in the 
builder constructor.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/72/files#r22237708

Reply via email to