Package com.oracle.bmc.filestorage.model
Class SnapshotSchedule.Builder
- java.lang.Object
- 
- com.oracle.bmc.filestorage.model.SnapshotSchedule.Builder
 
- 
- Enclosing class:
- SnapshotSchedule
 
 public static class SnapshotSchedule.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SnapshotSchedulebuild()SnapshotSchedule.Buildercopy(SnapshotSchedule model)SnapshotSchedule.BuilderdayOfMonth(Integer dayOfMonth)The day of the month to create a scheduled snapshot.SnapshotSchedule.BuilderdayOfWeek(SnapshotSchedule.DayOfWeek dayOfWeek)The day of the week to create a scheduled snapshot.SnapshotSchedule.BuilderhourOfDay(Integer hourOfDay)The hour of the day to create a DAILY, WEEKLY, MONTHLY, or YEARLY snapshot.SnapshotSchedule.Buildermonth(SnapshotSchedule.Month month)The month to create a scheduled snapshot.SnapshotSchedule.Builderperiod(SnapshotSchedule.Period period)The frequency of scheduled snapshots.SnapshotSchedule.BuilderretentionDurationInSeconds(Long retentionDurationInSeconds)The number of seconds to retain snapshots created with this schedule.SnapshotSchedule.BuilderschedulePrefix(String schedulePrefix)A name prefix to be applied to snapshots created by this schedule.SnapshotSchedule.BuildertimeScheduleStart(Date timeScheduleStart)The starting point used to begin the scheduling of the snapshots based upon recurrence string in RFC 3339 timestamp format.SnapshotSchedule.BuildertimeZone(SnapshotSchedule.TimeZone timeZone)Time zone used for scheduling the snapshot.
 
- 
- 
- 
Method Detail- 
schedulePrefixpublic 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
 
 - 
timeScheduleStartpublic 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
 
 - 
periodpublic SnapshotSchedule.Builder period(SnapshotSchedule.Period period) The frequency of scheduled snapshots.- Parameters:
- period- the value to set
- Returns:
- this builder
 
 - 
retentionDurationInSecondspublic 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
 
 - 
timeZonepublic SnapshotSchedule.Builder timeZone(SnapshotSchedule.TimeZone timeZone) Time zone used for scheduling the snapshot.- Parameters:
- timeZone- the value to set
- Returns:
- this builder
 
 - 
hourOfDaypublic 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
 
 - 
dayOfWeekpublic 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
 
 - 
dayOfMonthpublic 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
 
 - 
monthpublic 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
 
 - 
buildpublic SnapshotSchedule build() 
 - 
copypublic SnapshotSchedule.Builder copy(SnapshotSchedule model) 
 
- 
 
-