DataDisk Class
- java.
lang. Object - com.
azure. resourcemanager. devopsinfrastructure. models. DataDisk
- com.
Implements
public final class DataDisk
implements JsonSerializable<DataDisk>
The data disk of the VMSS.
Constructor Summary
| Constructor | Description |
|---|---|
| DataDisk() |
Creates an instance of Data |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Caching |
caching()
Get the caching property: The type of caching to be enabled for the data disks. |
| Integer |
diskSizeGiB()
Get the disk |
| String |
driveLetter()
Get the drive |
|
static
Data |
fromJson(JsonReader jsonReader)
Reads an instance of Data |
|
Storage |
storageAccountType()
Get the storage |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Data |
withCaching(CachingType caching)
Set the caching property: The type of caching to be enabled for the data disks. |
|
Data |
withDiskSizeGiB(Integer diskSizeGiB)
Set the disk |
|
Data |
withDriveLetter(String driveLetter)
Set the drive |
|
Data |
withStorageAccountType(StorageAccountType storageAccountType)
Set the storage |
Methods inherited from java.lang.Object
Constructor Details
DataDisk
public DataDisk()
Creates an instance of DataDisk class.
Method Details
caching
public CachingType caching()
Get the caching property: The type of caching to be enabled for the data disks. The default value for caching is readwrite. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/.
Returns:
diskSizeGiB
public Integer diskSizeGiB()
Get the diskSizeGiB property: The initial disk size in gigabytes.
Returns:
driveLetter
public String driveLetter()
Get the driveLetter property: The drive letter for the empty data disk. If not specified, it will be the first available letter.
Returns:
fromJson
public static DataDisk fromJson(JsonReader jsonReader)
Reads an instance of DataDisk from the JsonReader.
Parameters:
Returns:
Throws:
storageAccountType
public StorageAccountType storageAccountType()
Get the storageAccountType property: The storage Account type to be used for the data disk. If omitted, the default is "standard_lrs".
Returns:
toJson
validate
public void validate()
Validates the instance.
withCaching
public DataDisk withCaching(CachingType caching)
Set the caching property: The type of caching to be enabled for the data disks. The default value for caching is readwrite. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/.
Parameters:
Returns:
withDiskSizeGiB
public DataDisk withDiskSizeGiB(Integer diskSizeGiB)
Set the diskSizeGiB property: The initial disk size in gigabytes.
Parameters:
Returns:
withDriveLetter
public DataDisk withDriveLetter(String driveLetter)
Set the driveLetter property: The drive letter for the empty data disk. If not specified, it will be the first available letter.
Parameters:
Returns:
withStorageAccountType
public DataDisk withStorageAccountType(StorageAccountType storageAccountType)
Set the storageAccountType property: The storage Account type to be used for the data disk. If omitted, the default is "standard_lrs".
Parameters:
Returns: