public final class BackupSchedule extends Object
| Constructor and Description |
|---|
BackupSchedule() |
| Modifier and Type | Method and Description |
|---|---|
int |
frequencyInterval()
Get the frequencyInterval property: How often the backup should be executed (e.g.
|
FrequencyUnit |
frequencyUnit()
Get the frequencyUnit property: The unit of time for how often the backup should be executed (e.g.
|
boolean |
keepAtLeastOneBackup()
Get the keepAtLeastOneBackup property: True if the retention policy should always keep at least one backup in the
storage account, regardless how old it is; false otherwise.
|
OffsetDateTime |
lastExecutionTime()
Get the lastExecutionTime property: Last time when this schedule was triggered.
|
int |
retentionPeriodInDays()
Get the retentionPeriodInDays property: After how many days backups should be deleted.
|
OffsetDateTime |
startTime()
Get the startTime property: When the schedule should start working.
|
void |
validate()
Validates the instance.
|
BackupSchedule |
withFrequencyInterval(int frequencyInterval)
Set the frequencyInterval property: How often the backup should be executed (e.g.
|
BackupSchedule |
withFrequencyUnit(FrequencyUnit frequencyUnit)
Set the frequencyUnit property: The unit of time for how often the backup should be executed (e.g.
|
BackupSchedule |
withKeepAtLeastOneBackup(boolean keepAtLeastOneBackup)
Set the keepAtLeastOneBackup property: 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 the retentionPeriodInDays property: After how many days backups should be deleted.
|
BackupSchedule |
withStartTime(OffsetDateTime startTime)
Set the startTime property: When the schedule should start working.
|
public int frequencyInterval()
public BackupSchedule withFrequencyInterval(int frequencyInterval)
frequencyInterval - the frequencyInterval value to set.public FrequencyUnit frequencyUnit()
public BackupSchedule withFrequencyUnit(FrequencyUnit frequencyUnit)
frequencyUnit - the frequencyUnit value to set.public boolean keepAtLeastOneBackup()
public BackupSchedule withKeepAtLeastOneBackup(boolean keepAtLeastOneBackup)
keepAtLeastOneBackup - the keepAtLeastOneBackup value to set.public int retentionPeriodInDays()
public BackupSchedule withRetentionPeriodInDays(int retentionPeriodInDays)
retentionPeriodInDays - the retentionPeriodInDays value to set.public OffsetDateTime startTime()
public BackupSchedule withStartTime(OffsetDateTime startTime)
startTime - the startTime value to set.public OffsetDateTime lastExecutionTime()
public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.