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

setRange

public ShareFileListRangesDiffOptions setRange(ShareFileRange range)

Parameters:

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

Returns:

The updated options.

setRequestConditions

public ShareFileListRangesDiffOptions setRequestConditions(ShareRequestConditions requestConditions)

Parameters:

requestConditions - ShareRequestConditions for the file.

Returns:

The updated options.

Applies to