OSDisk Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. OSDisk
- com.
public class OSDisk
Settings for the operating system disk of the compute node (VM).
Constructor Summary
Constructor | Description | |
---|---|---|
OSDisk() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Caching |
caching()
Get possible values include: 'none', 'read |
Integer |
diskSizeGB()
Get the disk |
Diff |
ephemeralOSDiskSettings()
Get the ephemeral |
Managed |
managedDisk()
Get the managed |
OSDisk |
withCaching(CachingType caching)
Set possible values include: 'none', 'read |
OSDisk |
withDiskSizeGB(Integer diskSizeGB)
Set the disk |
OSDisk |
withEphemeralOSDiskSettings(DiffDiskSettings ephemeralOSDiskSettings)
Set the ephemeral |
OSDisk |
withManagedDisk(ManagedDisk managedDisk)
Set the managed |
OSDisk |
withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled)
Set the write |
Boolean |
writeAcceleratorEnabled()
Get the write |
Methods inherited from java.lang.Object
Constructor Details
OSDisk
public OSDisk()
Method Details
caching
public CachingType caching()
Get possible values include: 'none', 'readOnly', 'readWrite'.
Returns:
diskSizeGB
public Integer diskSizeGB()
Get the diskSizeGB value.
Returns:
ephemeralOSDiskSettings
public DiffDiskSettings ephemeralOSDiskSettings()
Get the ephemeralOSDiskSettings value.
Returns:
managedDisk
public ManagedDisk managedDisk()
Get the managedDisk value.
Returns:
withCaching
public OSDisk withCaching(CachingType caching)
Set possible values include: 'none', 'readOnly', 'readWrite'.
Parameters:
Returns:
withDiskSizeGB
public OSDisk withDiskSizeGB(Integer diskSizeGB)
Set the diskSizeGB value.
Parameters:
Returns:
withEphemeralOSDiskSettings
public OSDisk withEphemeralOSDiskSettings(DiffDiskSettings ephemeralOSDiskSettings)
Set the ephemeralOSDiskSettings value.
Parameters:
Returns:
withManagedDisk
public OSDisk withManagedDisk(ManagedDisk managedDisk)
Set the managedDisk value.
Parameters:
Returns:
withWriteAcceleratorEnabled
public OSDisk withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled)
Set the writeAcceleratorEnabled value.
Parameters:
Returns:
writeAcceleratorEnabled
public Boolean writeAcceleratorEnabled()
Get the writeAcceleratorEnabled value.
Returns:
Applies to
Azure SDK for Java