> +
> +      public abstract String name();
> +
> +      @SerializedNames({"id", "name"})
> +      public static Server create(String id, String name) {
> +         return new AutoValue_PrivateNetwork_Server(id, name);
> +      }
> +
> +      @AutoValue
> +      public abstract static class CreateServer {
> +
> +         public abstract List<String> servers();
> +
> +         @SerializedNames({"servers"})
> +         public static CreateServer create(List<String> servers) {
> +            return new AutoValue_PrivateNetwork_Server_CreateServer(servers 
> == null ? ImmutableList.<String>of() : servers);

Enforce an immutable list when present too.

-- 
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/315/files/aec0775e803138e2a965a03a6035af54ad5e098f#r77630827

Reply via email to