@@ -134,7 +134,7 @@ public CloudFileShare getShareReference(final String shareName, String snapshotI
134134 */
135135 @ DoesServiceRequest
136136 public Iterable <CloudFileShare > listShares () {
137- return this .listSharesWithPrefix (null , ShareListingDetails .NONE , null /* options */ , null /* opContext */ );
137+ return this .listSharesWithPrefix (null , EnumSet . noneOf ( ShareListingDetails .class ) , null /* options */ , null /* opContext */ );
138138 }
139139
140140 /**
@@ -149,7 +149,7 @@ public Iterable<CloudFileShare> listShares() {
149149 */
150150 @ DoesServiceRequest
151151 public Iterable <CloudFileShare > listShares (final String prefix ) {
152- return this .listSharesWithPrefix (prefix , ShareListingDetails .NONE , null /* options */ , null /* opContext */ );
152+ return this .listSharesWithPrefix (prefix , EnumSet . noneOf ( ShareListingDetails .class ) , null /* options */ , null /* opContext */ );
153153 }
154154
155155 /**
@@ -159,7 +159,8 @@ public Iterable<CloudFileShare> listShares(final String prefix) {
159159 * @param prefix
160160 * A <code>String</code> that represents the share name prefix.
161161 * @param detailsIncluded
162- * A {@link ShareListingDetails} value that indicates whether share metadata will be returned.
162+ * A <code>java.util.EnumSet</code> object that contains {@link ShareListingDetails} values that indicate
163+ * whether share snapshots and/or metadata will be returned.
163164 * @param options
164165 * A {@link FileRequestOptions} object that specifies any additional options for the request. Specifying
165166 * <code>null</code> will use the default request options from the associated service client (
@@ -173,7 +174,7 @@ public Iterable<CloudFileShare> listShares(final String prefix) {
173174 * shares for this client.
174175 */
175176 @ DoesServiceRequest
176- public Iterable <CloudFileShare > listShares (final String prefix , final ShareListingDetails detailsIncluded ,
177+ public Iterable <CloudFileShare > listShares (final String prefix , final EnumSet < ShareListingDetails > detailsIncluded ,
177178 final FileRequestOptions options , final OperationContext opContext ) {
178179 return this .listSharesWithPrefix (prefix , detailsIncluded , options , opContext );
179180 }
@@ -189,7 +190,7 @@ public Iterable<CloudFileShare> listShares(final String prefix, final ShareListi
189190 */
190191 @ DoesServiceRequest
191192 public ResultSegment <CloudFileShare > listSharesSegmented () throws StorageException {
192- return this .listSharesSegmented (null , ShareListingDetails .NONE , null , null /* continuationToken */ ,
193+ return this .listSharesSegmented (null , EnumSet . noneOf ( ShareListingDetails .class ) , null , null /* continuationToken */ ,
193194 null /* options */ , null /* opContext */ );
194195 }
195196
@@ -209,7 +210,7 @@ public ResultSegment<CloudFileShare> listSharesSegmented() throws StorageExcepti
209210 */
210211 @ DoesServiceRequest
211212 public ResultSegment <CloudFileShare > listSharesSegmented (final String prefix ) throws StorageException {
212- return this .listSharesWithPrefixSegmented (prefix , ShareListingDetails .NONE , null , null /* continuationToken */ ,
213+ return this .listSharesWithPrefixSegmented (prefix , EnumSet . noneOf ( ShareListingDetails .class ) , null , null /* continuationToken */ ,
213214 null /* options */ , null /* opContext */ );
214215 }
215216
@@ -220,7 +221,8 @@ public ResultSegment<CloudFileShare> listSharesSegmented(final String prefix) th
220221 * @param prefix
221222 * A <code>String</code> that represents the prefix of the share name.
222223 * @param detailsIncluded
223- * A {@link ShareListingDetails} value that indicates whether share metadata will be returned.
224+ * A <code>java.util.EnumSet</code> object that contains {@link ShareListingDetails} values that indicate
225+ * whether share snapshots and/or metadata will be returned.
224226 * @param maxResults
225227 * The maximum number of results to retrieve. If <code>null</code> or greater
226228 * than 5000, the server will return up to 5,000 items. Must be at least 1.
@@ -244,7 +246,7 @@ public ResultSegment<CloudFileShare> listSharesSegmented(final String prefix) th
244246 */
245247 @ DoesServiceRequest
246248 public ResultSegment <CloudFileShare > listSharesSegmented (final String prefix ,
247- final ShareListingDetails detailsIncluded , final Integer maxResults ,
249+ final EnumSet < ShareListingDetails > detailsIncluded , final Integer maxResults ,
248250 final ResultContinuation continuationToken , final FileRequestOptions options ,
249251 final OperationContext opContext ) throws StorageException {
250252 return this .listSharesWithPrefixSegmented (prefix , detailsIncluded , maxResults , continuationToken , options ,
@@ -258,7 +260,8 @@ public ResultSegment<CloudFileShare> listSharesSegmented(final String prefix,
258260 * @param prefix
259261 * A <code>String</code> that represents the prefix of the share name.
260262 * @param detailsIncluded
261- * A {@link ShareListingDetails} value that indicates whether share metadata will be returned.
263+ * A <code>java.util.EnumSet</code> object that contains {@link ShareListingDetails} values that indicate
264+ * whether share snapshots and/or metadata will be returned.
262265 * @param options
263266 * A {@link FileRequestOptions} object that specifies any additional options for the request. Specifying
264267 * <code>null</code> will use the default request options from the associated service client (
@@ -272,7 +275,7 @@ public ResultSegment<CloudFileShare> listSharesSegmented(final String prefix,
272275 * shares whose names begin with the specified prefix.
273276 */
274277 private Iterable <CloudFileShare > listSharesWithPrefix (final String prefix ,
275- final ShareListingDetails detailsIncluded , FileRequestOptions options , OperationContext opContext ) {
278+ final EnumSet < ShareListingDetails > detailsIncluded , FileRequestOptions options , OperationContext opContext ) {
276279 if (opContext == null ) {
277280 opContext = new OperationContext ();
278281 }
@@ -294,7 +297,8 @@ private Iterable<CloudFileShare> listSharesWithPrefix(final String prefix,
294297 * @param prefix
295298 * A <code>String</code> that represents the prefix of the share name.
296299 * @param detailsIncluded
297- * A {@link ShareListingDetails} value that indicates whether share metadata will be returned.
300+ * A <code>java.util.EnumSet</code> object that contains {@link ShareListingDetails} values that indicate
301+ * whether share snapshots and/or metadata will be returned.
298302 * @param maxResults
299303 * The maximum number of results to retrieve. If <code>null</code> or greater
300304 * than 5000, the server will return up to 5,000 items. Must be at least 1.
@@ -317,7 +321,7 @@ private Iterable<CloudFileShare> listSharesWithPrefix(final String prefix,
317321 * If a storage service error occurred.
318322 */
319323 private ResultSegment <CloudFileShare > listSharesWithPrefixSegmented (final String prefix ,
320- final ShareListingDetails detailsIncluded , final Integer maxResults ,
324+ final EnumSet < ShareListingDetails > detailsIncluded , final Integer maxResults ,
321325 final ResultContinuation continuationToken , FileRequestOptions options , OperationContext opContext )
322326 throws StorageException {
323327 if (opContext == null ) {
@@ -338,7 +342,7 @@ private ResultSegment<CloudFileShare> listSharesWithPrefixSegmented(final String
338342 }
339343
340344 private StorageRequest <CloudFileClient , Void , ResultSegment <CloudFileShare >> listSharesWithPrefixSegmentedImpl (
341- final String prefix , final ShareListingDetails detailsIncluded , final Integer maxResults ,
345+ final String prefix , final EnumSet < ShareListingDetails > detailsIncluded , final Integer maxResults ,
342346 final FileRequestOptions options , final SegmentedStorageRequest segmentedRequest ) {
343347
344348 Utility .assertContinuationType (segmentedRequest .getToken (), ResultContinuationType .SHARE );
0 commit comments