Class SubProtectionPolicy


  • public final class SubProtectionPolicy
    extends Object
    Sub-protection policy which includes schedule and retention.
    • Constructor Detail

      • SubProtectionPolicy

        public SubProtectionPolicy()
    • Method Detail

      • policyType

        public PolicyType policyType()
        Get the policyType property: Type of backup policy type.
        Returns:
        the policyType value.
      • withPolicyType

        public SubProtectionPolicy withPolicyType​(PolicyType policyType)
        Set the policyType property: Type of backup policy type.
        Parameters:
        policyType - the policyType value to set.
        Returns:
        the SubProtectionPolicy object itself.
      • schedulePolicy

        public SchedulePolicy schedulePolicy()
        Get the schedulePolicy property: Backup schedule specified as part of backup policy.
        Returns:
        the schedulePolicy value.
      • withSchedulePolicy

        public SubProtectionPolicy withSchedulePolicy​(SchedulePolicy schedulePolicy)
        Set the schedulePolicy property: Backup schedule specified as part of backup policy.
        Parameters:
        schedulePolicy - the schedulePolicy value to set.
        Returns:
        the SubProtectionPolicy object itself.
      • retentionPolicy

        public RetentionPolicy retentionPolicy()
        Get the retentionPolicy property: Retention policy with the details on backup copy retention ranges.
        Returns:
        the retentionPolicy value.
      • withRetentionPolicy

        public SubProtectionPolicy withRetentionPolicy​(RetentionPolicy retentionPolicy)
        Set the retentionPolicy property: Retention policy with the details on backup copy retention ranges.
        Parameters:
        retentionPolicy - the retentionPolicy value to set.
        Returns:
        the SubProtectionPolicy object itself.
      • validate

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