Compartir a través de


ShareFileListRangesDiffOptions Class

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

public class ShareFileListRangesDiffOptions

Extended options that may be passed when listing ranges for a File.

Constructor Summary

Constructor Description
ShareFileListRangesDiffOptions(String previousSnapshot)

Method Summary

Modifier and Type Method and Description
String getPreviousSnapshot()
ShareFileRange getRange()
ShareRequestConditions getRequestConditions()
Boolean isRenameIncluded()

Gets the supportRename value.

ShareFileListRangesDiffOptions setRange(ShareFileRange range)
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.

ShareFileListRangesDiffOptions setRequestConditions(ShareRequestConditions requestConditions)

Methods inherited from java.lang.Object

Constructor Details

ShareFileListRangesDiffOptions

public ShareFileListRangesDiffOptions(String previousSnapshot)

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.

Method Details

getPreviousSnapshot

public String getPreviousSnapshot()

Returns:

The previous snapshot to compare to.

getRange

public ShareFileRange getRange()

Returns:

The range of bytes over which to list ranges, inclusively.

getRequestConditions

public ShareRequestConditions getRequestConditions()

Returns:

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.

setRange

public ShareFileListRangesDiffOptions setRange(ShareFileRange range)

Parameters:

range - The range of bytes over which to list ranges, inclusively.

Returns:

The updated options.

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.

setRequestConditions

public ShareFileListRangesDiffOptions setRequestConditions(ShareRequestConditions requestConditions)

Parameters:

requestConditions - ShareRequestConditions for the file.

Returns:

The updated options.

Applies to