Class DataDiskProperties
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.DataDiskProperties
Request body for adding a new or existing data disk to a virtual machine.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the attachNewDataDiskOptions property: Specifies options to attach a new disk to the virtual machine.Get the existingLabDiskId property: Specifies the existing lab disk id to attach to virtual machine.Get the hostCaching property: Caching option for a data disk (i.e.void
validate()
Validates the instance.withAttachNewDataDiskOptions
(AttachNewDataDiskOptions attachNewDataDiskOptions) Set the attachNewDataDiskOptions property: Specifies options to attach a new disk to the virtual machine.withExistingLabDiskId
(String existingLabDiskId) Set the existingLabDiskId property: Specifies the existing lab disk id to attach to virtual machine.withHostCaching
(HostCachingOptions hostCaching) Set the hostCaching property: Caching option for a data disk (i.e.
-
Constructor Details
-
DataDiskProperties
public DataDiskProperties()Creates an instance of DataDiskProperties class.
-
-
Method Details
-
attachNewDataDiskOptions
Get the attachNewDataDiskOptions property: Specifies options to attach a new disk to the virtual machine.- Returns:
- the attachNewDataDiskOptions value.
-
withAttachNewDataDiskOptions
public DataDiskProperties withAttachNewDataDiskOptions(AttachNewDataDiskOptions attachNewDataDiskOptions) Set the attachNewDataDiskOptions property: Specifies options to attach a new disk to the virtual machine.- Parameters:
attachNewDataDiskOptions
- the attachNewDataDiskOptions value to set.- Returns:
- the DataDiskProperties object itself.
-
existingLabDiskId
Get the existingLabDiskId property: Specifies the existing lab disk id to attach to virtual machine.- Returns:
- the existingLabDiskId value.
-
withExistingLabDiskId
Set the existingLabDiskId property: Specifies the existing lab disk id to attach to virtual machine.- Parameters:
existingLabDiskId
- the existingLabDiskId value to set.- Returns:
- the DataDiskProperties object itself.
-
hostCaching
Get the hostCaching property: Caching option for a data disk (i.e. None, ReadOnly, ReadWrite).- Returns:
- the hostCaching value.
-
withHostCaching
Set the hostCaching property: Caching option for a data disk (i.e. None, ReadOnly, ReadWrite).- Parameters:
hostCaching
- the hostCaching value to set.- Returns:
- the DataDiskProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-