public final class DataDiskProperties extends Object
Constructor and Description |
---|
DataDiskProperties() |
Modifier and Type | Method and Description |
---|---|
AttachNewDataDiskOptions |
attachNewDataDiskOptions()
Get the attachNewDataDiskOptions property: Specifies options to attach a new disk to the virtual machine.
|
String |
existingLabDiskId()
Get the existingLabDiskId property: Specifies the existing lab disk id to attach to virtual machine.
|
HostCachingOptions |
hostCaching()
Get the hostCaching property: Caching option for a data disk (i.e.
|
void |
validate()
Validates the instance.
|
DataDiskProperties |
withAttachNewDataDiskOptions(AttachNewDataDiskOptions attachNewDataDiskOptions)
Set the attachNewDataDiskOptions property: Specifies options to attach a new disk to the virtual machine.
|
DataDiskProperties |
withExistingLabDiskId(String existingLabDiskId)
Set the existingLabDiskId property: Specifies the existing lab disk id to attach to virtual machine.
|
DataDiskProperties |
withHostCaching(HostCachingOptions hostCaching)
Set the hostCaching property: Caching option for a data disk (i.e.
|
public AttachNewDataDiskOptions attachNewDataDiskOptions()
public DataDiskProperties withAttachNewDataDiskOptions(AttachNewDataDiskOptions attachNewDataDiskOptions)
attachNewDataDiskOptions
- the attachNewDataDiskOptions value to set.public String existingLabDiskId()
public DataDiskProperties withExistingLabDiskId(String existingLabDiskId)
existingLabDiskId
- the existingLabDiskId value to set.public HostCachingOptions hostCaching()
public DataDiskProperties withHostCaching(HostCachingOptions hostCaching)
hostCaching
- the hostCaching value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.