BackupPolicyPatch Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. netapp. models. BackupPolicyPatch
- com.
- com.
- com.
public final class BackupPolicyPatch
extends Resource
Backup policy Details for create and update.
Constructor Summary
Constructor | Description |
---|---|
BackupPolicyPatch() |
Creates an instance of Backup |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
backupPolicyId()
Get the backup |
Integer |
dailyBackupsToKeep()
Get the daily |
Boolean |
enabled()
Get the enabled property: The property to decide policy is enabled or not. |
Integer |
monthlyBackupsToKeep()
Get the monthly |
String |
provisioningState()
Get the provisioning |
void |
validate()
Validates the instance. |
List<Volume |
volumeBackups()
Get the volume |
Integer |
volumesAssigned()
Get the volumes |
Integer |
weeklyBackupsToKeep()
Get the weekly |
Backup |
withDailyBackupsToKeep(Integer dailyBackupsToKeep)
Set the daily |
Backup |
withEnabled(Boolean enabled)
Set the enabled property: The property to decide policy is enabled or not. |
Backup |
withLocation(String location) |
Backup |
withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep)
Set the monthly |
Backup |
withTags(Map<String,String> tags) |
Backup |
withWeeklyBackupsToKeep(Integer weeklyBackupsToKeep)
Set the weekly |
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:
dailyBackupsToKeep
public Integer dailyBackupsToKeep()
Get the dailyBackupsToKeep property: Daily backups count to keep.
Returns:
enabled
public Boolean enabled()
Get the enabled property: The property to decide policy is enabled or not.
Returns:
monthlyBackupsToKeep
public Integer monthlyBackupsToKeep()
Get the monthlyBackupsToKeep property: Monthly backups count to keep.
Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: Azure lifecycle management.
Returns:
validate
public void validate()
Validates the instance.
volumeBackups
public List
Get the volumeBackups property: A list of volumes assigned to this policy.
Returns:
volumesAssigned
public Integer volumesAssigned()
Get the volumesAssigned property: Volumes using current backup policy.
Returns:
weeklyBackupsToKeep
public Integer weeklyBackupsToKeep()
Get the weeklyBackupsToKeep property: Weekly backups count to keep.
Returns:
withDailyBackupsToKeep
public BackupPolicyPatch withDailyBackupsToKeep(Integer dailyBackupsToKeep)
Set the dailyBackupsToKeep property: Daily backups count to keep.
Parameters:
Returns:
withEnabled
public BackupPolicyPatch withEnabled(Boolean enabled)
Set the enabled property: The property to decide policy is enabled or not.
Parameters:
Returns:
withLocation
public BackupPolicyPatch withLocation(String location)
Overrides:
BackupPolicyPatch.withLocation(String location)Parameters:
withMonthlyBackupsToKeep
public BackupPolicyPatch withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep)
Set the monthlyBackupsToKeep property: Monthly backups count to keep.
Parameters:
Returns:
withTags
public BackupPolicyPatch withTags(Map
Overrides:
BackupPolicyPatch.withTags(Map<String,String> tags)Parameters:
withWeeklyBackupsToKeep
public BackupPolicyPatch withWeeklyBackupsToKeep(Integer weeklyBackupsToKeep)
Set the weeklyBackupsToKeep property: Weekly backups count to keep.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for