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