From 46d364511137951246b5cbff415fa1be55274324 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Wed, 12 Apr 2017 13:18:41 -0700 Subject: [PATCH] Set ListBlobsOptions.datasets in setter --- .../org/jclouds/azureblob/options/ListBlobsOptions.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/providers/azureblob/src/main/java/org/jclouds/azureblob/options/ListBlobsOptions.java b/providers/azureblob/src/main/java/org/jclouds/azureblob/options/ListBlobsOptions.java index 895d6a1d04..d216989f5d 100644 --- a/providers/azureblob/src/main/java/org/jclouds/azureblob/options/ListBlobsOptions.java +++ b/providers/azureblob/src/main/java/org/jclouds/azureblob/options/ListBlobsOptions.java @@ -141,8 +141,12 @@ public class ListBlobsOptions extends ListOptions { } public ListBlobsOptions include(Set datasets) { - datasets = ImmutableSet.copyOf(datasets); - this.queryParameters.put("include", Joiner.on(",").join(datasets)); + ImmutableSet.Builder builder = ImmutableSet.builder(); + for (ListBlobsInclude dataset : datasets) { + builder.add(dataset.toString()); + } + this.datasets = builder.build(); + this.queryParameters.put("include", Joiner.on(",").join(this.datasets)); return this; }