Class VirtualMachineDiskOptions
java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachineDiskOptions
Options for managed data disk of a virtual machine.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanwithCachingTypes(CachingTypes cachingTypes) Sets the caching type.withDeleteOptions(DeleteOptions deleteOptions) Sets the delete options of the disk, when the virtual machine is deleted.withDiskEncryptionSet(String diskEncryptionSetId) Sets the ID of disk encryption set.withStorageAccountTypes(StorageAccountTypes storageAccountType) Sets the storage account type.
-
Constructor Details
-
VirtualMachineDiskOptions
public VirtualMachineDiskOptions()
-
-
Method Details
-
storageAccountType
- Returns:
- the disk storage account type
-
cachingTypes
- Returns:
- the disk caching type
-
deleteOptions
- Returns:
- the disk delete options
-
isDiskEncryptionSetConfigured
public boolean isDiskEncryptionSetConfigured()- Returns:
- whether disk encryption set is configured,
either as the ID of disk encryption set, or as
nullto override default configuration.
-
diskEncryptionSetId
- Returns:
- the ID of disk encryption set
-
withStorageAccountTypes
Sets the storage account type. Storage account type configured here will not work when attaching a disk.- Parameters:
storageAccountType- the storage account type- Returns:
- self
-
withCachingTypes
Sets the caching type.- Parameters:
cachingTypes- the caching type- Returns:
- self
-
withDeleteOptions
Sets the delete options of the disk, when the virtual machine is deleted.- Parameters:
deleteOptions- the delete options- Returns:
- self
-
withDiskEncryptionSet
Sets the ID of disk encryption set.nullto indicate that do not configure disk encryption set. If disk is already encrypted with customer-managed key, it remains so when attached.- Parameters:
diskEncryptionSetId- the ID of disk encryption set- Returns:
- self
-