DataDiskProperties Class
- java.
lang. Object - com.
azure. resourcemanager. devtestlabs. models. DataDiskProperties
- com.
public final class DataDiskProperties
Request body for adding a new or existing data disk to a virtual machine.
Constructor Summary
Constructor | Description |
---|---|
DataDiskProperties() |
Creates an instance of Data |
Method Summary
Modifier and Type | Method and Description |
---|---|
Attach |
attachNewDataDiskOptions()
Get the attach |
String |
existingLabDiskId()
Get the existing |
Host |
hostCaching()
Get the host |
void |
validate()
Validates the instance. |
Data |
withAttachNewDataDiskOptions(AttachNewDataDiskOptions attachNewDataDiskOptions)
Set the attach |
Data |
withExistingLabDiskId(String existingLabDiskId)
Set the existing |
Data |
withHostCaching(HostCachingOptions hostCaching)
Set the host |
Methods inherited from java.lang.Object
Constructor Details
DataDiskProperties
public DataDiskProperties()
Creates an instance of DataDiskProperties class.
Method Details
attachNewDataDiskOptions
public AttachNewDataDiskOptions attachNewDataDiskOptions()
Get the attachNewDataDiskOptions property: Specifies options to attach a new disk to the virtual machine.
Returns:
existingLabDiskId
public String existingLabDiskId()
Get the existingLabDiskId property: Specifies the existing lab disk id to attach to virtual machine.
Returns:
hostCaching
public HostCachingOptions hostCaching()
Get the hostCaching property: Caching option for a data disk (i.e. None, ReadOnly, ReadWrite).
Returns:
validate
public void validate()
Validates the instance.
withAttachNewDataDiskOptions
public DataDiskProperties withAttachNewDataDiskOptions(AttachNewDataDiskOptions attachNewDataDiskOptions)
Set the attachNewDataDiskOptions property: Specifies options to attach a new disk to the virtual machine.
Parameters:
Returns:
withExistingLabDiskId
public DataDiskProperties withExistingLabDiskId(String existingLabDiskId)
Set the existingLabDiskId property: Specifies the existing lab disk id to attach to virtual machine.
Parameters:
Returns:
withHostCaching
public DataDiskProperties withHostCaching(HostCachingOptions hostCaching)
Set the hostCaching property: Caching option for a data disk (i.e. None, ReadOnly, ReadWrite).
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for