public static class VolumeBackupSchedule.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
VolumeBackupSchedule.Builder |
backupType(VolumeBackupSchedule.BackupType backupType)
The type of volume backup to create.
|
VolumeBackupSchedule |
build() |
VolumeBackupSchedule.Builder |
copy(VolumeBackupSchedule model) |
VolumeBackupSchedule.Builder |
dayOfMonth(Integer dayOfMonth)
The day of the month to schedule the volume backup.
|
VolumeBackupSchedule.Builder |
dayOfWeek(VolumeBackupSchedule.DayOfWeek dayOfWeek)
The day of the week to schedule the volume backup.
|
VolumeBackupSchedule.Builder |
hourOfDay(Integer hourOfDay)
The hour of the day to schedule the volume backup.
|
VolumeBackupSchedule.Builder |
month(VolumeBackupSchedule.Month month)
The month of the year to schedule the volume backup.
|
VolumeBackupSchedule.Builder |
offsetSeconds(Integer offsetSeconds)
The number of seconds that the volume backup start time should be shifted from the
default interval boundaries specified by the period.
|
VolumeBackupSchedule.Builder |
offsetType(VolumeBackupSchedule.OffsetType offsetType)
Indicates how the offset is defined.
|
VolumeBackupSchedule.Builder |
period(VolumeBackupSchedule.Period period)
The volume backup frequency.
|
VolumeBackupSchedule.Builder |
retentionSeconds(Integer retentionSeconds)
How long, in seconds, to keep the volume backups created by this schedule.
|
VolumeBackupSchedule.Builder |
timeZone(VolumeBackupSchedule.TimeZone timeZone)
Specifies what time zone is the schedule in
|
public VolumeBackupSchedule.Builder backupType(VolumeBackupSchedule.BackupType backupType)
The type of volume backup to create.
backupType
- the value to setpublic VolumeBackupSchedule.Builder offsetSeconds(Integer offsetSeconds)
The number of seconds that the volume backup start time should be shifted from the default interval boundaries specified by the period. The volume backup start time is the frequency start time plus the offset.
offsetSeconds
- the value to setpublic VolumeBackupSchedule.Builder period(VolumeBackupSchedule.Period period)
The volume backup frequency.
period
- the value to setpublic VolumeBackupSchedule.Builder offsetType(VolumeBackupSchedule.OffsetType offsetType)
Indicates how the offset is defined. If value is STRUCTURED
, then hourOfDay
, dayOfWeek
, dayOfMonth
, and month
fields are used and
offsetSeconds
will be ignored in requests and users should ignore its value from
the responses.
hourOfDay
is applicable for periods ONE_DAY
, ONE_WEEK
, ONE_MONTH
and ONE_YEAR
.
dayOfWeek
is applicable for period ONE_WEEK
.
dayOfMonth
is applicable for periods ONE_MONTH
and ONE_YEAR
.
'month' is applicable for period 'ONE_YEAR'.
They will be ignored in the requests for inapplicable periods.
If value is NUMERIC_SECONDS
, then offsetSeconds
will be used for both
requests and responses and the structured fields will be ignored in the requests and
users should ignore their values from the responses.
For clients using older versions of Apis and not sending offsetType
in their
requests, the behaviour is just like NUMERIC_SECONDS
.
offsetType
- the value to setpublic VolumeBackupSchedule.Builder hourOfDay(Integer hourOfDay)
The hour of the day to schedule the volume backup.
hourOfDay
- the value to setpublic VolumeBackupSchedule.Builder dayOfWeek(VolumeBackupSchedule.DayOfWeek dayOfWeek)
The day of the week to schedule the volume backup.
dayOfWeek
- the value to setpublic VolumeBackupSchedule.Builder dayOfMonth(Integer dayOfMonth)
The day of the month to schedule the volume backup.
dayOfMonth
- the value to setpublic VolumeBackupSchedule.Builder month(VolumeBackupSchedule.Month month)
The month of the year to schedule the volume backup.
month
- the value to setpublic VolumeBackupSchedule.Builder retentionSeconds(Integer retentionSeconds)
How long, in seconds, to keep the volume backups created by this schedule.
retentionSeconds
- the value to setpublic VolumeBackupSchedule.Builder timeZone(VolumeBackupSchedule.TimeZone timeZone)
Specifies what time zone is the schedule in
timeZone
- the value to setpublic VolumeBackupSchedule build()
public VolumeBackupSchedule.Builder copy(VolumeBackupSchedule model)
Copyright © 2016–2024. All rights reserved.