Class JobScheduleAction

java.lang.Object
com.azure.resourcemanager.machinelearning.models.ScheduleActionBase
com.azure.resourcemanager.machinelearning.models.JobScheduleAction
All Implemented Interfaces:
com.azure.json.JsonSerializable<ScheduleActionBase>

public final class JobScheduleAction extends ScheduleActionBase
The JobScheduleAction model.
  • Constructor Details

    • JobScheduleAction

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

    • actionType

      public ScheduleActionType actionType()
      Get the actionType property: [Required] Specifies the action type of the schedule.
      Overrides:
      actionType in class ScheduleActionBase
      Returns:
      the actionType value.
    • jobDefinition

      public JobBaseProperties jobDefinition()
      Get the jobDefinition property: [Required] Defines Schedule action definition details.
      Returns:
      the jobDefinition value.
    • withJobDefinition

      public JobScheduleAction withJobDefinition(JobBaseProperties jobDefinition)
      Set the jobDefinition property: [Required] Defines Schedule action definition details.
      Parameters:
      jobDefinition - the jobDefinition value to set.
      Returns:
      the JobScheduleAction object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ScheduleActionBase
      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<ScheduleActionBase>
      Overrides:
      toJson in class ScheduleActionBase
      Throws:
      IOException
    • fromJson

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