Class VirtualMachineScaleSetOSDisk
java.lang.Object
com.microsoft.azure.management.compute.VirtualMachineScaleSetOSDisk
Describes a virtual machine scale set operating system disk.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncaching()
Get specifies the caching requirements.Get specifies how the virtual machines in the scale set should be created.<br><br> The only allowed value is: **FromImage** – This value is used when you are using an image to create the virtual machine.Get specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set.Get specifies the size of the operating system disk in gigabytes.image()
Get specifies information about the unmanaged user image to base the scale set on.Get the managed disk parameters.name()
Get the disk name.osType()
Get this property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.Get specifies the container urls that are used to store operating system disks for the scale set.withCaching
(CachingTypes caching) Set specifies the caching requirements.withCreateOption
(DiskCreateOptionTypes createOption) Set specifies how the virtual machines in the scale set should be created.<br><br> The only allowed value is: **FromImage** – This value is used when you are using an image to create the virtual machine.withDiffDiskSettings
(DiffDiskSettings diffDiskSettings) Set specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set.withDiskSizeGB
(Integer diskSizeGB) Set specifies the size of the operating system disk in gigabytes.withImage
(VirtualHardDisk image) Set specifies information about the unmanaged user image to base the scale set on.Set the managed disk parameters.Set the disk name.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 user-image or a specialized VHD.withVhdContainers
(List<String> vhdContainers) Set specifies the container urls that are used to store operating system disks for the scale set.withWriteAcceleratorEnabled
(Boolean writeAcceleratorEnabled) Set specifies whether writeAccelerator should be enabled or disabled on the disk.Get specifies whether writeAccelerator should be enabled or disabled on the disk.
-
Constructor Details
-
VirtualMachineScaleSetOSDisk
public VirtualMachineScaleSetOSDisk()
-
-
Method Details
-
name
Get the disk name.- Returns:
- the name value
-
withName
Set the disk name.- Parameters:
name
- the name value to set- Returns:
- the VirtualMachineScaleSetOSDisk object itself.
-
caching
Get specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'.- Returns:
- the caching value
-
withCaching
Set specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'.- Parameters:
caching
- the caching value to set- Returns:
- the VirtualMachineScaleSetOSDisk object itself.
-
writeAcceleratorEnabled
Get specifies whether writeAccelerator should be enabled or disabled on the disk.- Returns:
- the writeAcceleratorEnabled value
-
withWriteAcceleratorEnabled
Set specifies whether writeAccelerator should be enabled or disabled on the disk.- Parameters:
writeAcceleratorEnabled
- the writeAcceleratorEnabled value to set- Returns:
- the VirtualMachineScaleSetOSDisk object itself.
-
createOption
Get specifies how the virtual machines in the scale set should be created.<br><br> The only allowed value is: **FromImage** – This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Possible values include: 'FromImage', 'Empty', 'Attach'.- Returns:
- the createOption value
-
withCreateOption
Set specifies how the virtual machines in the scale set should be created.<br><br> The only allowed value is: **FromImage** – This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Possible values include: 'FromImage', 'Empty', 'Attach'.- Parameters:
createOption
- the createOption value to set- Returns:
- the VirtualMachineScaleSetOSDisk object itself.
-
diffDiskSettings
Get specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set.- Returns:
- the diffDiskSettings value
-
withDiffDiskSettings
Set specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set.- Parameters:
diffDiskSettings
- the diffDiskSettings value to set- Returns:
- the VirtualMachineScaleSetOSDisk object itself.
-
diskSizeGB
Get specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB.- Returns:
- the diskSizeGB value
-
withDiskSizeGB
Set specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB.- Parameters:
diskSizeGB
- the diskSizeGB value to set- Returns:
- the VirtualMachineScaleSetOSDisk object itself.
-
osType
Get this property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. <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 user-image or a specialized VHD. <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 VirtualMachineScaleSetOSDisk object itself.
-
image
Get specifies information about the unmanaged user image to base the scale set on.- Returns:
- the image value
-
withImage
Set specifies information about the unmanaged user image to base the scale set on.- Parameters:
image
- the image value to set- Returns:
- the VirtualMachineScaleSetOSDisk object itself.
-
vhdContainers
Get specifies the container urls that are used to store operating system disks for the scale set.- Returns:
- the vhdContainers value
-
withVhdContainers
Set specifies the container urls that are used to store operating system disks for the scale set.- Parameters:
vhdContainers
- the vhdContainers value to set- Returns:
- the VirtualMachineScaleSetOSDisk object itself.
-
managedDisk
Get the managed disk parameters.- Returns:
- the managedDisk value
-
withManagedDisk
public VirtualMachineScaleSetOSDisk withManagedDisk(VirtualMachineScaleSetManagedDiskParameters managedDisk) Set the managed disk parameters.- Parameters:
managedDisk
- the managedDisk value to set- Returns:
- the VirtualMachineScaleSetOSDisk object itself.
-