Class ShareListFilesAndDirectoriesOptions
java.lang.Object
com.azure.storage.file.share.options.ShareListFilesAndDirectoriesOptions
Extended options for a directory listing operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Note that setting timestamps, etag, attributes, or permission key will also set this option as true.boolean
boolean
setIncludeAttributes
(boolean includeAttributes) setIncludeETag
(boolean includeETag) setIncludeExtendedInfo
(Boolean includeExtendedInfo) Note that setting timestamps, etag, attributes, or permission key will also set this option as true.setIncludePermissionKey
(boolean includePermissionKey) setIncludeTimestamps
(boolean includeTimestamps) setMaxResultsPerPage
(Integer maxResultsPerPage) Sets the max results per page for a listing operation.Sets the prefix for a listing operation.
-
Constructor Details
-
ShareListFilesAndDirectoriesOptions
public ShareListFilesAndDirectoriesOptions()
-
-
Method Details
-
getPrefix
- Returns:
- prefix for this listing operation.
-
setPrefix
Sets the prefix for a listing operation.- Parameters:
prefix
- the prefix.- Returns:
- updated options.
-
getMaxResultsPerPage
- Returns:
- max results per page for this listing operation.
-
setMaxResultsPerPage
Sets the max results per page for a listing operation.- Parameters:
maxResultsPerPage
- the max results per page.- Returns:
- updated options.
-
includeExtendedInfo
Note that setting timestamps, etag, attributes, or permission key will also set this option as true. Attempting to set it back to false while any of these options are true will be unsuccessful. Including extended info in a listing operation can result in a more expensive operation, but will present more accurate information on the listing item.- Returns:
- whether to include extended info on this listing operation.
-
setIncludeExtendedInfo
Note that setting timestamps, etag, attributes, or permission key will also set this option as true. Attempting to set it back to false will be unsuccessful. Sets the prefix for a listing operation. Including extended info in a listing operation can result in a more expensive operation, but will present more accurate information on the listing item.- Parameters:
includeExtendedInfo
- whether to include extended info.- Returns:
- updated options.
- Throws:
IllegalStateException
- Throws when attempting to set null when other parameters require it to be true.
-
includeTimestamps
public boolean includeTimestamps()- Returns:
- whether to include timestamps on this listing operation.
-
setIncludeTimestamps
- Parameters:
includeTimestamps
- whether to include timestamps on this listing operation.- Returns:
- updated options
-
includeETag
public boolean includeETag()- Returns:
- whether to include the etag on this listing operation.
-
setIncludeETag
- Parameters:
includeETag
- whether to include the etag on this listing operation.- Returns:
- updated options
-
includeAttributes
public boolean includeAttributes()- Returns:
- whether to include file attributes on this listing operation.
-
setIncludeAttributes
- Parameters:
includeAttributes
- whether to include file attributes on this listing operation.- Returns:
- updated options
-
includePermissionKey
public boolean includePermissionKey()- Returns:
- whether to include the permission key on this listing operation.
-
setIncludePermissionKey
- Parameters:
includePermissionKey
- whether to include the permission key on this listing operation.- Returns:
- updated options
-