Class BackupLongTermRetentionPolicyInner


  • public class BackupLongTermRetentionPolicyInner
    extends com.azure.core.management.ProxyResource
    A long term retention policy.
    • Constructor Detail

      • BackupLongTermRetentionPolicyInner

        public BackupLongTermRetentionPolicyInner()
    • Method Detail

      • weeklyRetention

        public String weeklyRetention()
        Get the weeklyRetention property: The weekly retention policy for an LTR backup in an ISO 8601 format.
        Returns:
        the weeklyRetention value.
      • withWeeklyRetention

        public BackupLongTermRetentionPolicyInner withWeeklyRetention​(String weeklyRetention)
        Set the weeklyRetention property: The weekly retention policy for an LTR backup in an ISO 8601 format.
        Parameters:
        weeklyRetention - the weeklyRetention value to set.
        Returns:
        the BackupLongTermRetentionPolicyInner object itself.
      • monthlyRetention

        public String monthlyRetention()
        Get the monthlyRetention property: The monthly retention policy for an LTR backup in an ISO 8601 format.
        Returns:
        the monthlyRetention value.
      • withMonthlyRetention

        public BackupLongTermRetentionPolicyInner withMonthlyRetention​(String monthlyRetention)
        Set the monthlyRetention property: The monthly retention policy for an LTR backup in an ISO 8601 format.
        Parameters:
        monthlyRetention - the monthlyRetention value to set.
        Returns:
        the BackupLongTermRetentionPolicyInner object itself.
      • yearlyRetention

        public String yearlyRetention()
        Get the yearlyRetention property: The yearly retention policy for an LTR backup in an ISO 8601 format.
        Returns:
        the yearlyRetention value.
      • withYearlyRetention

        public BackupLongTermRetentionPolicyInner withYearlyRetention​(String yearlyRetention)
        Set the yearlyRetention property: The yearly retention policy for an LTR backup in an ISO 8601 format.
        Parameters:
        yearlyRetention - the yearlyRetention value to set.
        Returns:
        the BackupLongTermRetentionPolicyInner object itself.
      • weekOfYear

        public Integer weekOfYear()
        Get the weekOfYear property: The week of year to take the yearly backup in an ISO 8601 format.
        Returns:
        the weekOfYear value.
      • withWeekOfYear

        public BackupLongTermRetentionPolicyInner withWeekOfYear​(Integer weekOfYear)
        Set the weekOfYear property: The week of year to take the yearly backup in an ISO 8601 format.
        Parameters:
        weekOfYear - the weekOfYear value to set.
        Returns:
        the BackupLongTermRetentionPolicyInner object itself.
      • validate

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