BackupSchedule Class
- java.
lang. Object - com.
microsoft. azure. management. appservice. BackupSchedule
- com.
public class BackupSchedule
Description of a backup schedule. Describes how often should be the backup performed and what should be the retention policy.
Method Summary
Modifier and Type | Method and Description |
---|---|
int |
frequencyInterval()
Get the frequencyInterval value. |
Frequency |
frequencyUnit()
Get the frequencyUnit value. |
boolean |
keepAtLeastOneBackup()
Get the keepAtLeastOneBackup value. |
DateTime |
lastExecutionTime()
Get the lastExecutionTime value. |
int |
retentionPeriodInDays()
Get the retentionPeriodInDays value. |
DateTime |
startTime()
Get the startTime value. |
Backup |
withFrequencyInterval(int frequencyInterval)
Set the frequencyInterval value. |
Backup |
withFrequencyUnit(FrequencyUnit frequencyUnit)
Set the frequencyUnit value. |
Backup |
withKeepAtLeastOneBackup(boolean keepAtLeastOneBackup)
Set the keepAtLeastOneBackup value. |
Backup |
withRetentionPeriodInDays(int retentionPeriodInDays)
Set the retentionPeriodInDays value. |
Backup |
withStartTime(DateTime startTime)
Set the startTime value. |
Method Details
frequencyInterval
public int frequencyInterval()
Get the frequencyInterval value.
Returns:
frequencyUnit
public FrequencyUnit frequencyUnit()
Get the frequencyUnit value.
Returns:
keepAtLeastOneBackup
public boolean keepAtLeastOneBackup()
Get the keepAtLeastOneBackup value.
Returns:
lastExecutionTime
public DateTime lastExecutionTime()
Get the lastExecutionTime value.
Returns:
retentionPeriodInDays
public int retentionPeriodInDays()
Get the retentionPeriodInDays value.
Returns:
startTime
public DateTime startTime()
Get the startTime value.
Returns:
withFrequencyInterval
public BackupSchedule withFrequencyInterval(int frequencyInterval)
Set the frequencyInterval value.
Parameters:
Returns:
withFrequencyUnit
public BackupSchedule withFrequencyUnit(FrequencyUnit frequencyUnit)
Set the frequencyUnit value.
Parameters:
Returns:
withKeepAtLeastOneBackup
public BackupSchedule withKeepAtLeastOneBackup(boolean keepAtLeastOneBackup)
Set the keepAtLeastOneBackup value.
Parameters:
Returns:
withRetentionPeriodInDays
public BackupSchedule withRetentionPeriodInDays(int retentionPeriodInDays)
Set the retentionPeriodInDays value.
Parameters:
Returns:
withStartTime
public BackupSchedule withStartTime(DateTime startTime)
Set the startTime value.
Parameters:
Returns:
Applies to
Azure SDK for Java