> + */
> +package org.jclouds.labs.b2.domain;
> +
> +import java.util.List;
> +
> +import org.jclouds.json.SerializedNames;
> +
> +import com.google.auto.value.AutoValue;
> +
> +@AutoValue
> +public abstract class BucketList {
> + public abstract List<Bucket> buckets();
> +
> + @SerializedNames({"buckets"})
> + public static BucketList create(List<Bucket> buckets) {
> + return new AutoValue_BucketList(buckets);
Enforce an immutable list by using copyOf
---
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/270/files/8bb355e1b286b2bbf77fd8d3cb75cd2d1aa6bc69#r64485117