Class RawGraphicalRunbookContent

java.lang.Object
com.azure.resourcemanager.automation.models.RawGraphicalRunbookContent
All Implemented Interfaces:
com.azure.json.JsonSerializable<RawGraphicalRunbookContent>

public final class RawGraphicalRunbookContent extends Object implements com.azure.json.JsonSerializable<RawGraphicalRunbookContent>
Raw Graphical Runbook content.
  • Constructor Details

    • RawGraphicalRunbookContent

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

    • schemaVersion

      public String schemaVersion()
      Get the schemaVersion property: Schema version of the serializer.
      Returns:
      the schemaVersion value.
    • withSchemaVersion

      public RawGraphicalRunbookContent withSchemaVersion(String schemaVersion)
      Set the schemaVersion property: Schema version of the serializer.
      Parameters:
      schemaVersion - the schemaVersion value to set.
      Returns:
      the RawGraphicalRunbookContent object itself.
    • runbookDefinition

      public String runbookDefinition()
      Get the runbookDefinition property: Serialized Graphical runbook.
      Returns:
      the runbookDefinition value.
    • withRunbookDefinition

      public RawGraphicalRunbookContent withRunbookDefinition(String runbookDefinition)
      Set the runbookDefinition property: Serialized Graphical runbook.
      Parameters:
      runbookDefinition - the runbookDefinition value to set.
      Returns:
      the RawGraphicalRunbookContent object itself.
    • runbookType

      public GraphRunbookType runbookType()
      Get the runbookType property: Runbook Type.
      Returns:
      the runbookType value.
    • withRunbookType

      public RawGraphicalRunbookContent withRunbookType(GraphRunbookType runbookType)
      Set the runbookType property: Runbook Type.
      Parameters:
      runbookType - the runbookType value to set.
      Returns:
      the RawGraphicalRunbookContent 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<RawGraphicalRunbookContent>
      Throws:
      IOException
    • fromJson

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