Class OSVersionInner

java.lang.Object
com.azure.resourcemanager.compute.fluent.models.OSVersionInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<OSVersionInner>

public final class OSVersionInner extends Object implements com.azure.json.JsonSerializable<OSVersionInner>
Describes a cloud service OS version.
  • Constructor Details

    • OSVersionInner

      public OSVersionInner()
      Creates an instance of OSVersionInner class.
  • Method Details

    • id

      public String id()
      Get the id property: Resource Id.
      Returns:
      the id value.
    • name

      public String name()
      Get the name property: Resource name.
      Returns:
      the name value.
    • type

      public String type()
      Get the type property: Resource type.
      Returns:
      the type value.
    • location

      public String location()
      Get the location property: Resource location.
      Returns:
      the location value.
    • properties

      public OSVersionProperties properties()
      Get the properties property: OS version properties.
      Returns:
      the properties value.
    • withProperties

      public OSVersionInner withProperties(OSVersionProperties properties)
      Set the properties property: OS version properties.
      Parameters:
      properties - the properties value to set.
      Returns:
      the OSVersionInner object itself.
    • 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<OSVersionInner>
      Throws:
      IOException
    • fromJson

      public static OSVersionInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of OSVersionInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of OSVersionInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the OSVersionInner.