Compartir vía


DataDisk Class

  • java.lang.Object
    • com.microsoft.azure.management.compute.DataDisk

public class DataDisk

Describes a data disk.

Method Summary

Modifier and Type Method and Description
CachingTypes caching()

Get the caching value.

DiskCreateOptionTypes createOption()

Get the createOption value.

Integer diskSizeGB()

Get the diskSizeGB value.

VirtualHardDisk image()

Get the image value.

int lun()

Get the lun value.

ManagedDiskParametersInner managedDisk()

Get the managedDisk value.

String name()

Get the name value.

VirtualHardDisk vhd()

Get the vhd value.

DataDisk withCaching(CachingTypes caching)

Set the caching value.

DataDisk withCreateOption(DiskCreateOptionTypes createOption)

Set the createOption value.

DataDisk withDiskSizeGB(Integer diskSizeGB)

Set the diskSizeGB value.

DataDisk withImage(VirtualHardDisk image)

Set the image value.

DataDisk withLun(int lun)

Set the lun value.

DataDisk withManagedDisk(ManagedDiskParametersInner managedDisk)

Set the managedDisk value.

DataDisk withName(String name)

Set the name value.

DataDisk withVhd(VirtualHardDisk vhd)

Set the vhd value.

Method Details

caching

public CachingTypes caching()

Get the caching value.

Returns:

the caching value

createOption

public DiskCreateOptionTypes createOption()

Get the createOption value.

Returns:

the createOption value

diskSizeGB

public Integer diskSizeGB()

Get the diskSizeGB value.

Returns:

the diskSizeGB value

image

public VirtualHardDisk image()

Get the image value.

Returns:

the image value

lun

public int lun()

Get the lun value.

Returns:

the lun value

managedDisk

public ManagedDiskParametersInner managedDisk()

Get the managedDisk value.

Returns:

the managedDisk value

name

public String name()

Get the name value.

Returns:

the name value

vhd

public VirtualHardDisk vhd()

Get the vhd value.

Returns:

the vhd value

withCaching

public DataDisk withCaching(CachingTypes caching)

Set the caching value.

Parameters:

caching - the caching value to set

Returns:

the DataDisk object itself.

withCreateOption

public DataDisk withCreateOption(DiskCreateOptionTypes createOption)

Set the createOption value.

Parameters:

createOption - the createOption value to set

Returns:

the DataDisk object itself.

withDiskSizeGB

public DataDisk withDiskSizeGB(Integer diskSizeGB)

Set the diskSizeGB value.

Parameters:

diskSizeGB - the diskSizeGB value to set

Returns:

the DataDisk object itself.

withImage

public DataDisk withImage(VirtualHardDisk image)

Set the image value.

Parameters:

image - the image value to set

Returns:

the DataDisk object itself.

withLun

public DataDisk withLun(int lun)

Set the lun value.

Parameters:

lun - the lun value to set

Returns:

the DataDisk object itself.

withManagedDisk

public DataDisk withManagedDisk(ManagedDiskParametersInner managedDisk)

Set the managedDisk value.

Parameters:

managedDisk - the managedDisk value to set

Returns:

the DataDisk object itself.

withName

public DataDisk withName(String name)

Set the name value.

Parameters:

name - the name value to set

Returns:

the DataDisk object itself.

withVhd

public DataDisk withVhd(VirtualHardDisk vhd)

Set the vhd value.

Parameters:

vhd - the vhd value to set

Returns:

the DataDisk object itself.

Applies to