public class BackupSchedule extends Object
| Constructor and Description |
|---|
BackupSchedule() |
| Modifier and Type | Method and Description |
|---|---|
int |
frequencyInterval()
Get how often the backup should be executed (e.g.
|
FrequencyUnit |
frequencyUnit()
Get the unit of time for how often the backup should be executed (e.g.
|
boolean |
keepAtLeastOneBackup()
Get true if the retention policy should always keep at least one backup in the storage account, regardless how old it is; false otherwise.
|
org.joda.time.DateTime |
lastExecutionTime()
Get last time when this schedule was triggered.
|
int |
retentionPeriodInDays()
Get after how many days backups should be deleted.
|
org.joda.time.DateTime |
startTime()
Get when the schedule should start working.
|
BackupSchedule |
withFrequencyInterval(int frequencyInterval)
Set how often the backup should be executed (e.g.
|
BackupSchedule |
withFrequencyUnit(FrequencyUnit frequencyUnit)
Set the unit of time for how often the backup should be executed (e.g.
|
BackupSchedule |
withKeepAtLeastOneBackup(boolean keepAtLeastOneBackup)
Set true if the retention policy should always keep at least one backup in the storage account, regardless how old it is; false otherwise.
|
BackupSchedule |
withRetentionPeriodInDays(int retentionPeriodInDays)
Set after how many days backups should be deleted.
|
BackupSchedule |
withStartTime(org.joda.time.DateTime startTime)
Set when the schedule should start working.
|
public int frequencyInterval()
public BackupSchedule withFrequencyInterval(int frequencyInterval)
frequencyInterval - the frequencyInterval value to setpublic FrequencyUnit frequencyUnit()
public BackupSchedule withFrequencyUnit(FrequencyUnit frequencyUnit)
frequencyUnit - the frequencyUnit value to setpublic boolean keepAtLeastOneBackup()
public BackupSchedule withKeepAtLeastOneBackup(boolean keepAtLeastOneBackup)
keepAtLeastOneBackup - the keepAtLeastOneBackup value to setpublic int retentionPeriodInDays()
public BackupSchedule withRetentionPeriodInDays(int retentionPeriodInDays)
retentionPeriodInDays - the retentionPeriodInDays value to setpublic org.joda.time.DateTime startTime()
public BackupSchedule withStartTime(org.joda.time.DateTime startTime)
startTime - the startTime value to setpublic org.joda.time.DateTime lastExecutionTime()
Copyright © 2019. All rights reserved.