Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.compute; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty;
Describes a virtual machine scale set operating system disk.
/** * Describes a virtual machine scale set operating system disk. */
public class VirtualMachineScaleSetOSDisk {
The disk name.
/** * The disk name. */
@JsonProperty(value = "name") private String name;
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'.
/** * Specifies the caching requirements. &lt;br&gt;&lt;br&gt; Possible values * are: &lt;br&gt;&lt;br&gt; **None** &lt;br&gt;&lt;br&gt; **ReadOnly** * &lt;br&gt;&lt;br&gt; **ReadWrite** &lt;br&gt;&lt;br&gt; Default: **None * for Standard storage. ReadOnly for Premium storage**. Possible values * include: 'None', 'ReadOnly', 'ReadWrite'. */
@JsonProperty(value = "caching") private CachingTypes caching;
Specifies whether writeAccelerator should be enabled or disabled on the disk.
/** * Specifies whether writeAccelerator should be enabled or disabled on the * disk. */
@JsonProperty(value = "writeAcceleratorEnabled") private Boolean writeAcceleratorEnabled;
Specifies how the virtual machines in the scale set should be created.<br><br> The only allowed value is: **FromImage** \u2013 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'.
/** * Specifies how the virtual machines in the scale set should be * created.&lt;br&gt;&lt;br&gt; The only allowed value is: **FromImage** * \u2013 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'. */
@JsonProperty(value = "createOption", required = true) private DiskCreateOptionTypes createOption;
Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set.
/** * Specifies the ephemeral disk Settings for the operating system disk used * by the virtual machine scale set. */
@JsonProperty(value = "diffDiskSettings") private DiffDiskSettings diffDiskSettings;
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.
/** * 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. &lt;br&gt;&lt;br&gt; This value cannot be larger than * 1023 GB. */
@JsonProperty(value = "diskSizeGB") private Integer diskSizeGB;
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'.
/** * 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. * &lt;br&gt;&lt;br&gt; Possible values are: &lt;br&gt;&lt;br&gt; * **Windows** &lt;br&gt;&lt;br&gt; **Linux**. Possible values include: * 'Windows', 'Linux'. */
@JsonProperty(value = "osType") private OperatingSystemTypes osType;
Specifies information about the unmanaged user image to base the scale set on.
/** * Specifies information about the unmanaged user image to base the scale * set on. */
@JsonProperty(value = "image") private VirtualHardDisk image;
Specifies the container urls that are used to store operating system disks for the scale set.
/** * Specifies the container urls that are used to store operating system * disks for the scale set. */
@JsonProperty(value = "vhdContainers") private List<String> vhdContainers;
The managed disk parameters.
/** * The managed disk parameters. */
@JsonProperty(value = "managedDisk") private VirtualMachineScaleSetManagedDiskParameters managedDisk;
Get the disk name.
Returns:the name value
/** * Get the disk name. * * @return the name value */
public String name() { return this.name; }
Set the disk name.
Params:
  • name – the name value to set
Returns:the VirtualMachineScaleSetOSDisk object itself.
/** * Set the disk name. * * @param name the name value to set * @return the VirtualMachineScaleSetOSDisk object itself. */
public VirtualMachineScaleSetOSDisk withName(String name) { this.name = name; return this; }
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
/** * Get specifies the caching requirements. &lt;br&gt;&lt;br&gt; Possible values are: &lt;br&gt;&lt;br&gt; **None** &lt;br&gt;&lt;br&gt; **ReadOnly** &lt;br&gt;&lt;br&gt; **ReadWrite** &lt;br&gt;&lt;br&gt; Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @return the caching value */
public CachingTypes caching() { return this.caching; }
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'.
Params:
  • caching – the caching value to set
Returns:the VirtualMachineScaleSetOSDisk object itself.
/** * Set specifies the caching requirements. &lt;br&gt;&lt;br&gt; Possible values are: &lt;br&gt;&lt;br&gt; **None** &lt;br&gt;&lt;br&gt; **ReadOnly** &lt;br&gt;&lt;br&gt; **ReadWrite** &lt;br&gt;&lt;br&gt; Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'. * * @param caching the caching value to set * @return the VirtualMachineScaleSetOSDisk object itself. */
public VirtualMachineScaleSetOSDisk withCaching(CachingTypes caching) { this.caching = caching; return this; }
Get specifies whether writeAccelerator should be enabled or disabled on the disk.
Returns:the writeAcceleratorEnabled value
/** * Get specifies whether writeAccelerator should be enabled or disabled on the disk. * * @return the writeAcceleratorEnabled value */
public Boolean writeAcceleratorEnabled() { return this.writeAcceleratorEnabled; }
Set specifies whether writeAccelerator should be enabled or disabled on the disk.
Params:
  • writeAcceleratorEnabled – the writeAcceleratorEnabled value to set
Returns:the VirtualMachineScaleSetOSDisk object itself.
/** * Set specifies whether writeAccelerator should be enabled or disabled on the disk. * * @param writeAcceleratorEnabled the writeAcceleratorEnabled value to set * @return the VirtualMachineScaleSetOSDisk object itself. */
public VirtualMachineScaleSetOSDisk withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled) { this.writeAcceleratorEnabled = writeAcceleratorEnabled; return this; }
Get specifies how the virtual machines in the scale set should be created.<br><br> The only allowed value is: **FromImage** \u2013 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
/** * Get specifies how the virtual machines in the scale set should be created.&lt;br&gt;&lt;br&gt; The only allowed value is: **FromImage** \u2013 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'. * * @return the createOption value */
public DiskCreateOptionTypes createOption() { return this.createOption; }
Set specifies how the virtual machines in the scale set should be created.<br><br> The only allowed value is: **FromImage** \u2013 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'.
Params:
  • createOption – the createOption value to set
