Class SnapshotSchedule.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • schedulePrefix

        public SnapshotSchedule.Builder schedulePrefix​(String schedulePrefix)
        A name prefix to be applied to snapshots created by this schedule.

        Example: compliance1

        Parameters:
        schedulePrefix - the value to set
        Returns:
        this builder
      • timeScheduleStart

        public SnapshotSchedule.Builder timeScheduleStart​(Date timeScheduleStart)
        The starting point used to begin the scheduling of the snapshots based upon recurrence string in RFC 3339 timestamp format.

        If no timeScheduleStart is provided, the value will be set to the time when the schedule was created.

        Parameters:
        timeScheduleStart - the value to set
        Returns:
        this builder
      • retentionDurationInSeconds

        public SnapshotSchedule.Builder retentionDurationInSeconds​(Long retentionDurationInSeconds)
        The number of seconds to retain snapshots created with this schedule.

        Snapshot expiration time will not be set if this value is empty.

        Parameters:
        retentionDurationInSeconds - the value to set
        Returns:
        this builder
      • hourOfDay

        public SnapshotSchedule.Builder hourOfDay​(Integer hourOfDay)
        The hour of the day to create a DAILY, WEEKLY, MONTHLY, or YEARLY snapshot.

        If not set, the system chooses a value at creation time.

        Parameters:
        hourOfDay - the value to set
        Returns:
        this builder
      • dayOfWeek

        public SnapshotSchedule.Builder dayOfWeek​(SnapshotSchedule.DayOfWeek dayOfWeek)
        The day of the week to create a scheduled snapshot.

        Used for WEEKLY snapshot schedules. If not set, the system chooses a value at creation time.

        Parameters:
        dayOfWeek - the value to set
        Returns:
        this builder
      • dayOfMonth

        public SnapshotSchedule.Builder dayOfMonth​(Integer dayOfMonth)
        The day of the month to create a scheduled snapshot.

        If the day does not exist for the month, snapshot creation will be skipped. Used for MONTHLY and YEARLY snapshot schedules. If not set, the system chooses a value at creation time.

        Parameters:
        dayOfMonth - the value to set
        Returns:
        this builder
      • month

        public SnapshotSchedule.Builder month​(SnapshotSchedule.Month month)
        The month to create a scheduled snapshot.

        Used only for YEARLY snapshot schedules. If not set, the system chooses a value at creation time.

        Parameters:
        month - the value to set
        Returns:
        this builder