Class BackupSchedule
java.lang.Object
com.microsoft.azure.management.appservice.BackupSchedule
Description of a backup schedule. Describes how often should be the backup
performed and what should be the retention policy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Get how often the backup should be executed (e.g.Get the unit of time for how often the backup should be executed (e.g.boolean
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
Get last time when this schedule was triggered.int
Get after how many days backups should be deleted.org.joda.time.DateTime
Get when the schedule should start working.withFrequencyInterval
(int frequencyInterval) Set how often the backup should be executed (e.g.withFrequencyUnit
(FrequencyUnit frequencyUnit) Set the unit of time for how often the backup should be executed (e.g.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.withRetentionPeriodInDays
(int retentionPeriodInDays) Set after how many days backups should be deleted.withStartTime
(org.joda.time.DateTime startTime) Set when the schedule should start working.
-
Constructor Details
-
BackupSchedule
public BackupSchedule()
-
-
Method Details
-
frequencyInterval
public int frequencyInterval()Get how often the backup should be executed (e.g. for weekly backup, this should be set to 7 and FrequencyUnit should be set to Day).- Returns:
- the frequencyInterval value
-
withFrequencyInterval
Set how often the backup should be executed (e.g. for weekly backup, this should be set to 7 and FrequencyUnit should be set to Day).- Parameters:
frequencyInterval
- the frequencyInterval value to set- Returns:
- the BackupSchedule object itself.
-
frequencyUnit
Get the unit of time for how often the backup should be executed (e.g. for weekly backup, this should be set to Day and FrequencyInterval should be set to 7). Possible values include: 'Day', 'Hour'.- Returns:
- the frequencyUnit value
-
withFrequencyUnit
Set the unit of time for how often the backup should be executed (e.g. for weekly backup, this should be set to Day and FrequencyInterval should be set to 7). Possible values include: 'Day', 'Hour'.- Parameters:
frequencyUnit
- the frequencyUnit value to set- Returns:
- the BackupSchedule object itself.
-
keepAtLeastOneBackup
public 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.- Returns:
- the keepAtLeastOneBackup value
-
withKeepAtLeastOneBackup
Set true if the retention policy should always keep at least one backup in the storage account, regardless how old it is; false otherwise.- Parameters:
keepAtLeastOneBackup
- the keepAtLeastOneBackup value to set- Returns:
- the BackupSchedule object itself.
-
retentionPeriodInDays
public int retentionPeriodInDays()Get after how many days backups should be deleted.- Returns:
- the retentionPeriodInDays value
-
withRetentionPeriodInDays
Set after how many days backups should be deleted.- Parameters:
retentionPeriodInDays
- the retentionPeriodInDays value to set- Returns:
- the BackupSchedule object itself.
-
startTime
public org.joda.time.DateTime startTime()Get when the schedule should start working.- Returns:
- the startTime value
-
withStartTime
Set when the schedule should start working.- Parameters:
startTime
- the startTime value to set- Returns:
- the BackupSchedule object itself.
-
lastExecutionTime
public org.joda.time.DateTime lastExecutionTime()Get last time when this schedule was triggered.- Returns:
- the lastExecutionTime value
-