public static class SnapshotSchedule.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SnapshotSchedule |
build() |
SnapshotSchedule.Builder |
copy(SnapshotSchedule model) |
SnapshotSchedule.Builder |
dayOfMonth(Integer dayOfMonth)
The day of the month to create a scheduled snapshot.
|
SnapshotSchedule.Builder |
dayOfWeek(SnapshotSchedule.DayOfWeek dayOfWeek)
The day of the week to create a scheduled snapshot.
|
SnapshotSchedule.Builder |
hourOfDay(Integer hourOfDay)
The hour of the day to create a DAILY, WEEKLY, MONTHLY, or YEARLY snapshot.
|
SnapshotSchedule.Builder |
month(SnapshotSchedule.Month month)
The month to create a scheduled snapshot.
|
SnapshotSchedule.Builder |
period(SnapshotSchedule.Period period)
The frequency of scheduled snapshots.
|
SnapshotSchedule.Builder |
retentionDurationInSeconds(Long retentionDurationInSeconds)
The number of seconds to retain snapshots created with this schedule.
|
SnapshotSchedule.Builder |
schedulePrefix(String schedulePrefix)
A name prefix to be applied to snapshots created by this schedule.
|
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.
|
SnapshotSchedule.Builder |
timeZone(SnapshotSchedule.TimeZone timeZone)
Time zone used for scheduling the snapshot.
|
public SnapshotSchedule.Builder schedulePrefix(String schedulePrefix)
A name prefix to be applied to snapshots created by this schedule.
Example: compliance1
schedulePrefix
- the value to setpublic 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.
timeScheduleStart
- the value to setpublic SnapshotSchedule.Builder period(SnapshotSchedule.Period period)
The frequency of scheduled snapshots.
period
- the value to setpublic 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.
retentionDurationInSeconds
- the value to setpublic SnapshotSchedule.Builder timeZone(SnapshotSchedule.TimeZone timeZone)
Time zone used for scheduling the snapshot.
timeZone
- the value to setpublic 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.
hourOfDay
- the value to setpublic 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.
dayOfWeek
- the value to setpublic 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.
dayOfMonth
- the value to setpublic 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.
month
- the value to setpublic SnapshotSchedule build()
public SnapshotSchedule.Builder copy(SnapshotSchedule model)
Copyright © 2016–2024. All rights reserved.