Class ShareListFilesAndDirectoriesOptions

java.lang.Object
com.azure.storage.file.share.options.ShareListFilesAndDirectoriesOptions

public final class ShareListFilesAndDirectoriesOptions extends Object
Extended options for a directory listing operation.
  • Constructor Details

  • Method Details

    • getPrefix

      public String getPrefix()
      Gets the prefix for a listing operation.
      Returns:
      prefix for this listing operation.
    • setPrefix

      public ShareListFilesAndDirectoriesOptions setPrefix(String prefix)
      Sets the prefix for a listing operation.
      Parameters:
      prefix - the prefix.
      Returns:
      updated options.
    • getMaxResultsPerPage

      public Integer getMaxResultsPerPage()
      Gets the max results per page for a listing operation.
      Returns:
      max results per page for this listing operation.
    • setMaxResultsPerPage

      public ShareListFilesAndDirectoriesOptions setMaxResultsPerPage(Integer maxResultsPerPage)
      Sets the max results per page for a listing operation.
      Parameters:
      maxResultsPerPage - the max results per page.
      Returns:
      updated options.
    • includeExtendedInfo

      public Boolean 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

      public ShareListFilesAndDirectoriesOptions setIncludeExtendedInfo(Boolean includeExtendedInfo)
      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

      public ShareListFilesAndDirectoriesOptions setIncludeTimestamps(boolean includeTimestamps)
      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

      public ShareListFilesAndDirectoriesOptions setIncludeETag(boolean includeETag)
      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

      public ShareListFilesAndDirectoriesOptions setIncludeAttributes(boolean includeAttributes)
      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

      public ShareListFilesAndDirectoriesOptions setIncludePermissionKey(boolean includePermissionKey)
      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