Class RestorePointSourceVMDataDisk
java.lang.Object
com.azure.resourcemanager.compute.models.RestorePointSourceVMDataDisk
Describes a data disk.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaching()Get the caching property: Gets the caching type.Get the diskRestorePoint property: Gets the disk restore point Id.Get the diskSizeGB property: Gets the initial disk size in GB for blank data disks, and the new desired size for existing OS and Data disks.lun()Get the lun property: Gets the logical unit number.Get the managedDisk property: Gets the managed disk details.name()Get the name property: Gets the disk name.voidvalidate()Validates the instance.withCaching(CachingTypes caching) Set the caching property: Gets the caching type.withDiskRestorePoint(ApiEntityReference diskRestorePoint) Set the diskRestorePoint property: Gets the disk restore point Id.withDiskSizeGB(Integer diskSizeGB) Set the diskSizeGB property: Gets the initial disk size in GB for blank data disks, and the new desired size for existing OS and Data disks.Set the lun property: Gets the logical unit number.withManagedDisk(ManagedDiskParameters managedDisk) Set the managedDisk property: Gets the managed disk details.Set the name property: Gets the disk name.
-
Constructor Details
-
RestorePointSourceVMDataDisk
public RestorePointSourceVMDataDisk()
-
-
Method Details
-
lun
Get the lun property: Gets the logical unit number.- Returns:
- the lun value.
-
withLun
Set the lun property: Gets the logical unit number.- Parameters:
lun- the lun value to set.- Returns:
- the RestorePointSourceVMDataDisk object itself.
-
name
Get the name property: Gets the disk name.- Returns:
- the name value.
-
withName
Set the name property: Gets the disk name.- Parameters:
name- the name value to set.- Returns:
- the RestorePointSourceVMDataDisk object itself.
-
caching
Get the caching property: Gets the caching type.- Returns:
- the caching value.
-
withCaching
Set the caching property: Gets the caching type.- Parameters:
caching- the caching value to set.- Returns:
- the RestorePointSourceVMDataDisk object itself.
-
diskSizeGB
Get the diskSizeGB property: Gets the initial disk size in GB for blank data disks, and the new desired size for existing OS and Data disks.- Returns:
- the diskSizeGB value.
-
withDiskSizeGB
Set the diskSizeGB property: Gets the initial disk size in GB for blank data disks, and the new desired size for existing OS and Data disks.- Parameters:
diskSizeGB- the diskSizeGB value to set.- Returns:
- the RestorePointSourceVMDataDisk object itself.
-
managedDisk
Get the managedDisk property: Gets the managed disk details.- Returns:
- the managedDisk value.
-
withManagedDisk
Set the managedDisk property: Gets the managed disk details.- Parameters:
managedDisk- the managedDisk value to set.- Returns:
- the RestorePointSourceVMDataDisk object itself.
-
diskRestorePoint
Get the diskRestorePoint property: Gets the disk restore point Id.- Returns:
- the diskRestorePoint value.
-
withDiskRestorePoint
Set the diskRestorePoint property: Gets the disk restore point Id.- Parameters:
diskRestorePoint- the diskRestorePoint value to set.- Returns:
- the RestorePointSourceVMDataDisk object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-