Class ImageOSDisk
java.lang.Object
com.microsoft.azure.management.compute.ImageDisk
com.microsoft.azure.management.compute.ImageOSDisk
Describes an Operating System disk.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionosState()
Get the OS State.osType()
Get 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.withOsState
(OperatingSystemStateTypes osState) Set the OS State.withOsType
(OperatingSystemTypes osType) Set 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.Methods inherited from class com.microsoft.azure.management.compute.ImageDisk
blobUri, caching, diskEncryptionSet, diskSizeGB, managedDisk, snapshot, storageAccountType, withBlobUri, withCaching, withDiskEncryptionSet, withDiskSizeGB, withManagedDisk, withSnapshot, withStorageAccountType
-
Constructor Details
-
ImageOSDisk
public ImageOSDisk()
-
-
Method Details
-
osType
Get 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. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'.- Returns:
- the osType value
-
withOsType
Set 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. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'.- Parameters:
osType
- the osType value to set- Returns:
- the ImageOSDisk object itself.
-
osState
Get the OS State. Possible values include: 'Generalized', 'Specialized'.- Returns:
- the osState value
-
withOsState
Set the OS State. Possible values include: 'Generalized', 'Specialized'.- Parameters:
osState
- the osState value to set- Returns:
- the ImageOSDisk object itself.
-