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>

public final class VirtualMachineImageInner extends VirtualMachineImageResourceInner
Describes a Virtual Machine Image.
  • Method Details

    • extendedLocation

      public ExtendedLocation extendedLocation()
      Get the extendedLocation property: The extended location of the Virtual Machine.
      Overrides:
      extendedLocation in class VirtualMachineImageResourceInner
      Returns:
      the extendedLocation value.
    • tags

      public Map<String,String> 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:
      tags in class VirtualMachineImageResourceInner
      Returns:
      the tags value.
    • location

      public String location()
      Get the location property: The supported Azure location of the resource.
      Overrides:
      location in class VirtualMachineImageResourceInner
      Returns:
      the location value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class VirtualMachineImageResourceInner
      Returns:
      the name value.
    • plan

      public PurchasePlan plan()
      Get the plan property: Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.
      Returns:
      the plan value.
    • osDiskImage

      public OSDiskImage osDiskImage()
      Get the osDiskImage property: Contains the os disk image information.
      Returns:
      the osDiskImage value.
    • dataDiskImages

      public List<DataDiskImage> dataDiskImages()
      Get the dataDiskImages property: The list of data disk images information.
      Returns:
      the dataDiskImages value.
    • automaticOSUpgradeProperties

      public AutomaticOSUpgradeProperties automaticOSUpgradeProperties()
      Get the automaticOSUpgradeProperties property: Describes automatic OS upgrade properties on the image.
      Returns:
      the automaticOSUpgradeProperties value.
    • hyperVGeneration

      public HyperVGenerationTypes hyperVGeneration()
      Get the hyperVGeneration property: Specifies the HyperVGeneration Type.
      Returns:
      the hyperVGeneration value.
    • disallowed

      public DisallowedConfiguration disallowed()
      Get the disallowed property: Specifies disallowed configuration for the VirtualMachine created from the image.
      Returns:
      the disallowed value.
    • features

      public List<VirtualMachineImageFeature> features()
      Get the features property: The features property.
      Returns:
      the features value.
    • architecture

      public ArchitectureTypes architecture()
      Get the architecture property: Specifies the Architecture Type.
      Returns:
      the architecture value.
    • imageDeprecationStatus

      public ImageDeprecationStatus 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:
      validate in class VirtualMachineImageResourceInner
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<com.azure.core.management.SubResource>
      Overrides:
      toJson in class VirtualMachineImageResourceInner
      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.