Class RunCommandDocumentBaseInner

java.lang.Object
com.azure.resourcemanager.compute.fluent.models.RunCommandDocumentBaseInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<RunCommandDocumentBaseInner>
Direct Known Subclasses:
RunCommandDocumentInner

public class RunCommandDocumentBaseInner extends Object implements com.azure.json.JsonSerializable<RunCommandDocumentBaseInner>
Describes the properties of a Run Command metadata.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Get the description property: The VM run command description.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of RunCommandDocumentBaseInner from the JsonReader.
    id()
    Get the id property: The VM run command id.
    Get the label property: The VM run command label.
    Get the osType property: The Operating System type.
    Get the schema property: The VM run command schema.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    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

    • RunCommandDocumentBaseInner

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

    • schema

      public String schema()
      Get the schema property: The VM run command schema.
      Returns:
      the schema value.
    • id

      public String id()
      Get the id property: The VM run command id.
      Returns:
      the id value.
    • osType

      public OperatingSystemTypes osType()
      Get the osType property: The Operating System type.
      Returns:
      the osType value.
    • label

      public String label()
      Get the label property: The VM run command label.
      Returns:
      the label value.
    • description

      public String description()
      Get the description property: The VM run command description.
      Returns:
      the description 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<RunCommandDocumentBaseInner>
      Throws:
      IOException
    • fromJson

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