BackupSchedule Class

  • java.lang.Object
    • com.microsoft.azure.management.appservice.BackupSchedule

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.

FrequencyUnit 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.

BackupSchedule withFrequencyInterval(int frequencyInterval)

Set the frequencyInterval value.

BackupSchedule withFrequencyUnit(FrequencyUnit frequencyUnit)

Set the frequencyUnit value.

BackupSchedule withKeepAtLeastOneBackup(boolean keepAtLeastOneBackup)

Set the keepAtLeastOneBackup value.

BackupSchedule withRetentionPeriodInDays(int retentionPeriodInDays)

Set the retentionPeriodInDays value.

BackupSchedule withStartTime(DateTime startTime)

Set the startTime value.

Method Details

frequencyInterval

public int frequencyInterval()

Get the frequencyInterval value.

Returns:

the frequencyInterval value

frequencyUnit

public FrequencyUnit frequencyUnit()

Get the frequencyUnit value.

Returns:

the frequencyUnit value

keepAtLeastOneBackup

public boolean keepAtLeastOneBackup()

Get the keepAtLeastOneBackup value.

Returns:

the keepAtLeastOneBackup value

lastExecutionTime

public DateTime lastExecutionTime()

Get the lastExecutionTime value.

Returns:

the lastExecutionTime value

retentionPeriodInDays

public int retentionPeriodInDays()

Get the retentionPeriodInDays value.

Returns:

the retentionPeriodInDays value

startTime

public DateTime startTime()

Get the startTime value.

Returns:

the startTime value

withFrequencyInterval

public BackupSchedule withFrequencyInterval(int frequencyInterval)

Set the frequencyInterval value.

Parameters:

frequencyInterval - the frequencyInterval value to set

Returns:

the BackupSchedule object itself.

withFrequencyUnit

public BackupSchedule withFrequencyUnit(FrequencyUnit frequencyUnit)

Set the frequencyUnit value.

Parameters:

frequencyUnit - the frequencyUnit value to set

Returns:

the BackupSchedule object itself.

withKeepAtLeastOneBackup

public BackupSchedule withKeepAtLeastOneBackup(boolean keepAtLeastOneBackup)

Set the keepAtLeastOneBackup value.

Parameters:

keepAtLeastOneBackup - the keepAtLeastOneBackup value to set

Returns:

the BackupSchedule object itself.

withRetentionPeriodInDays

public BackupSchedule withRetentionPeriodInDays(int retentionPeriodInDays)

Set the retentionPeriodInDays value.

Parameters:

retentionPeriodInDays - the retentionPeriodInDays value to set

Returns:

the BackupSchedule object itself.

withStartTime

public BackupSchedule withStartTime(DateTime startTime)

Set the startTime value.

Parameters:

startTime - the startTime value to set

Returns:

the BackupSchedule object itself.

Applies to