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 Details

    • RunCommandDocumentBaseInner

      public 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.
    • withSchema

      public RunCommandDocumentBaseInner withSchema(String schema)
      Set the schema property: The VM run command schema.
      Parameters:
      schema - the schema value to set.
      Returns:
      the RunCommandDocumentBaseInner object itself.
    • id

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

      public RunCommandDocumentBaseInner withId(String id)
      Set the id property: The VM run command id.
      Parameters:
      id - the id value to set.
      Returns:
      the RunCommandDocumentBaseInner object itself.
    • osType

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

      Set the osType property: The Operating System type.
      Parameters:
      osType - the osType value to set.
      Returns:
      the RunCommandDocumentBaseInner object itself.
    • label

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

      public RunCommandDocumentBaseInner withLabel(String label)
      Set the label property: The VM run command label.
      Parameters:
      label - the label value to set.
      Returns:
      the RunCommandDocumentBaseInner object itself.
    • description

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

      public RunCommandDocumentBaseInner withDescription(String description)
      Set the description property: The VM run command description.
      Parameters:
      description - the description value to set.
      Returns:
      the RunCommandDocumentBaseInner 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<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.