Class VirtualMachineImageInner
java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.compute.fluent.models.VirtualMachineImageResourceInner
com.azure.resourcemanager.compute.fluent.models.VirtualMachineImageInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>
Describes a Virtual Machine Image.
-
Method Summary
Modifier and TypeMethodDescriptionGet the architecture property: Specifies the Architecture Type.Get the automaticOSUpgradeProperties property: Describes automatic OS upgrade properties on the image.Get the dataDiskImages property: The list of data disk images information.Get the disallowed property: Specifies disallowed configuration for the VirtualMachine created from the image.Get the extendedLocation property: The extended location of the Virtual Machine.features()Get the features property: The features property.static VirtualMachineImageInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineImageInner from the JsonReader.Get the hyperVGeneration property: Specifies the HyperVGeneration Type.Get the imageDeprecationStatus property: Describes image deprecation status properties on the image.location()Get the location property: The supported Azure location of the resource.name()Get the name property: The name of the resource.Get the osDiskImage property: Contains the os disk image information.plan()Get the plan property: Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.tags()Get the tags property: Specifies the tags that are assigned to the virtual machine.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class com.azure.core.management.SubResource
id, withIdMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
extendedLocation
Get the extendedLocation property: The extended location of the Virtual Machine.- Overrides:
extendedLocationin classVirtualMachineImageResourceInner- Returns:
- the extendedLocation value.
-
tags
Get the tags property: Specifies the tags that are assigned to the virtual machine. For more information about using tags, see [Using tags to organize your Azure resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md).- Overrides:
tagsin classVirtualMachineImageResourceInner- Returns:
- the tags value.
-
location
Get the location property: The supported Azure location of the resource.- Overrides:
locationin classVirtualMachineImageResourceInner- Returns:
- the location value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classVirtualMachineImageResourceInner- Returns:
- the name value.
-
plan
Get the plan property: Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.- Returns:
- the plan value.
-
osDiskImage
Get the osDiskImage property: Contains the os disk image information.- Returns:
- the osDiskImage value.
-
dataDiskImages
Get the dataDiskImages property: The list of data disk images information.- Returns:
- the dataDiskImages value.
-
automaticOSUpgradeProperties
Get the automaticOSUpgradeProperties property: Describes automatic OS upgrade properties on the image.- Returns:
- the automaticOSUpgradeProperties value.
-
hyperVGeneration
Get the hyperVGeneration property: Specifies the HyperVGeneration Type.- Returns:
- the hyperVGeneration value.
-
disallowed
Get the disallowed property: Specifies disallowed configuration for the VirtualMachine created from the image.- Returns:
- the disallowed value.
-
features
Get the features property: The features property.- Returns:
- the features value.
-
architecture
Get the architecture property: Specifies the Architecture Type.- Returns:
- the architecture value.
-
imageDeprecationStatus
Get the imageDeprecationStatus property: Describes image deprecation status properties on the image.- Returns:
- the imageDeprecationStatus value.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classVirtualMachineImageResourceInner- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.SubResource>- Overrides:
toJsonin classVirtualMachineImageResourceInner- Throws:
IOException
-
fromJson
public static VirtualMachineImageInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualMachineImageInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualMachineImageInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the VirtualMachineImageInner.
-