Class SimpleRetentionPolicy


  • public final class SimpleRetentionPolicy
    extends RetentionPolicy
    Simple policy retention.
    • Constructor Detail

      • SimpleRetentionPolicy

        public SimpleRetentionPolicy()
    • Method Detail

      • retentionDuration

        public RetentionDuration retentionDuration()
        Get the retentionDuration property: Retention duration of the protection policy.
        Returns:
        the retentionDuration value.
      • withRetentionDuration

        public SimpleRetentionPolicy withRetentionDuration​(RetentionDuration retentionDuration)
        Set the retentionDuration property: Retention duration of the protection policy.
        Parameters:
        retentionDuration - the retentionDuration value to set.
        Returns:
        the SimpleRetentionPolicy object itself.