Class DataLakePathScheduleDeletionOptions
java.lang.Object
com.azure.storage.file.datalake.options.DataLakePathScheduleDeletionOptions
Extended access options that may be passed to set when scheduling deletion for a path.
Note: can only set either ExpiresOn value or TimeToExpire value, cannot set both.
-
Constructor Summary
ConstructorDescriptionDataLakePathScheduleDeletionOptions
(Duration timeToExpire) Optional parameters for scheduling the deletion of a path.Optional parameters for scheduling the deletion of a path. -
Method Summary
-
Constructor Details
-
DataLakePathScheduleDeletionOptions
Optional parameters for scheduling the deletion of a path.- Parameters:
expiresOn
-OffsetDateTime
to set for when the file will be deleted. If null, the existing expiresOn time on the file will be removed, if it exists. Note: Does not apply to directories.
-
DataLakePathScheduleDeletionOptions
Optional parameters for scheduling the deletion of a path.- Parameters:
timeToExpire
- Duration before file should be deleted. Note: Does not apply to directories.
-
-
Method Details
-
getExpiresOn
- Returns:
- the expiry date.
-
getTimeToExpire
- Returns:
- the time to expire.
-