Class FileScheduleDeletionOptions


  • public class FileScheduleDeletionOptions
    extends Object
    Parameters for Schedule Deletion.
    • Constructor Detail

      • 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:
        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

        public FileScheduleDeletionOptions​(OffsetDateTime expiresOn)
        Sets the OffsetDateTime when the file will be deleted.
        Parameters:
        expiresOn - The OffsetDateTime when the file will be deleted.
    • Method Detail

      • getTimeToExpire

        public Duration getTimeToExpire()
        Returns:
        Duration before file should be deleted.