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

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

    • ScheduleBase

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

    • id

      public String id()
      Get the id property: A system assigned id for the schedule.
      Returns:
      the id value.
    • withId

      public ScheduleBase withId(String id)
      Set the id property: A system assigned id for the schedule.
      Parameters:
      id - the id value to set.
      Returns:
      the ScheduleBase object itself.
    • provisioningStatus

      public ScheduleProvisioningState provisioningStatus()
      Get the provisioningStatus property: The current deployment state of schedule.
      Returns:
      the provisioningStatus value.
    • withProvisioningStatus

      public ScheduleBase withProvisioningStatus(ScheduleProvisioningState provisioningStatus)
      Set the provisioningStatus property: The current deployment state of schedule.
      Parameters:
      provisioningStatus - the provisioningStatus value to set.
      Returns:
      the ScheduleBase object itself.
    • status

      public ScheduleStatus status()
      Get the status property: Is the schedule enabled or disabled?.
      Returns:
      the status value.
    • withStatus

      public ScheduleBase withStatus(ScheduleStatus status)
      Set the status property: Is the schedule enabled or disabled?.
      Parameters:
      status - the status value to set.
      Returns:
      the ScheduleBase 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<ScheduleBase>
      Throws:
      IOException
    • fromJson

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