public class ImageUpdate extends UpdateResource
Constructor and Description |
---|
ImageUpdate() |
Modifier and Type | Method and Description |
---|---|
HyperVGenerationTypes |
hyperVGeneration()
Get the hyperVGeneration property: Gets the HyperVGenerationType of the VirtualMachine created from the image.
|
String |
provisioningState()
Get the provisioningState property: The provisioning state.
|
com.azure.core.management.SubResource |
sourceVirtualMachine()
Get the sourceVirtualMachine property: The source virtual machine from which Image is created.
|
ImageStorageProfile |
storageProfile()
Get the storageProfile property: Specifies the storage settings for the virtual machine disks.
|
void |
validate()
Validates the instance.
|
ImageUpdate |
withHyperVGeneration(HyperVGenerationTypes hyperVGeneration)
Set the hyperVGeneration property: Gets the HyperVGenerationType of the VirtualMachine created from the image.
|
ImageUpdate |
withSourceVirtualMachine(com.azure.core.management.SubResource sourceVirtualMachine)
Set the sourceVirtualMachine property: The source virtual machine from which Image is created.
|
ImageUpdate |
withStorageProfile(ImageStorageProfile storageProfile)
Set the storageProfile property: Specifies the storage settings for the virtual machine disks.
|
tags, withTags
public com.azure.core.management.SubResource sourceVirtualMachine()
public ImageUpdate withSourceVirtualMachine(com.azure.core.management.SubResource sourceVirtualMachine)
sourceVirtualMachine
- the sourceVirtualMachine value to set.public ImageStorageProfile storageProfile()
public ImageUpdate withStorageProfile(ImageStorageProfile storageProfile)
storageProfile
- the storageProfile value to set.public String provisioningState()
public HyperVGenerationTypes hyperVGeneration()
public ImageUpdate withHyperVGeneration(HyperVGenerationTypes hyperVGeneration)
hyperVGeneration
- the hyperVGeneration value to set.public void validate()
validate
in class UpdateResource
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.