> +
> +import com.google.auto.value.AutoValue;
> +
> +@AutoValue
> +public abstract class MultipartUploadResponse {
> + public abstract String accountId();
> + public abstract String bucketId();
> + public abstract String contentType();
> + public abstract String fileId();
> + public abstract Map<String, String> fileInfo();
> + public abstract String fileName();
> + public abstract Date uploadTimestamp();
> +
> + @SerializedNames({"accountId", "bucketId", "contentType", "fileId",
> "fileInfo", "fileName", "uploadTimestamp"})
> + public static MultipartUploadResponse create(String accountId, String
> bucketId, String contentType, String fileId, Map<String, String> fileInfo,
> String fileName, long uploadTimestamp) {
> + return new AutoValue_MultipartUploadResponse(accountId, bucketId,
> contentType, fileId, fileInfo, fileName, new Date(uploadTimestamp));
Make the fileInfo map immutable.
---
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/282/files/56c8b214ce51990e7709991bc55605190195b133#r67431408