Class ListSharesOptions
- java.lang.Object
-
- com.azure.storage.file.share.models.ListSharesOptions
-
public final class ListSharesOptions extends Object
A set of options for selecting shares from Storage File service.-
Providing
prefixwill filter selections tosharesthat that begin with the prefix. -
Providing
maxResultsPerPagewill limit the number ofsharesreturned in a single page. -
Setting
includeMetadatato true will include the metadata of eachshare, if falseShareItem.getMetadata()metadata} for each share will benull. -
Setting
includeSnapshotsto true will include snapshots of eachshare, the snapshot will be included as separate items in the response and will be identifiable byShareItem.getSnapshot()snapshot} having a value. The base share will containnullfor the snapshot. -
Setting
includeDeletedto true will include deletedshares, the deleted shares will be included as separate items in the response and will be identifiable byShareItem.isDeleted()having atruevalue.
-
Providing
-
-
Constructor Summary
Constructors Constructor Description ListSharesOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetMaxResultsPerPage()StringgetPrefix()booleanisIncludeDeleted()booleanisIncludeMetadata()booleanisIncludeSnapshots()ListSharesOptionssetIncludeDeleted(boolean includeDeleted)Sets the status of including deleted shares when listing sharesListSharesOptionssetIncludeMetadata(boolean includeMetadata)Sets the status of including share metadata when listing shares If listing snapshots as well this will also determine if the snapshots have their metadata included as well.ListSharesOptionssetIncludeSnapshots(boolean includeSnapshots)Sets the status of including share snapshots when listing sharesListSharesOptionssetMaxResultsPerPage(Integer maxResultsPerPage)Sets the maximum number of shares to include in a single response.ListSharesOptionssetPrefix(String prefix)Sets the prefix that a share must match to be included in the listing.
-
-
-
Method Detail
-
setPrefix
public ListSharesOptions setPrefix(String prefix)
Sets the prefix that a share must match to be included in the listing.- Parameters:
prefix- The prefix that shares must start with to pass the filter- Returns:
- An updated ListSharesOptions object
-
getPrefix
public String getPrefix()
- Returns:
- the prefix that a share must match to be included in the listing
-
setMaxResultsPerPage
public ListSharesOptions setMaxResultsPerPage(Integer maxResultsPerPage)
Sets the maximum number of shares to include in a single response.- Parameters:
maxResultsPerPage- Maximum number of shares to include in a single response. This value must be between 1 and 5000.- Returns:
- An updated ListSharesOptions object
-
getMaxResultsPerPage
public Integer getMaxResultsPerPage()
- Returns:
- the maximum number of shares to inlcude in a single response
-
setIncludeMetadata
public ListSharesOptions setIncludeMetadata(boolean includeMetadata)
Sets the status of including share metadata when listing shares If listing snapshots as well this will also determine if the snapshots have their metadata included as well.- Parameters:
includeMetadata- Flag indicating if metadata should be including in the listing- Returns:
- An updated ListSharesOptions object
-
isIncludeMetadata
public boolean isIncludeMetadata()
- Returns:
- the status of include share metadata when listing shares
-
setIncludeSnapshots
public ListSharesOptions setIncludeSnapshots(boolean includeSnapshots)
Sets the status of including share snapshots when listing shares- Parameters:
includeSnapshots- Flag indicating if snapshots should be included in the listing- Returns:
- An updated ListSharesOptions object
-
isIncludeSnapshots
public boolean isIncludeSnapshots()
- Returns:
- the status of including share snapshots when listing shares
-
setIncludeDeleted
public ListSharesOptions setIncludeDeleted(boolean includeDeleted)
Sets the status of including deleted shares when listing shares- Parameters:
includeDeleted- Flag indicating if deleted shares should be included in the listing- Returns:
- An updated ListSharesOptions object
-
isIncludeDeleted
public boolean isIncludeDeleted()
- Returns:
- the status of including deleted shares when listing shares
-
-