> +   @AutoValue.Builder
> +   public abstract static class Builder {
> +
> +      public abstract Builder name(@Nullable String name);
> +
> +      public abstract Builder id(@Nullable String id);
> +
> +      public abstract Builder scope(@Nullable String scope);
> +
> +      public abstract Builder driver(@Nullable String driver);
> +
> +      public abstract Builder ipam(IPAM ipam);
> +
> +      public abstract Builder containers(Map<String, Details> containers);
> +
> +      public abstract Builder options(Map<String, String> options);

Enforce immutable collections in auto builders. You can follow [this 
pattern](https://github.com/jclouds/jclouds-labs/blob/master/azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/domain/Subnet.java#L67-L84).
 Basically it consists of providing a hidden builder method that will delegate 
to auto-value, and have the public one enforcing the immutable collections.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/296/files/de6ed4fcbbbcbab8effe7239d169587496ba426a#r69409654

Reply via email to