VirtualMachineScaleSetDataDisk Class
- java.
lang. Object - com.
microsoft. azure. management. compute. VirtualMachineScaleSetDataDisk
- com.
public class VirtualMachineScaleSetDataDisk
Describes a virtual machine scale set data disk.
Method Summary
Modifier and Type | Method and Description |
---|---|
Caching |
caching()
Get the caching value. |
Disk |
createOption()
Get the createOption value. |
Integer |
diskSizeGB()
Get the diskSizeGB value. |
int |
lun()
Get the lun value. |
Virtual |
managedDisk()
Get the managedDisk value. |
String |
name()
Get the name value. |
Virtual |
withCaching(CachingTypes caching)
Set the caching value. |
Virtual |
withCreateOption(DiskCreateOptionTypes createOption)
Set the createOption value. |
Virtual |
withDiskSizeGB(Integer diskSizeGB)
Set the diskSizeGB value. |
Virtual |
withLun(int lun)
Set the lun value. |
Virtual |
withManagedDisk(VirtualMachineScaleSetManagedDiskParameters managedDisk)
Set the managedDisk value. |
Virtual |
withName(String name)
Set the name value. |
Method Details
caching
public CachingTypes caching()
Get the caching value.
Returns:
createOption
public DiskCreateOptionTypes createOption()
Get the createOption value.
Returns:
diskSizeGB
public Integer diskSizeGB()
Get the diskSizeGB value.
Returns:
lun
public int lun()
Get the lun value.
Returns:
managedDisk
public VirtualMachineScaleSetManagedDiskParameters managedDisk()
Get the managedDisk value.
Returns:
name
public String name()
Get the name value.
Returns:
withCaching
public VirtualMachineScaleSetDataDisk withCaching(CachingTypes caching)
Set the caching value.
Parameters:
Returns:
withCreateOption
public VirtualMachineScaleSetDataDisk withCreateOption(DiskCreateOptionTypes createOption)
Set the createOption value.
Parameters:
Returns:
withDiskSizeGB
public VirtualMachineScaleSetDataDisk withDiskSizeGB(Integer diskSizeGB)
Set the diskSizeGB value.
Parameters:
Returns:
withLun
public VirtualMachineScaleSetDataDisk withLun(int lun)
Set the lun value.
Parameters:
Returns:
withManagedDisk
public VirtualMachineScaleSetDataDisk withManagedDisk(VirtualMachineScaleSetManagedDiskParameters managedDisk)
Set the managedDisk value.
Parameters:
Returns:
withName
public VirtualMachineScaleSetDataDisk withName(String name)
Set the name value.
Parameters:
Returns:
Applies to
Azure SDK for Java