Class RunbookDraftInner

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

public final class RunbookDraftInner extends Object implements com.azure.json.JsonSerializable<RunbookDraftInner>
The RunbookDraft model.
  • Constructor Details

    • RunbookDraftInner

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

    • inEdit

      public Boolean inEdit()
      Get the inEdit property: Gets or sets whether runbook is in edit mode.
      Returns:
      the inEdit value.
    • withInEdit

      public RunbookDraftInner withInEdit(Boolean inEdit)
      Set the inEdit property: Gets or sets whether runbook is in edit mode.
      Parameters:
      inEdit - the inEdit value to set.
      Returns:
      the RunbookDraftInner object itself.
    • draftContentLink

      public ContentLink draftContentLink()
      Get the draftContentLink property: Gets or sets the draft runbook content link.
      Returns:
      the draftContentLink value.
    • withDraftContentLink

      public RunbookDraftInner withDraftContentLink(ContentLink draftContentLink)
      Set the draftContentLink property: Gets or sets the draft runbook content link.
      Parameters:
      draftContentLink - the draftContentLink value to set.
      Returns:
      the RunbookDraftInner object itself.
    • creationTime

      public OffsetDateTime creationTime()
      Get the creationTime property: Gets or sets the creation time of the runbook draft.
      Returns:
      the creationTime value.
    • withCreationTime

      public RunbookDraftInner withCreationTime(OffsetDateTime creationTime)
      Set the creationTime property: Gets or sets the creation time of the runbook draft.
      Parameters:
      creationTime - the creationTime value to set.
      Returns:
      the RunbookDraftInner object itself.
    • lastModifiedTime

      public OffsetDateTime lastModifiedTime()
      Get the lastModifiedTime property: Gets or sets the last modified time of the runbook draft.
      Returns:
      the lastModifiedTime value.
    • withLastModifiedTime

      public RunbookDraftInner withLastModifiedTime(OffsetDateTime lastModifiedTime)
      Set the lastModifiedTime property: Gets or sets the last modified time of the runbook draft.
      Parameters:
      lastModifiedTime - the lastModifiedTime value to set.
      Returns:
      the RunbookDraftInner object itself.
    • parameters

      public Map<String,RunbookParameter> parameters()
      Get the parameters property: Gets or sets the runbook draft parameters.
      Returns:
      the parameters value.
    • withParameters

      public RunbookDraftInner withParameters(Map<String,RunbookParameter> parameters)
      Set the parameters property: Gets or sets the runbook draft parameters.
      Parameters:
      parameters - the parameters value to set.
      Returns:
      the RunbookDraftInner object itself.
    • outputTypes

      public List<String> outputTypes()
      Get the outputTypes property: Gets or sets the runbook output types.
      Returns:
      the outputTypes value.
    • withOutputTypes

      public RunbookDraftInner withOutputTypes(List<String> outputTypes)
      Set the outputTypes property: Gets or sets the runbook output types.
      Parameters:
      outputTypes - the outputTypes value to set.
      Returns:
      the RunbookDraftInner 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<RunbookDraftInner>
      Throws:
      IOException
    • fromJson

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