VirtualMachine.Update Interface
public interface Update extends Appliable,Resource.UpdateWithTags,VirtualMachine.UpdateStages.WithUnmanagedDataDisk,VirtualMachine.UpdateStages.WithManagedDataDisk,VirtualMachine.UpdateStages.WithSecondaryNetworkInterface,VirtualMachine.UpdateStages.WithExtension,VirtualMachine.UpdateStages.WithBootDiagnostics,VirtualMachine.UpdateStages.WithManagedServiceIdentity
The template for an update operation, containing all the settings that can be modified.
Method Summary
Modifier and Type | Method and Description |
---|---|
Virtual |
withDataDiskDefaultCachingType(CachingTypes cachingType)
Specifies the default caching type for the managed data disks. |
Virtual |
withDataDiskDefaultStorageAccountType(StorageAccountTypes storageAccountType)
Specifies a storage account type. |
Virtual |
withOSDiskCaching(CachingTypes cachingType)
Specifies the caching type for the OS disk. |
Virtual |
withOSDiskEncryptionSettings(DiskEncryptionSettings settings)
Specifies the encryption settings for the OS Disk. |
Virtual |
withOSDiskSizeInGB(int size)
Specifies the size of the OS disk in GB. Only unmanaged disks may be resized as part of a VM update. Managed disks must be resized separately, using managed disk API. |
Virtual |
withOSDiskSizeInGB(Integer size)
Specifies the size of the OS disk in GB. Only unmanaged disks may be resized as part of a VM update. Managed disks must be resized separately, using managed disk API. |
Virtual |
withSize(String sizeName)
Specifies a new size for the virtual machine. |
Virtual |
withSize(VirtualMachineSizeTypes size)
Specifies a new size for the virtual machine. |
Inherited Members
Method Details
withDataDiskDefaultCachingType
public Update withDataDiskDefaultCachingType(CachingTypes cachingType)
Specifies the default caching type for the managed data disks.
Parameters:
Returns:
withDataDiskDefaultStorageAccountType
public Update withDataDiskDefaultStorageAccountType(StorageAccountTypes storageAccountType)
Specifies a storage account type.
Parameters:
Returns:
withOSDiskCaching
public Update withOSDiskCaching(CachingTypes cachingType)
Specifies the caching type for the OS disk.
Parameters:
Returns:
withOSDiskEncryptionSettings
public Update withOSDiskEncryptionSettings(DiskEncryptionSettings settings)
Specifies the encryption settings for the OS Disk.
Parameters:
Returns:
withOSDiskSizeInGB
public Update withOSDiskSizeInGB(int size)
Specifies the size of the OS disk in GB.
Only unmanaged disks may be resized as part of a VM update. Managed disks must be resized separately, using managed disk API.
Parameters:
Returns:
withOSDiskSizeInGB
public Update withOSDiskSizeInGB(Integer size)
Specifies the size of the OS disk in GB.
Only unmanaged disks may be resized as part of a VM update. Managed disks must be resized separately, using managed disk API.
Parameters:
Returns:
withSize
public Update withSize(String sizeName)
Specifies a new size for the virtual machine.
Parameters:
Returns:
withSize
public Update withSize(VirtualMachineSizeTypes size)
Specifies a new size for the virtual machine.
Parameters:
Returns:
Applies to
Azure SDK for Java