Class ShareFileListRangesDiffOptions

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

public class ShareFileListRangesDiffOptions extends Object
Extended options that may be passed when listing ranges for a File.
  • Constructor Details

    • ShareFileListRangesDiffOptions

      public ShareFileListRangesDiffOptions(String previousSnapshot)
      Creates a new instance of ShareFileListRangesDiffOptions.
      Parameters:
      previousSnapshot - Specifies that the response will contain only ranges that were changed between target file and previous snapshot. Changed ranges include both updated and cleared ranges. The target file may be a snapshot, as long as the snapshot specified by previousSnapshot is the older of the two.
      Throws:
      NullPointerException - If previousSnapshot is null.
  • Method Details

    • getRange

      public ShareFileRange getRange()
      Gets the range of bytes over which to list ranges, inclusively.
      Returns:
      The range of bytes over which to list ranges, inclusively.
    • setRange

      Sets the range of bytes over which to list ranges, inclusively.
      Parameters:
      range - The range of bytes over which to list ranges, inclusively.
      Returns:
      The updated options.
    • getPreviousSnapshot

      public String getPreviousSnapshot()
      Gets the previous snapshot to compare to.
      Returns:
      The previous snapshot to compare to.
    • getRequestConditions

      public ShareRequestConditions getRequestConditions()
      Returns:
      ShareRequestConditions
    • setRequestConditions

      public ShareFileListRangesDiffOptions setRequestConditions(ShareRequestConditions requestConditions)
      Parameters:
      requestConditions - ShareRequestConditions for the file.
      Returns:
      The updated options.
    • isRenameIncluded

      public Boolean isRenameIncluded()
      Gets the supportRename value.
      Returns:
      Whether the changed ranges for a file that has been renamed or moved between the target snapshot (or the live file) and the previous snapshot should be listed.
    • setRenameIncluded

      public ShareFileListRangesDiffOptions setRenameIncluded(Boolean renameIncluded)
      Sets the value for whether the changed ranges for a file that has been renamed or moved should appear in the snapshot dif.
      Parameters:
      renameIncluded - Whether the changed ranges for a file that has been renamed or moved between the target snapshot (or the live file) and the previous snapshot should be listed.
      Returns:
      The updated options.