Class JobCreateParameters

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

public final class JobCreateParameters extends Object implements com.azure.json.JsonSerializable<JobCreateParameters>
The parameters supplied to the create job operation.
  • Constructor Details

    • JobCreateParameters

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

    • runbook

      public RunbookAssociationProperty runbook()
      Get the runbook property: Gets or sets the runbook.
      Returns:
      the runbook value.
    • withRunbook

      public JobCreateParameters withRunbook(RunbookAssociationProperty runbook)
      Set the runbook property: Gets or sets the runbook.
      Parameters:
      runbook - the runbook value to set.
      Returns:
      the JobCreateParameters object itself.
    • parameters

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

      public JobCreateParameters withParameters(Map<String,String> parameters)
      Set the parameters property: Gets or sets the parameters of the job.
      Parameters:
      parameters - the parameters value to set.
      Returns:
      the JobCreateParameters object itself.
    • runOn

      public String runOn()
      Get the runOn property: Gets or sets the runOn which specifies the group name where the job is to be executed.
      Returns:
      the runOn value.
    • withRunOn

      public JobCreateParameters withRunOn(String runOn)
      Set the runOn property: Gets or sets the runOn which specifies the group name where the job is to be executed.
      Parameters:
      runOn - the runOn value to set.
      Returns:
      the JobCreateParameters 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<JobCreateParameters>
      Throws:
      IOException
    • fromJson

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