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 TypeMethodDescriptionGets the max results per page for a listing operation.Gets the prefix for a listing operation.booleanGets whether to include file attributes on a listing operation.booleanGets whether to include the etag on a listing operation.Note that setting timestamps, etag, attributes, or permission key will also set this option as true.booleanGets whether to include the permission key on a listing operation.booleanGets whether to include timestamps on a listing operation.setIncludeAttributes(boolean includeAttributes) Sets whether to include file attributes on a listing operation.setIncludeETag(boolean includeETag) Sets whether to include the etag on a listing operation.setIncludeExtendedInfo(Boolean includeExtendedInfo) Note that setting timestamps, etag, attributes, or permission key will also set this option as true.setIncludePermissionKey(boolean includePermissionKey) Sets whether to include the permission key on a listing operation.setIncludeTimestamps(boolean includeTimestamps) Sets whether to include timestamps on a listing operation.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()Creates a new instance ofShareListFilesAndDirectoriesOptions.
-
-
Method Details
-
getPrefix
Gets the prefix for a listing operation.- Returns:
- prefix for this listing operation.
-
setPrefix
Sets the prefix for a listing operation.- Parameters:
prefix- the prefix.- Returns:
- updated options.
-
getMaxResultsPerPage
Gets the max results per page for a listing operation.- 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()Gets whether to include timestamps on a listing operation.- Returns:
- whether to include timestamps on this listing operation.
-
setIncludeTimestamps
Sets whether to include timestamps on a listing operation.- Parameters:
includeTimestamps- whether to include timestamps on this listing operation.- Returns:
- updated options
-
includeETag
public boolean includeETag()Gets whether to include the etag on a listing operation.- Returns:
- whether to include the etag on this listing operation.
-
setIncludeETag
Sets whether to include the etag on a listing operation.- Parameters:
includeETag- whether to include the etag on this listing operation.- Returns:
- updated options
-
includeAttributes
public boolean includeAttributes()Gets whether to include file attributes on a listing operation.- Returns:
- whether to include file attributes on this listing operation.
-
setIncludeAttributes
Sets whether to include file attributes on a listing operation.- Parameters:
includeAttributes- whether to include file attributes on this listing operation.- Returns:
- updated options
-
includePermissionKey
public boolean includePermissionKey()Gets whether to include the permission key on a listing operation.- Returns:
- whether to include the permission key on this listing operation.
-
setIncludePermissionKey
Sets whether to include the permission key on a listing operation.- Parameters:
includePermissionKey- whether to include the permission key on this listing operation.- Returns:
- updated options
-