ImageInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. compute. fluent. models. ImageInner
- com.
- com.
- com.
public final class ImageInner
extends Resource
The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.
Constructor Summary
Constructor | Description |
---|---|
ImageInner() |
Creates an instance of Image |
Method Summary
Modifier and Type | Method and Description |
---|---|
Extended |
extendedLocation()
Get the extended |
static
Image |
fromJson(JsonReader jsonReader)
Reads an instance of Image |
Hyper |
hyperVGeneration()
Get the hyper |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: The name of the resource. |
String |
provisioningState()
Get the provisioning |
Sub |
sourceVirtualMachine()
Get the source |
Image |
storageProfile()
Get the storage |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Image |
withExtendedLocation(ExtendedLocation extendedLocation)
Set the extended |
Image |
withHyperVGeneration(HyperVGenerationTypes hyperVGeneration)
Set the hyper |
Image |
withLocation(String location) |
Image |
withSourceVirtualMachine(SubResource sourceVirtualMachine)
Set the source |
Image |
withStorageProfile(ImageStorageProfile storageProfile)
Set the storage |
Image |
withTags(Map<String,String> tags) |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
ImageInner
public ImageInner()
Creates an instance of ImageInner class.
Method Details
extendedLocation
public ExtendedLocation extendedLocation()
Get the extendedLocation property: The extended location of the Image.
Returns:
fromJson
public static ImageInner fromJson(JsonReader jsonReader)
Reads an instance of ImageInner from the JsonReader.
Parameters:
Returns:
Throws:
hyperVGeneration
public HyperVGenerationTypes hyperVGeneration()
Get the hyperVGeneration property: Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource.
Returns:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ImageInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ImageInner.name()Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: The provisioning state.
Returns:
sourceVirtualMachine
public SubResource sourceVirtualMachine()
Get the sourceVirtualMachine property: The source virtual machine from which Image is created.
Returns:
storageProfile
public ImageStorageProfile storageProfile()
Get the storageProfile property: Specifies the storage settings for the virtual machine disks.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ImageInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ImageInner.type()Returns:
validate
public void validate()
Validates the instance.
withExtendedLocation
public ImageInner withExtendedLocation(ExtendedLocation extendedLocation)
Set the extendedLocation property: The extended location of the Image.
Parameters:
Returns:
withHyperVGeneration
public ImageInner withHyperVGeneration(HyperVGenerationTypes hyperVGeneration)
Set the hyperVGeneration property: Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource.
Parameters:
Returns:
withLocation
public ImageInner withLocation(String location)
Overrides:
ImageInner.withLocation(String location)Parameters:
withSourceVirtualMachine
public ImageInner withSourceVirtualMachine(SubResource sourceVirtualMachine)
Set the sourceVirtualMachine property: The source virtual machine from which Image is created.
Parameters:
Returns:
withStorageProfile
public ImageInner withStorageProfile(ImageStorageProfile storageProfile)
Set the storageProfile property: Specifies the storage settings for the virtual machine disks.
Parameters:
Returns:
withTags
public ImageInner withTags(Map
Overrides:
ImageInner.withTags(Map<String,String> tags)Parameters: