public final class ImageOSDisk extends ImageDisk
Constructor and Description |
---|
ImageOSDisk() |
Modifier and Type | Method and Description |
---|---|
OperatingSystemStateTypes |
osState()
Get the osState property: The OS State.
|
OperatingSystemTypes |
osType()
Get the osType property: This property allows you to specify the type of the OS that is included in the disk if
creating a VM from a custom image.
|
void |
validate()
Validates the instance.
|
ImageOSDisk |
withOsState(OperatingSystemStateTypes osState)
Set the osState property: The OS State.
|
ImageOSDisk |
withOsType(OperatingSystemTypes osType)
Set the osType property: This property allows you to specify the type of the OS that is included in the disk if
creating a VM from a custom image.
|
blobUri, caching, diskEncryptionSet, diskSizeGB, managedDisk, snapshot, storageAccountType, withBlobUri, withCaching, withDiskEncryptionSet, withDiskSizeGB, withManagedDisk, withSnapshot, withStorageAccountType
public OperatingSystemTypes osType()
public ImageOSDisk withOsType(OperatingSystemTypes osType)
osType
- the osType value to set.public OperatingSystemStateTypes osState()
public ImageOSDisk withOsState(OperatingSystemStateTypes osState)
osState
- the osState value to set.public void validate()
validate
in class ImageDisk
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.