public final class VirtualMachineScaleSetDataDisk extends Object
Constructor and Description |
---|
VirtualMachineScaleSetDataDisk() |
Modifier and Type | Method and Description |
---|---|
CachingTypes |
caching()
Get the caching property: Specifies the caching requirements.
|
DiskCreateOptionTypes |
createOption()
Get the createOption property: The create option.
|
Long |
diskIopsReadWrite()
Get the diskIopsReadWrite property: Specifies the Read-Write IOPS for the managed disk.
|
Long |
diskMBpsReadWrite()
Get the diskMBpsReadWrite property: Specifies the bandwidth in MB per second for the managed disk.
|
Integer |
diskSizeGB()
Get the diskSizeGB property: Specifies the size of an empty data disk in gigabytes.
|
int |
lun()
Get the lun property: Specifies the logical unit number of the data disk.
|
VirtualMachineScaleSetManagedDiskParameters |
managedDisk()
Get the managedDisk property: The managed disk parameters.
|
String |
name()
Get the name property: The disk name.
|
void |
validate()
Validates the instance.
|
VirtualMachineScaleSetDataDisk |
withCaching(CachingTypes caching)
Set the caching property: Specifies the caching requirements.
|
VirtualMachineScaleSetDataDisk |
withCreateOption(DiskCreateOptionTypes createOption)
Set the createOption property: The create option.
|
VirtualMachineScaleSetDataDisk |
withDiskIopsReadWrite(Long diskIopsReadWrite)
Set the diskIopsReadWrite property: Specifies the Read-Write IOPS for the managed disk.
|
VirtualMachineScaleSetDataDisk |
withDiskMBpsReadWrite(Long diskMBpsReadWrite)
Set the diskMBpsReadWrite property: Specifies the bandwidth in MB per second for the managed disk.
|
VirtualMachineScaleSetDataDisk |
withDiskSizeGB(Integer diskSizeGB)
Set the diskSizeGB property: Specifies the size of an empty data disk in gigabytes.
|
VirtualMachineScaleSetDataDisk |
withLun(int lun)
Set the lun property: Specifies the logical unit number of the data disk.
|
VirtualMachineScaleSetDataDisk |
withManagedDisk(VirtualMachineScaleSetManagedDiskParameters managedDisk)
Set the managedDisk property: The managed disk parameters.
|
VirtualMachineScaleSetDataDisk |
withName(String name)
Set the name property: The disk name.
|
VirtualMachineScaleSetDataDisk |
withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled)
Set the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the
disk.
|
Boolean |
writeAcceleratorEnabled()
Get the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the
disk.
|
public String name()
public VirtualMachineScaleSetDataDisk withName(String name)
name
- the name value to set.public int lun()
public VirtualMachineScaleSetDataDisk withLun(int lun)
lun
- the lun value to set.public CachingTypes caching()
public VirtualMachineScaleSetDataDisk withCaching(CachingTypes caching)
caching
- the caching value to set.public Boolean writeAcceleratorEnabled()
public VirtualMachineScaleSetDataDisk withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled)
writeAcceleratorEnabled
- the writeAcceleratorEnabled value to set.public DiskCreateOptionTypes createOption()
public VirtualMachineScaleSetDataDisk withCreateOption(DiskCreateOptionTypes createOption)
createOption
- the createOption value to set.public Integer diskSizeGB()
public VirtualMachineScaleSetDataDisk withDiskSizeGB(Integer diskSizeGB)
diskSizeGB
- the diskSizeGB value to set.public VirtualMachineScaleSetManagedDiskParameters managedDisk()
public VirtualMachineScaleSetDataDisk withManagedDisk(VirtualMachineScaleSetManagedDiskParameters managedDisk)
managedDisk
- the managedDisk value to set.public Long diskIopsReadWrite()
public VirtualMachineScaleSetDataDisk withDiskIopsReadWrite(Long diskIopsReadWrite)
diskIopsReadWrite
- the diskIopsReadWrite value to set.public Long diskMBpsReadWrite()
public VirtualMachineScaleSetDataDisk withDiskMBpsReadWrite(Long diskMBpsReadWrite)
diskMBpsReadWrite
- the diskMBpsReadWrite value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.