Class SoftDeletePolicy


  • public final class SoftDeletePolicy
    extends Object
    Contains information about the soft deletion policy of the gallery.
    • Constructor Detail

      • SoftDeletePolicy

        public SoftDeletePolicy()
    • Method Detail

      • isSoftDeleteEnabled

        public Boolean isSoftDeleteEnabled()
        Get the isSoftDeleteEnabled property: Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time.
        Returns:
        the isSoftDeleteEnabled value.
      • withIsSoftDeleteEnabled

        public SoftDeletePolicy withIsSoftDeleteEnabled​(Boolean isSoftDeleteEnabled)
        Set the isSoftDeleteEnabled property: Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time.
        Parameters:
        isSoftDeleteEnabled - the isSoftDeleteEnabled value to set.
        Returns:
        the SoftDeletePolicy object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.