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 Details

    • VolumeBackupProperties

      public VolumeBackupProperties()
      Creates an instance of VolumeBackupProperties class.
  • Method Details

    • backupPolicyId

      public String backupPolicyId()
      Get the backupPolicyId property: Backup Policy Resource ID.
      Returns:
      the backupPolicyId value.
    • withBackupPolicyId

      public VolumeBackupProperties withBackupPolicyId(String backupPolicyId)
      Set the backupPolicyId property: Backup Policy Resource ID.
      Parameters:
      backupPolicyId - the backupPolicyId value to set.
      Returns:
      the VolumeBackupProperties object itself.
    • policyEnforced

      public Boolean policyEnforced()
      Get the policyEnforced property: Policy Enforced.
      Returns:
      the policyEnforced value.
    • withPolicyEnforced

      public VolumeBackupProperties withPolicyEnforced(Boolean policyEnforced)
      Set the policyEnforced property: Policy Enforced.
      Parameters:
      policyEnforced - the policyEnforced value to set.
      Returns:
      the VolumeBackupProperties object itself.
    • backupVaultId

      public String backupVaultId()
      Get the backupVaultId property: Backup Vault Resource ID.
      Returns:
      the backupVaultId value.
    • withBackupVaultId

      public VolumeBackupProperties withBackupVaultId(String backupVaultId)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.