public static final class BackupSchedule.Builder
extends java.lang.Object
BackupSchedule
.Constructor and Description |
---|
Builder(java.net.URI location,
java.lang.String scheduleId)
Constructor with parameters for the required properties of
BackupSchedule . |
Modifier and Type | Method and Description |
---|---|
BackupSchedule |
build() |
BackupSchedule.Builder |
setBackupPassword(char[] backupPassword)
Password for a backup piece.
|
BackupSchedule.Builder |
setEnable(java.lang.Boolean enable)
Enable or disable a schedule.
|
BackupSchedule.Builder |
setLocationPassword(char[] locationPassword)
Password for the given location.
|
BackupSchedule.Builder |
setLocationUser(java.lang.String locationUser)
Username for the given location.
|
BackupSchedule.Builder |
setParts(java.util.List<java.lang.String> parts)
List of optional parts to be backed up.
|
BackupSchedule.Builder |
setRecurrenceInfo(RecurrenceInfo recurrenceInfo)
Recurrence information for the schedule.
|
BackupSchedule.Builder |
setRetentionInfo(RetentionInfo retentionInfo)
Retention information for the schedule.
|
public Builder(java.net.URI location, java.lang.String scheduleId)
BackupSchedule
.public BackupSchedule.Builder setParts(java.util.List<java.lang.String> parts)
Parts.list()
method to get information about
the supported parts.
If null
all the optional parts will not be backed up.parts
- New value for the property.public BackupSchedule.Builder setBackupPassword(char[] backupPassword)
null
the backup piece will not be encrypted.backupPassword
- New value for the property.public BackupSchedule.Builder setLocationUser(java.lang.String locationUser)
null
authentication will not be used for the specified location.locationUser
- New value for the property.public BackupSchedule.Builder setLocationPassword(char[] locationPassword)
null
authentication will not be used for the specified location.locationPassword
- New value for the property.public BackupSchedule.Builder setEnable(java.lang.Boolean enable)
null
the schedule will be enabled.enable
- New value for the property.public BackupSchedule.Builder setRecurrenceInfo(RecurrenceInfo recurrenceInfo)
null
backup job will not be scheduled. See RecurrenceInfo
recurrenceInfo
- New value for the property.public BackupSchedule.Builder setRetentionInfo(RetentionInfo retentionInfo)
null
all the completed backup jobs will be retained forever. See
RetentionInfo
retentionInfo
- New value for the property.public BackupSchedule build()