Class FileScheduleDeletionOptions
java.lang.Object
com.azure.storage.file.datalake.options.FileScheduleDeletionOptions
Parameters for Schedule Deletion.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates emptyFileScheduleDeletionOptions.FileScheduleDeletionOptions(Duration timeToExpire, FileExpirationOffset expiryRelativeTo) Sets time when the file will be deleted, relative to the file creation time or the current time.FileScheduleDeletionOptions(OffsetDateTime expiresOn) Sets theOffsetDateTimewhen the file will be deleted. -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
FileScheduleDeletionOptions
public FileScheduleDeletionOptions()Creates emptyFileScheduleDeletionOptions. If the file was scheduled for deletion, the deletion will be cancelled. -
FileScheduleDeletionOptions
Sets time when the file will be deleted, relative to the file creation time or the current time.- Parameters:
timeToExpire- Duration before file will be deleted.expiryRelativeTo- Specifies if TimeToExpire should be set relative to the file's creation time, or the current time.
-
FileScheduleDeletionOptions
Sets theOffsetDateTimewhen the file will be deleted.- Parameters:
expiresOn- TheOffsetDateTimewhen the file will be deleted.
-
-
Method Details
-
getTimeToExpire
- Returns:
- Duration before file should be deleted.
-
getExpiryRelativeTo
- Returns:
- if
getTimeToExpire()should be set relative to the file's creation time, or the current time.
-
getExpiresOn
- Returns:
- The
OffsetDateTimeto set for when the file will be deleted.
-