Class VolumePatchPropertiesDataProtection
java.lang.Object
com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VolumePatchPropertiesDataProtection>
public final class VolumePatchPropertiesDataProtection
extends Object
implements com.azure.json.JsonSerializable<VolumePatchPropertiesDataProtection>
DataProtection
DataProtection type volumes include an object containing details of the replication.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VolumePatchPropertiesDataProtection class. -
Method Summary
Modifier and TypeMethodDescriptionbackup()
Get the backup property: Backup Properties.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VolumePatchPropertiesDataProtection from the JsonReader.snapshot()
Get the snapshot property: Snapshot properties.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withBackup
(VolumeBackupProperties backup) Set the backup property: Backup Properties.withSnapshot
(VolumeSnapshotProperties snapshot) Set the snapshot property: Snapshot properties.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
-
VolumePatchPropertiesDataProtection
public VolumePatchPropertiesDataProtection()Creates an instance of VolumePatchPropertiesDataProtection class.
-
-
Method Details
-
backup
Get the backup property: Backup Properties.- Returns:
- the backup value.
-
withBackup
Set the backup property: Backup Properties.- Parameters:
backup
- the backup value to set.- Returns:
- the VolumePatchPropertiesDataProtection object itself.
-
snapshot
Get the snapshot property: Snapshot properties.- Returns:
- the snapshot value.
-
withSnapshot
Set the snapshot property: Snapshot properties.- Parameters:
snapshot
- the snapshot value to set.- Returns:
- the VolumePatchPropertiesDataProtection 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<VolumePatchPropertiesDataProtection>
- Throws:
IOException
-
fromJson
public static VolumePatchPropertiesDataProtection fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VolumePatchPropertiesDataProtection from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of VolumePatchPropertiesDataProtection 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 VolumePatchPropertiesDataProtection.
-