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 com.fasterxml.jackson.annotation.JsonProperty;
Describes a virtual machine scale set data disk.
/** * Describes a virtual machine scale set data disk. */
public class VirtualMachineScaleSetDataDisk {
The disk name.
/** * The disk name. */
@JsonProperty(value = "name") private String name;
Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.
/** * Specifies the logical unit number of the data disk. This value is used * to identify data disks within the VM and therefore must be unique for * each data disk attached to a VM. */
@JsonProperty(value = "lun", required = true) private int lun;
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;
The create option. Possible values include: 'FromImage', 'Empty', 'Attach'.
/** * The create option. Possible values include: 'FromImage', 'Empty', * 'Attach'. */
@JsonProperty(value = "createOption", required = true) private DiskCreateOptionTypes createOption;
Specifies the size of an empty data 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 an empty data 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;
The managed disk parameters.
/** * The managed disk parameters. */
@JsonProperty(value = "managedDisk") private VirtualMachineScaleSetManagedDiskParameters managedDisk;
Specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.
/** * Specifies the Read-Write IOPS for the managed disk. Should be used only * when StorageAccountType is UltraSSD_LRS. If not specified, a default * value would be assigned based on diskSizeGB. */
@JsonProperty(value = "diskIOPSReadWrite") private Long diskIOPSReadWrite;
Specifies the bandwidth in MB per second for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.
/** * Specifies the bandwidth in MB per second for the managed disk. Should be * used only when StorageAccountType is UltraSSD_LRS. If not specified, a * default value would be assigned based on diskSizeGB. */
@JsonProperty(value = "diskMBpsReadWrite") private Long diskMBpsReadWrite;
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 VirtualMachineScaleSetDataDisk object itself.
/** * Set the disk name. * * @param name the name value to set * @return the VirtualMachineScaleSetDataDisk object itself. */
public VirtualMachineScaleSetDataDisk withName(String name) { this.name = name; return this; }
Get specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.
Returns:the lun value
/** * Get specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. * * @return the lun value */
public int lun() { return this.lun; }
Set specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.
Params:
  • lun – the lun value to set
Returns:the VirtualMachineScaleSetDataDisk object itself.
/** * Set specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. * * @param lun the lun value to set * @return the VirtualMachineScaleSetDataDisk object itself. */
public VirtualMachineScaleSetDataDisk withLun(int lun) { this.lun = lun; 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 VirtualMachineScaleSetDataDisk 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 VirtualMachineScaleSetDataDisk object itself. */
public VirtualMachineScaleSetDataDisk 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 VirtualMachineScaleSetDataDisk object itself.
/** * Set specifies whether writeAccelerator should be enabled or disabled on the disk. * * @param writeAcceleratorEnabled the writeAcceleratorEnabled value to set * @return the VirtualMachineScaleSetDataDisk object itself. */
public VirtualMachineScaleSetDataDisk withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled) { this.writeAcceleratorEnabled = writeAcceleratorEnabled; return this; }
Get the create option. Possible values include: 'FromImage', 'Empty', 'Attach'.
Returns:the createOption value
/** * Get the create option. Possible values include: 'FromImage', 'Empty', 'Attach'. * * @return the createOption value */
public DiskCreateOptionTypes createOption() { return this.createOption; }
Set the create option. Possible values include: 'FromImage', 'Empty', 'Attach'.
Params:
  • createOption – the createOption value to set
Returns:the VirtualMachineScaleSetDataDisk object itself.
/** * Set the create option. Possible values include: 'FromImage', 'Empty', 'Attach'. * * @param createOption the createOption value to set * @return the VirtualMachineScaleSetDataDisk object itself. */
public VirtualMachineScaleSetDataDisk withCreateOption(DiskCreateOptionTypes createOption) { this.createOption = createOption; return this; }
Get specifies the size of an empty data 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 an empty data 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 an empty data 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 VirtualMachineScaleSetDataDisk object itself.
/** * Set specifies the size of an empty data 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 VirtualMachineScaleSetDataDisk object itself. */
public VirtualMachineScaleSetDataDisk withDiskSizeGB(Integer diskSizeGB) { this.diskSizeGB = diskSizeGB; 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 VirtualMachineScaleSetDataDisk object itself.
/** * Set the managed disk parameters. * * @param managedDisk the managedDisk value to set * @return the VirtualMachineScaleSetDataDisk object itself. */
public VirtualMachineScaleSetDataDisk withManagedDisk(VirtualMachineScaleSetManagedDiskParameters managedDisk) { this.managedDisk = managedDisk; return this; }
Get specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.
Returns:the diskIOPSReadWrite value
/** * Get specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB. * * @return the diskIOPSReadWrite value */
public Long diskIOPSReadWrite() { return this.diskIOPSReadWrite; }
Set specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.
Params:
  • diskIOPSReadWrite – the diskIOPSReadWrite value to set
Returns:the VirtualMachineScaleSetDataDisk object itself.
/** * Set specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB. * * @param diskIOPSReadWrite the diskIOPSReadWrite value to set * @return the VirtualMachineScaleSetDataDisk object itself. */
public VirtualMachineScaleSetDataDisk withDiskIOPSReadWrite(Long diskIOPSReadWrite) { this.diskIOPSReadWrite = diskIOPSReadWrite; return this; }
Get specifies the bandwidth in MB per second for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.
Returns:the diskMBpsReadWrite value
/** * Get specifies the bandwidth in MB per second for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB. * * @return the diskMBpsReadWrite value */
public Long diskMBpsReadWrite() { return this.diskMBpsReadWrite; }
Set specifies the bandwidth in MB per second for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.
Params:
  • diskMBpsReadWrite – the diskMBpsReadWrite value to set
Returns:the VirtualMachineScaleSetDataDisk object itself.
/** * Set specifies the bandwidth in MB per second for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB. * * @param diskMBpsReadWrite the diskMBpsReadWrite value to set * @return the VirtualMachineScaleSetDataDisk object itself. */
public VirtualMachineScaleSetDataDisk withDiskMBpsReadWrite(Long diskMBpsReadWrite) { this.diskMBpsReadWrite = diskMBpsReadWrite; return this; } }