Class SnapshotPolicyProperties


  • public final class SnapshotPolicyProperties
    extends Object
    Snapshot policy properties.
    • Constructor Detail

      • SnapshotPolicyProperties

        public SnapshotPolicyProperties()
    • Method Detail

      • hourlySchedule

        public HourlySchedule hourlySchedule()
        Get the hourlySchedule property: Schedule for hourly snapshots.
        Returns:
        the hourlySchedule value.
      • withHourlySchedule

        public SnapshotPolicyProperties withHourlySchedule​(HourlySchedule hourlySchedule)
        Set the hourlySchedule property: Schedule for hourly snapshots.
        Parameters:
        hourlySchedule - the hourlySchedule value to set.
        Returns:
        the SnapshotPolicyProperties object itself.
      • dailySchedule

        public DailySchedule dailySchedule()
        Get the dailySchedule property: Schedule for daily snapshots.
        Returns:
        the dailySchedule value.
      • withDailySchedule

        public SnapshotPolicyProperties withDailySchedule​(DailySchedule dailySchedule)
        Set the dailySchedule property: Schedule for daily snapshots.
        Parameters:
        dailySchedule - the dailySchedule value to set.
        Returns:
        the SnapshotPolicyProperties object itself.
      • weeklySchedule

        public WeeklySchedule weeklySchedule()
        Get the weeklySchedule property: Schedule for weekly snapshots.
        Returns:
        the weeklySchedule value.
      • withWeeklySchedule

        public SnapshotPolicyProperties withWeeklySchedule​(WeeklySchedule weeklySchedule)
        Set the weeklySchedule property: Schedule for weekly snapshots.
        Parameters:
        weeklySchedule - the weeklySchedule value to set.
        Returns:
        the SnapshotPolicyProperties object itself.
      • monthlySchedule

        public MonthlySchedule monthlySchedule()
        Get the monthlySchedule property: Schedule for monthly snapshots.
        Returns:
        the monthlySchedule value.
      • withMonthlySchedule

        public SnapshotPolicyProperties withMonthlySchedule​(MonthlySchedule monthlySchedule)
        Set the monthlySchedule property: Schedule for monthly snapshots.
        Parameters:
        monthlySchedule - the monthlySchedule value to set.
        Returns:
        the SnapshotPolicyProperties object itself.
      • enabled

        public Boolean enabled()
        Get the enabled property: The property to decide policy is enabled or not.
        Returns:
        the enabled value.
      • withEnabled

        public SnapshotPolicyProperties withEnabled​(Boolean enabled)
        Set the enabled property: The property to decide policy is enabled or not.
        Parameters:
        enabled - the enabled value to set.
        Returns:
        the SnapshotPolicyProperties object itself.
      • provisioningState

        public String provisioningState()
        Get the provisioningState property: Azure lifecycle management.
        Returns:
        the provisioningState value.
      • validate

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