FileScheduleDeletionOptions Class
- java.
lang. Object - com.
azure. storage. file. datalake. options. FileScheduleDeletionOptions
- com.
public class FileScheduleDeletionOptions
Parameters for Schedule Deletion.
Constructor Summary
Constructor | Description |
---|---|
FileScheduleDeletionOptions() |
Creates empty FileScheduleDeletionOptions. |
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 the OffsetDateTime when the file will be deleted. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
getExpiresOn() |
File |
getExpiryRelativeTo() |
Duration | getTimeToExpire() |
Methods inherited from java.lang.Object
Constructor Details
FileScheduleDeletionOptions
public FileScheduleDeletionOptions()
Creates empty FileScheduleDeletionOptions. If the file was scheduled for deletion, the deletion will be cancelled.
FileScheduleDeletionOptions
public FileScheduleDeletionOptions(Duration timeToExpire, FileExpirationOffset expiryRelativeTo)
Sets time when the file will be deleted, relative to the file creation time or the current time.
Parameters:
FileScheduleDeletionOptions
public FileScheduleDeletionOptions(OffsetDateTime expiresOn)
Sets the OffsetDateTime when the file will be deleted.
Parameters:
Method Details
getExpiresOn
public OffsetDateTime getExpiresOn()
Returns:
getExpiryRelativeTo
public FileExpirationOffset getExpiryRelativeTo()
Returns:
getTimeToExpire
public Duration getTimeToExpire()
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for