public class FileScheduleDeletionOptions extends Object
| Constructor and 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. |
| Modifier and Type | Method and Description |
|---|---|
OffsetDateTime |
getExpiresOn() |
FileExpirationOffset |
getExpiryRelativeTo() |
Duration |
getTimeToExpire() |
public FileScheduleDeletionOptions()
FileScheduleDeletionOptions.
If the file was scheduled for deletion, the deletion will be cancelled.public FileScheduleDeletionOptions(Duration timeToExpire, FileExpirationOffset expiryRelativeTo)
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.public FileScheduleDeletionOptions(OffsetDateTime expiresOn)
OffsetDateTime when the file will be deleted.expiresOn - The OffsetDateTime when the file will be deleted.public Duration getTimeToExpire()
public FileExpirationOffset getExpiryRelativeTo()
FileScheduleDeletionOptions.getTimeToExpire() should be
set relative to the file's creation time, or the current time.public OffsetDateTime getExpiresOn()
OffsetDateTime to set for when
the file will be deleted.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.