Returns:the VirtualMachineScaleSetOSDisk object itself.
/** * Set specifies how the virtual machines in the scale set should be created.&lt;br&gt;&lt;br&gt; The only allowed value is: **FromImage** \u2013 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'. * * @param createOption the createOption value to set * @return the VirtualMachineScaleSetOSDisk object itself. */
public VirtualMachineScaleSetOSDisk withCreateOption(DiskCreateOptionTypes createOption) { this.createOption = createOption; return this; }
Get specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set.
Returns:the diffDiskSettings value
/** * Get specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set. * * @return the diffDiskSettings value */
public DiffDiskSettings diffDiskSettings() { return this.diffDiskSettings; }
Set specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set.
Params:
  • diffDiskSettings – the diffDiskSettings value to set
Returns:the VirtualMachineScaleSetOSDisk object itself.
/** * Set specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set. * * @param diffDiskSettings the diffDiskSettings value to set * @return the VirtualMachineScaleSetOSDisk object itself. */
public VirtualMachineScaleSetOSDisk withDiffDiskSettings(DiffDiskSettings diffDiskSettings) { this.diffDiskSettings = diffDiskSettings; return this; }
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
/** * 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. &lt;br&gt;&lt;br&gt; This value cannot be larger than 1023 GB. * * @return the diskSizeGB value */
public Integer diskSizeGB() { return this.diskSizeGB; }
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.
Params:
  • diskSizeGB – the diskSizeGB value to set
Returns:the VirtualMachineScaleSetOSDisk object itself.
/** * 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. &lt;br&gt;&lt;br&gt; This value cannot be larger than 1023 GB. * * @param diskSizeGB the diskSizeGB value to set * @return the VirtualMachineScaleSetOSDisk object itself. */
public VirtualMachineScaleSetOSDisk withDiskSizeGB(Integer diskSizeGB) { this.diskSizeGB = diskSizeGB; return this; }
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
/** * 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. &lt;br&gt;&lt;br&gt; Possible values are: &lt;br&gt;&lt;br&gt; **Windows** &lt;br&gt;&lt;br&gt; **Linux**. Possible values include: 'Windows', 'Linux'. * * @return the osType value */
public OperatingSystemTypes osType() { return this.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. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'.
Params:
  • osType – the osType value to set
Returns:the VirtualMachineScaleSetOSDisk object itself.
/** * 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. &lt;br&gt;&lt;br&gt; Possible values are: &lt;br&gt;&lt;br&gt; **Windows** &lt;br&gt;&lt;br&gt; **Linux**. Possible values include: 'Windows', 'Linux'. * * @param osType the osType value to set * @return the VirtualMachineScaleSetOSDisk object itself. */
public VirtualMachineScaleSetOSDisk withOsType(OperatingSystemTypes osType) { this.osType = osType; return this; }
Get specifies information about the unmanaged user image to base the scale set on.
Returns:the image value
/** * Get specifies information about the unmanaged user image to base the scale set on. * * @return the image value */
public VirtualHardDisk image() { return this.image; }
Set specifies information about the unmanaged user image to base the scale set on.
Params:
  • image – the image value to set
Returns:the VirtualMachineScaleSetOSDisk object itself.
/** * Set specifies information about the unmanaged user image to base the scale set on. * * @param image the image value to set * @return the VirtualMachineScaleSetOSDisk object itself. */
public VirtualMachineScaleSetOSDisk withImage(VirtualHardDisk image) { this.image = image; return this; }
Get specifies the container urls that are used to store operating system disks for the scale set.
Returns:the vhdContainers value
/** * Get specifies the container urls that are used to store operating system disks for the scale set. * * @return the vhdContainers value */
public List<String> vhdContainers() { return this.vhdContainers; }
Set specifies the container urls that are used to store operating system disks for the scale set.
Params:
  • vhdContainers – the vhdContainers value to set
Returns:the VirtualMachineScaleSetOSDisk object itself.
/** * Set specifies the container urls that are used to store operating system disks for the scale set. * * @param vhdContainers the vhdContainers value to set * @return the VirtualMachineScaleSetOSDisk object itself. */
public VirtualMachineScaleSetOSDisk withVhdContainers(List<String> vhdContainers) { this.vhdContainers = vhdContainers; return this; }
Get the managed disk parameters.
Returns:the managedDisk value
/** * Get the managed disk parameters. * * @return the managedDisk value */
public VirtualMachineScaleSetManagedDiskParameters managedDisk() { return this.managedDisk; }
Set the managed disk parameters.
Params:
  • managedDisk – the managedDisk value to set
Returns:the VirtualMachineScaleSetOSDisk object itself.
/** * Set the managed disk parameters. * * @param managedDisk the managedDisk value to set * @return the VirtualMachineScaleSetOSDisk object itself. */
public VirtualMachineScaleSetOSDisk withManagedDisk(VirtualMachineScaleSetManagedDiskParameters managedDisk) { this.managedDisk = managedDisk; return this; } }