BackupPolicyPatch Class

public final class BackupPolicyPatch
extends Resource

Backup policy Details for create and update.

Constructor Summary

Constructor Description
BackupPolicyPatch()

Creates an instance of BackupPolicyPatch class.

Method Summary

Modifier and Type Method and Description
String backupPolicyId()

Get the backupPolicyId property: Backup Policy Resource ID.

Integer dailyBackupsToKeep()

Get the dailyBackupsToKeep property: Daily backups count to keep.

Boolean enabled()

Get the enabled property: The property to decide policy is enabled or not.

Integer monthlyBackupsToKeep()

Get the monthlyBackupsToKeep property: Monthly backups count to keep.

String provisioningState()

Get the provisioningState property: Azure lifecycle management.

void validate()

Validates the instance.

List<VolumeBackups> volumeBackups()

Get the volumeBackups property: A list of volumes assigned to this policy.

Integer volumesAssigned()

Get the volumesAssigned property: Volumes using current backup policy.

Integer weeklyBackupsToKeep()

Get the weeklyBackupsToKeep property: Weekly backups count to keep.

BackupPolicyPatch withDailyBackupsToKeep(Integer dailyBackupsToKeep)

Set the dailyBackupsToKeep property: Daily backups count to keep.

BackupPolicyPatch withEnabled(Boolean enabled)

Set the enabled property: The property to decide policy is enabled or not.

BackupPolicyPatch withLocation(String location)
BackupPolicyPatch withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep)

Set the monthlyBackupsToKeep property: Monthly backups count to keep.

BackupPolicyPatch withTags(Map<String,String> tags)
BackupPolicyPatch withWeeklyBackupsToKeep(Integer weeklyBackupsToKeep)

Set the weeklyBackupsToKeep property: Weekly backups count to keep.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

BackupPolicyPatch

public BackupPolicyPatch()

Creates an instance of BackupPolicyPatch class.

Method Details

backupPolicyId

public String backupPolicyId()

Get the backupPolicyId property: Backup Policy Resource ID.

Returns:

the backupPolicyId value.

dailyBackupsToKeep

public Integer dailyBackupsToKeep()

Get the dailyBackupsToKeep property: Daily backups count to keep.

Returns:

the dailyBackupsToKeep value.

enabled

public Boolean enabled()

Get the enabled property: The property to decide policy is enabled or not.

Returns:

the enabled value.

monthlyBackupsToKeep

public Integer monthlyBackupsToKeep()

Get the monthlyBackupsToKeep property: Monthly backups count to keep.

Returns:

the monthlyBackupsToKeep value.

provisioningState

public String provisioningState()

Get the provisioningState property: Azure lifecycle management.

Returns:

the provisioningState value.

validate

public void validate()

Validates the instance.

volumeBackups

public List volumeBackups()

Get the volumeBackups property: A list of volumes assigned to this policy.

Returns:

the volumeBackups value.

volumesAssigned

public Integer volumesAssigned()

Get the volumesAssigned property: Volumes using current backup policy.

Returns:

the volumesAssigned value.

weeklyBackupsToKeep

public Integer weeklyBackupsToKeep()

Get the weeklyBackupsToKeep property: Weekly backups count to keep.

Returns:

the weeklyBackupsToKeep value.

withDailyBackupsToKeep

public BackupPolicyPatch withDailyBackupsToKeep(Integer dailyBackupsToKeep)

Set the dailyBackupsToKeep property: Daily backups count to keep.

Parameters:

dailyBackupsToKeep - the dailyBackupsToKeep value to set.

Returns:

the BackupPolicyPatch object itself.

withEnabled

public BackupPolicyPatch withEnabled(Boolean enabled)

Set the enabled property: The property to decide policy is enabled or not.

Parameters:

enabled - the enabled value to set.

Returns:

the BackupPolicyPatch object itself.

withLocation

public BackupPolicyPatch withLocation(String location)

Overrides:

BackupPolicyPatch.withLocation(String location)

Parameters:

location

withMonthlyBackupsToKeep

public BackupPolicyPatch withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep)

Set the monthlyBackupsToKeep property: Monthly backups count to keep.

Parameters:

monthlyBackupsToKeep - the monthlyBackupsToKeep value to set.

Returns:

the BackupPolicyPatch object itself.

withTags

public BackupPolicyPatch withTags(Map tags)

Overrides:

BackupPolicyPatch.withTags(Map<String,String> tags)

Parameters:

tags

withWeeklyBackupsToKeep

public BackupPolicyPatch withWeeklyBackupsToKeep(Integer weeklyBackupsToKeep)

Set the weeklyBackupsToKeep property: Weekly backups count to keep.

Parameters:

weeklyBackupsToKeep - the weeklyBackupsToKeep value to set.

Returns:

the BackupPolicyPatch object itself.

Applies to