Class BackupPolicyInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner
-
public final class BackupPolicyInner extends com.azure.core.management.Resource
Backup policy information.
-
-
Constructor Summary
Constructors Constructor Description BackupPolicyInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.String
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.Integer
monthlyBackupsToKeep()
Get the monthlyBackupsToKeep property: Monthly backups count to keep.String
provisioningState()
Get the provisioningState property: Azure lifecycle management.com.azure.core.management.SystemData
systemData()
Get the systemData property: The system meta data relating to this resource.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.BackupPolicyInner
withDailyBackupsToKeep(Integer dailyBackupsToKeep)
Set the dailyBackupsToKeep property: Daily backups count to keep.BackupPolicyInner
withEnabled(Boolean enabled)
Set the enabled property: The property to decide policy is enabled or not.BackupPolicyInner
withLocation(String location)
BackupPolicyInner
withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep)
Set the monthlyBackupsToKeep property: Monthly backups count to keep.BackupPolicyInner
withTags(Map<String,String> tags)
BackupPolicyInner
withWeeklyBackupsToKeep(Integer weeklyBackupsToKeep)
Set the weeklyBackupsToKeep property: Weekly backups count to keep.
-
-
-
Method Detail
-
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
systemData
public com.azure.core.management.SystemData systemData()
Get the systemData property: The system meta data relating to this resource.- Returns:
- the systemData value.
-
withLocation
public BackupPolicyInner withLocation(String location)
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
public BackupPolicyInner withTags(Map<String,String> tags)
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
backupPolicyId
public String backupPolicyId()
Get the backupPolicyId property: Backup Policy Resource ID.- Returns:
- the backupPolicyId value.
-
provisioningState
public String provisioningState()
Get the provisioningState property: Azure lifecycle management.- Returns:
- the provisioningState value.
-
dailyBackupsToKeep
public Integer dailyBackupsToKeep()
Get the dailyBackupsToKeep property: Daily backups count to keep.- Returns:
- the dailyBackupsToKeep value.
-
withDailyBackupsToKeep
public BackupPolicyInner withDailyBackupsToKeep(Integer dailyBackupsToKeep)
Set the dailyBackupsToKeep property: Daily backups count to keep.- Parameters:
dailyBackupsToKeep
- the dailyBackupsToKeep value to set.- Returns:
- the BackupPolicyInner object itself.
-
weeklyBackupsToKeep
public Integer weeklyBackupsToKeep()
Get the weeklyBackupsToKeep property: Weekly backups count to keep.- Returns:
- the weeklyBackupsToKeep value.
-
withWeeklyBackupsToKeep
public BackupPolicyInner withWeeklyBackupsToKeep(Integer weeklyBackupsToKeep)
Set the weeklyBackupsToKeep property: Weekly backups count to keep.- Parameters:
weeklyBackupsToKeep
- the weeklyBackupsToKeep value to set.- Returns:
- the BackupPolicyInner object itself.
-
monthlyBackupsToKeep
public Integer monthlyBackupsToKeep()
Get the monthlyBackupsToKeep property: Monthly backups count to keep.- Returns:
- the monthlyBackupsToKeep value.
-
withMonthlyBackupsToKeep
public BackupPolicyInner withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep)
Set the monthlyBackupsToKeep property: Monthly backups count to keep.- Parameters:
monthlyBackupsToKeep
- the monthlyBackupsToKeep value to set.- Returns:
- the BackupPolicyInner object itself.
-
volumesAssigned
public Integer volumesAssigned()
Get the volumesAssigned property: Volumes using current backup policy.- Returns:
- the volumesAssigned value.
-
enabled
public Boolean enabled()
Get the enabled property: The property to decide policy is enabled or not.- Returns:
- the enabled value.
-
withEnabled
public BackupPolicyInner 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 BackupPolicyInner object itself.
-
volumeBackups
public List<VolumeBackups> volumeBackups()
Get the volumeBackups property: A list of volumes assigned to this policy.- Returns:
- the volumeBackups value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-