Compartir vía


OSDisk Class

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

public class OSDisk

Describes an Operating System 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.

DiskEncryptionSettings encryptionSettings()

Get the encryptionSettings value.

VirtualHardDisk image()

Get the image value.

ManagedDiskParametersInner managedDisk()

Get the managedDisk value.

String name()

Get the name value.

OperatingSystemTypes osType()

Get the osType value.

VirtualHardDisk vhd()

Get the vhd value.

OSDisk withCaching(CachingTypes caching)

Set the caching value.

OSDisk withCreateOption(DiskCreateOptionTypes createOption)

Set the createOption value.

OSDisk withDiskSizeGB(Integer diskSizeGB)

Set the diskSizeGB value.

OSDisk withEncryptionSettings(DiskEncryptionSettings encryptionSettings)

Set the encryptionSettings value.

OSDisk withImage(VirtualHardDisk image)

Set the image value.

OSDisk withManagedDisk(ManagedDiskParametersInner managedDisk)

Set the managedDisk value.

OSDisk withName(String name)

Set the name value.

OSDisk withOsType(OperatingSystemTypes osType)

Set the osType value.

OSDisk 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

encryptionSettings

public DiskEncryptionSettings encryptionSettings()

Get the encryptionSettings value.

Returns:

the encryptionSettings value

image

public VirtualHardDisk image()

Get the image value.

Returns:

the image 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

osType

public OperatingSystemTypes osType()

Get the osType value.

Returns:

the osType value

vhd

public VirtualHardDisk vhd()

Get the vhd value.

Returns:

the vhd value

withCaching

public OSDisk withCaching(CachingTypes caching)

Set the caching value.

Parameters:

caching - the caching value to set

Returns:

the OSDisk object itself.

withCreateOption

public OSDisk withCreateOption(DiskCreateOptionTypes createOption)

Set the createOption value.

Parameters:

createOption - the createOption value to set

Returns:

the OSDisk object itself.

withDiskSizeGB

public OSDisk withDiskSizeGB(Integer diskSizeGB)

Set the diskSizeGB value.

Parameters:

diskSizeGB - the diskSizeGB value to set

Returns:

the OSDisk object itself.

withEncryptionSettings

public OSDisk withEncryptionSettings(DiskEncryptionSettings encryptionSettings)

Set the encryptionSettings value.

Parameters:

encryptionSettings - the encryptionSettings value to set

Returns:

the OSDisk object itself.

withImage

public OSDisk withImage(VirtualHardDisk image)

Set the image value.

Parameters:

image - the image value to set

Returns:

the OSDisk object itself.

withManagedDisk

public OSDisk withManagedDisk(ManagedDiskParametersInner managedDisk)

Set the managedDisk value.

Parameters:

managedDisk - the managedDisk value to set

Returns:

the OSDisk object itself.

withName

public OSDisk withName(String name)

Set the name value.

Parameters:

name - the name value to set

Returns:

the OSDisk object itself.

withOsType

public OSDisk withOsType(OperatingSystemTypes osType)

Set the osType value.

Parameters:

osType - the osType value to set

Returns:

the OSDisk object itself.

withVhd

public OSDisk withVhd(VirtualHardDisk vhd)

Set the vhd value.

Parameters:

vhd - the vhd value to set

Returns:

the OSDisk object itself.

Applies to