Class JobScheduleCreateParameters

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

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

    • JobScheduleCreateParameters

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

    • schedule

      public ScheduleAssociationProperty schedule()
      Get the schedule property: Gets or sets the schedule.
      Returns:
      the schedule value.
    • withSchedule

      Set the schedule property: Gets or sets the schedule.
      Parameters:
      schedule - the schedule value to set.
      Returns:
      the JobScheduleCreateParameters object itself.
    • runbook

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

      Set the runbook property: Gets or sets the runbook.
      Parameters:
      runbook - the runbook value to set.
      Returns:
      the JobScheduleCreateParameters object itself.
    • runOn

      public String runOn()
      Get the runOn property: Gets or sets the hybrid worker group that the scheduled job should run on.
      Returns:
      the runOn value.
    • withRunOn

      public JobScheduleCreateParameters withRunOn(String runOn)
      Set the runOn property: Gets or sets the hybrid worker group that the scheduled job should run on.
      Parameters:
      runOn - the runOn value to set.
      Returns:
      the JobScheduleCreateParameters object itself.
    • parameters

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

      public JobScheduleCreateParameters withParameters(Map<String,String> parameters)
      Set the parameters property: Gets or sets a list of job properties.
      Parameters:
      parameters - the parameters value to set.
      Returns:
      the JobScheduleCreateParameters 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<JobScheduleCreateParameters>
      Throws:
      IOException
    • fromJson

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