Class VolumePropertiesDataProtection
- java.lang.Object
-
- com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection
-
public final class VolumePropertiesDataProtection extends Object
DataProtection DataProtection type volumes include an object containing details of the replication.
-
-
Constructor Summary
Constructors Constructor Description VolumePropertiesDataProtection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeBackupProperties
backup()
Get the backup property: Backup Properties.ReplicationObject
replication()
Get the replication property: Replication properties.VolumeSnapshotProperties
snapshot()
Get the snapshot property: Snapshot properties.void
validate()
Validates the instance.VolumePropertiesDataProtection
withBackup(VolumeBackupProperties backup)
Set the backup property: Backup Properties.VolumePropertiesDataProtection
withReplication(ReplicationObject replication)
Set the replication property: Replication properties.VolumePropertiesDataProtection
withSnapshot(VolumeSnapshotProperties snapshot)
Set the snapshot property: Snapshot properties.
-
-
-
Method Detail
-
backup
public VolumeBackupProperties backup()
Get the backup property: Backup Properties.- Returns:
- the backup value.
-
withBackup
public VolumePropertiesDataProtection withBackup(VolumeBackupProperties backup)
Set the backup property: Backup Properties.- Parameters:
backup
- the backup value to set.- Returns:
- the VolumePropertiesDataProtection object itself.
-
replication
public ReplicationObject replication()
Get the replication property: Replication properties.- Returns:
- the replication value.
-
withReplication
public VolumePropertiesDataProtection withReplication(ReplicationObject replication)
Set the replication property: Replication properties.- Parameters:
replication
- the replication value to set.- Returns:
- the VolumePropertiesDataProtection object itself.
-
snapshot
public VolumeSnapshotProperties snapshot()
Get the snapshot property: Snapshot properties.- Returns:
- the snapshot value.
-
withSnapshot
public VolumePropertiesDataProtection withSnapshot(VolumeSnapshotProperties snapshot)
Set the snapshot property: Snapshot properties.- Parameters:
snapshot
- the snapshot value to set.- Returns:
- the VolumePropertiesDataProtection object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-