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; }