Class VirtualMachineImageResourceInner

java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.compute.fluent.models.VirtualMachineImageResourceInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>
Direct Known Subclasses:
VirtualMachineImageInner

public class VirtualMachineImageResourceInner extends com.azure.core.management.SubResource
Virtual machine image resource information.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Creates an instance of VirtualMachineImageResourceInner class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the extendedLocation property: The extended location of the Virtual Machine.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of VirtualMachineImageResourceInner from the JsonReader.
    Get the location property: The supported Azure location of the resource.
    Get the name property: The name of the resource.
    Get the tags property: Specifies the tags that are assigned to the virtual machine.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class com.azure.core.management.SubResource

    id, withId

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • VirtualMachineImageResourceInner

      protected VirtualMachineImageResourceInner()
      Creates an instance of VirtualMachineImageResourceInner class.
  • Method Details

    • name

      public String name()
      Get the name property: The name of the resource.
      Returns:
      the name value.
    • location

      public String location()
      Get the location property: The supported Azure location of the resource.
      Returns:
      the location 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).
      Returns:
      the tags value.
    • extendedLocation

      public ExtendedLocation extendedLocation()
      Get the extendedLocation property: The extended location of the Virtual Machine.
      Returns:
      the extendedLocation value.
    • validate

      public void validate()
      Validates the instance.
      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 com.azure.core.management.SubResource
      Throws:
      IOException
    • fromJson

      public static VirtualMachineImageResourceInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of VirtualMachineImageResourceInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of VirtualMachineImageResourceInner 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 VirtualMachineImageResourceInner.