public class DataDisk extends Object
| Constructor and Description |
|---|
DataDisk() |
| Modifier and Type | Method and Description |
|---|---|
CachingType |
caching()
Get values are:
none - The caching mode for the disk is not enabled.
|
int |
diskSizeGB()
Get the diskSizeGB value.
|
int |
lun()
Get the lun is used to uniquely identify each data disk.
|
StorageAccountType |
storageAccountType()
Get if omitted, the default is "Standard_LRS".
|
DataDisk |
withCaching(CachingType caching)
Set values are:
none - The caching mode for the disk is not enabled.
|
DataDisk |
withDiskSizeGB(int diskSizeGB)
Set the diskSizeGB value.
|
DataDisk |
withLun(int lun)
Set the lun is used to uniquely identify each data disk.
|
DataDisk |
withStorageAccountType(StorageAccountType storageAccountType)
Set if omitted, the default is "Standard_LRS".
|
public int lun()
public DataDisk withLun(int lun)
lun - the lun value to setpublic CachingType caching()
public DataDisk withCaching(CachingType caching)
caching - the caching value to setpublic int diskSizeGB()
public DataDisk withDiskSizeGB(int diskSizeGB)
diskSizeGB - the diskSizeGB value to setpublic StorageAccountType storageAccountType()
public DataDisk withStorageAccountType(StorageAccountType storageAccountType)
storageAccountType - the storageAccountType value to set/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/