Class CreateMonitorAction

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

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

    • CreateMonitorAction

      public CreateMonitorAction()
      Creates an instance of CreateMonitorAction 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.
    • monitorDefinition

      public MonitorDefinition monitorDefinition()
      Get the monitorDefinition property: [Required] Defines the monitor.
      Returns:
      the monitorDefinition value.
    • withMonitorDefinition

      public CreateMonitorAction withMonitorDefinition(MonitorDefinition monitorDefinition)
      Set the monitorDefinition property: [Required] Defines the monitor.
      Parameters:
      monitorDefinition - the monitorDefinition value to set.
      Returns:
      the CreateMonitorAction 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 CreateMonitorAction fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CreateMonitorAction from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CreateMonitorAction 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 CreateMonitorAction.