> +
> +import com.google.gson.annotations.SerializedName;
> +
> +
> +public class ArchiveMetadataCollection {
> +
> +   @SerializedName("ArchiveList")
> +   private final Iterable<ArchiveMetadata> archives;
> +   @SerializedName("VaultARN")
> +   private final String vaultARN;
> +   @SerializedName("InventoryDate")
> +   private final Date inventoryDate;
> +
> +   @ConstructorProperties({ "ArchiveList", "VaultARN", "InventoryDate" })
> +   public ArchiveMetadataCollection(Iterable<ArchiveMetadata> archives, 
> String vaultARN, Date inventoryDate) {
> +      this.archives = checkNotNull(archives, "archives");

Storing as an `ImmutableList` avoids some questions about thread-safety, 
nullability, etc.  Also consider the kittens: 
http://alexruiz.developerblogs.com/?p=2519

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

Reply via email to