Class ShareFileListRangesDiffOptions
java.lang.Object
com.azure.storage.file.share.options.ShareFileListRangesDiffOptions
Extended options that may be passed when listing ranges for a File.
-
Constructor Summary
ConstructorsConstructorDescriptionShareFileListRangesDiffOptions
(String previousSnapshot) Creates a new instance ofShareFileListRangesDiffOptions
. -
Method Summary
Modifier and TypeMethodDescriptionGets the previous snapshot to compare to.getRange()
Gets the range of bytes over which to list ranges, inclusively.Gets theShareRequestConditions
.Gets the supportRename value.setRange
(ShareFileRange range) Sets the range of bytes over which to list ranges, inclusively.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.setRequestConditions
(ShareRequestConditions requestConditions) Sets theShareRequestConditions
.
-
Constructor Details
-
ShareFileListRangesDiffOptions
Creates a new instance ofShareFileListRangesDiffOptions
.- 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
- IfpreviousSnapshot
is null.
-
-
Method Details
-
getRange
Gets the range of bytes over which to list ranges, inclusively.- Returns:
- The range of bytes over which to list ranges, inclusively.
-
getPreviousSnapshot
Gets the previous snapshot to compare to.- Returns:
- The previous snapshot to compare to.
-
getRequestConditions
Gets theShareRequestConditions
.- Returns:
ShareRequestConditions
-
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
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.
-