Class YearlyRetentionSchedule


  • public final class YearlyRetentionSchedule
    extends Object
    Yearly retention schedule.
    • Constructor Detail

      • YearlyRetentionSchedule

        public YearlyRetentionSchedule()
    • Method Detail

      • retentionScheduleFormatType

        public RetentionScheduleFormat retentionScheduleFormatType()
        Get the retentionScheduleFormatType property: Retention schedule format for yearly retention policy.
        Returns:
        the retentionScheduleFormatType value.
      • withRetentionScheduleFormatType

        public YearlyRetentionSchedule withRetentionScheduleFormatType​(RetentionScheduleFormat retentionScheduleFormatType)
        Set the retentionScheduleFormatType property: Retention schedule format for yearly retention policy.
        Parameters:
        retentionScheduleFormatType - the retentionScheduleFormatType value to set.
        Returns:
        the YearlyRetentionSchedule object itself.
      • monthsOfYear

        public List<MonthOfYear> monthsOfYear()
        Get the monthsOfYear property: List of months of year of yearly retention policy.
        Returns:
        the monthsOfYear value.
      • withMonthsOfYear

        public YearlyRetentionSchedule withMonthsOfYear​(List<MonthOfYear> monthsOfYear)
        Set the monthsOfYear property: List of months of year of yearly retention policy.
        Parameters:
        monthsOfYear - the monthsOfYear value to set.
        Returns:
        the YearlyRetentionSchedule object itself.
      • retentionScheduleDaily

        public DailyRetentionFormat retentionScheduleDaily()
        Get the retentionScheduleDaily property: Daily retention format for yearly retention policy.
        Returns:
        the retentionScheduleDaily value.
      • withRetentionScheduleDaily

        public YearlyRetentionSchedule withRetentionScheduleDaily​(DailyRetentionFormat retentionScheduleDaily)
        Set the retentionScheduleDaily property: Daily retention format for yearly retention policy.
        Parameters:
        retentionScheduleDaily - the retentionScheduleDaily value to set.
        Returns:
        the YearlyRetentionSchedule object itself.
      • retentionScheduleWeekly

        public WeeklyRetentionFormat retentionScheduleWeekly()
        Get the retentionScheduleWeekly property: Weekly retention format for yearly retention policy.
        Returns:
        the retentionScheduleWeekly value.
      • withRetentionScheduleWeekly

        public YearlyRetentionSchedule withRetentionScheduleWeekly​(WeeklyRetentionFormat retentionScheduleWeekly)
        Set the retentionScheduleWeekly property: Weekly retention format for yearly retention policy.
        Parameters:
        retentionScheduleWeekly - the retentionScheduleWeekly value to set.
        Returns:
        the YearlyRetentionSchedule object itself.
      • retentionTimes

        public List<OffsetDateTime> retentionTimes()
        Get the retentionTimes property: Retention times of retention policy.
        Returns:
        the retentionTimes value.
      • withRetentionTimes

        public YearlyRetentionSchedule withRetentionTimes​(List<OffsetDateTime> retentionTimes)
        Set the retentionTimes property: Retention times of retention policy.
        Parameters:
        retentionTimes - the retentionTimes value to set.
        Returns:
        the YearlyRetentionSchedule object itself.
      • retentionDuration

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

        public YearlyRetentionSchedule withRetentionDuration​(RetentionDuration retentionDuration)
        Set the retentionDuration property: Retention duration of retention Policy.
        Parameters:
        retentionDuration - the retentionDuration value to set.
        Returns:
        the YearlyRetentionSchedule object itself.
      • validate

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