Class BackupPolicyProperties
java.lang.Object
com.azure.resourcemanager.netapp.fluent.models.BackupPolicyProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BackupPolicyProperties>
public final class BackupPolicyProperties
extends Object
implements com.azure.json.JsonSerializable<BackupPolicyProperties>
Backup policy properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BackupPolicyProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the backupPolicyId property: Backup Policy GUID ID.Get the dailyBackupsToKeep property: Daily backups count to keep.enabled()
Get the enabled property: The property to decide policy is enabled or not.static BackupPolicyProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BackupPolicyProperties from the JsonReader.Get the monthlyBackupsToKeep property: Monthly backups count to keep.Get the provisioningState property: Azure lifecycle management.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Get the volumeBackups property: A list of volumes assigned to this policy.Get the volumesAssigned property: Volumes using current backup policy.Get the weeklyBackupsToKeep property: Weekly backups count to keep.withDailyBackupsToKeep
(Integer dailyBackupsToKeep) Set the dailyBackupsToKeep property: Daily backups count to keep.withEnabled
(Boolean enabled) Set the enabled property: The property to decide policy is enabled or not.withMonthlyBackupsToKeep
(Integer monthlyBackupsToKeep) Set the monthlyBackupsToKeep property: Monthly backups count to keep.withWeeklyBackupsToKeep
(Integer weeklyBackupsToKeep) Set the weeklyBackupsToKeep property: Weekly backups count to keep.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BackupPolicyProperties
public BackupPolicyProperties()Creates an instance of BackupPolicyProperties class.
-
-
Method Details
-
backupPolicyId
Get the backupPolicyId property: Backup Policy GUID ID.- Returns:
- the backupPolicyId value.
-
provisioningState
Get the provisioningState property: Azure lifecycle management.- Returns:
- the provisioningState value.
-
dailyBackupsToKeep
Get the dailyBackupsToKeep property: Daily backups count to keep.- Returns:
- the dailyBackupsToKeep value.
-
withDailyBackupsToKeep
Set the dailyBackupsToKeep property: Daily backups count to keep.- Parameters:
dailyBackupsToKeep
- the dailyBackupsToKeep value to set.- Returns:
- the BackupPolicyProperties object itself.
-
weeklyBackupsToKeep
Get the weeklyBackupsToKeep property: Weekly backups count to keep.- Returns:
- the weeklyBackupsToKeep value.
-
withWeeklyBackupsToKeep
Set the weeklyBackupsToKeep property: Weekly backups count to keep.- Parameters:
weeklyBackupsToKeep
- the weeklyBackupsToKeep value to set.- Returns:
- the BackupPolicyProperties object itself.
-
monthlyBackupsToKeep
Get the monthlyBackupsToKeep property: Monthly backups count to keep.- Returns:
- the monthlyBackupsToKeep value.
-
withMonthlyBackupsToKeep
Set the monthlyBackupsToKeep property: Monthly backups count to keep.- Parameters:
monthlyBackupsToKeep
- the monthlyBackupsToKeep value to set.- Returns:
- the BackupPolicyProperties object itself.
-
volumesAssigned
Get the volumesAssigned property: Volumes using current backup policy.- Returns:
- the volumesAssigned value.
-
enabled
Get the enabled property: The property to decide policy is enabled or not.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: The property to decide policy is enabled or not.- Parameters:
enabled
- the enabled value to set.- Returns:
- the BackupPolicyProperties object itself.
-
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.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<BackupPolicyProperties>
- Throws:
IOException
-
fromJson
public static BackupPolicyProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BackupPolicyProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of BackupPolicyProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the BackupPolicyProperties.
-