Class VolumeBackupProperties
java.lang.Object
com.azure.resourcemanager.netapp.models.VolumeBackupProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VolumeBackupProperties>
public final class VolumeBackupProperties
extends Object
implements com.azure.json.JsonSerializable<VolumeBackupProperties>
Volume Backup Properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VolumeBackupProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the backupPolicyId property: Backup Policy Resource ID.Get the backupVaultId property: Backup Vault Resource ID.static VolumeBackupProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VolumeBackupProperties from the JsonReader.Get the policyEnforced property: Policy Enforced.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withBackupPolicyId
(String backupPolicyId) Set the backupPolicyId property: Backup Policy Resource ID.withBackupVaultId
(String backupVaultId) Set the backupVaultId property: Backup Vault Resource ID.withPolicyEnforced
(Boolean policyEnforced) Set the policyEnforced property: Policy Enforced.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
-
VolumeBackupProperties
public VolumeBackupProperties()Creates an instance of VolumeBackupProperties class.
-
-
Method Details
-
backupPolicyId
Get the backupPolicyId property: Backup Policy Resource ID.- Returns:
- the backupPolicyId value.
-
withBackupPolicyId
Set the backupPolicyId property: Backup Policy Resource ID.- Parameters:
backupPolicyId
- the backupPolicyId value to set.- Returns:
- the VolumeBackupProperties object itself.
-
policyEnforced
Get the policyEnforced property: Policy Enforced.- Returns:
- the policyEnforced value.
-
withPolicyEnforced
Set the policyEnforced property: Policy Enforced.- Parameters:
policyEnforced
- the policyEnforced value to set.- Returns:
- the VolumeBackupProperties object itself.
-
backupVaultId
Get the backupVaultId property: Backup Vault Resource ID.- Returns:
- the backupVaultId value.
-
withBackupVaultId
Set the backupVaultId property: Backup Vault Resource ID.- Parameters:
backupVaultId
- the backupVaultId value to set.- Returns:
- the VolumeBackupProperties object itself.
-
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<VolumeBackupProperties>
- Throws:
IOException
-
fromJson
public static VolumeBackupProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VolumeBackupProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of VolumeBackupProperties 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 VolumeBackupProperties.
-