Class ComputeStartStopSchedule

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

public final class ComputeStartStopSchedule extends Object implements com.azure.json.JsonSerializable<ComputeStartStopSchedule>
Compute start stop schedule properties.
  • Constructor Details

    • ComputeStartStopSchedule

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

    • id

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

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

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

      public ComputeStartStopSchedule withStatus(ScheduleStatus status)
      Set the status property: Is the schedule enabled or disabled?.
      Parameters:
      status - the status value to set.
      Returns:
      the ComputeStartStopSchedule object itself.
    • action

      public ComputePowerAction action()
      Get the action property: [Required] The compute power action.
      Returns:
      the action value.
    • withAction

      public ComputeStartStopSchedule withAction(ComputePowerAction action)
      Set the action property: [Required] The compute power action.
      Parameters:
      action - the action value to set.
      Returns:
      the ComputeStartStopSchedule object itself.
    • triggerType

      public ComputeTriggerType triggerType()
      Get the triggerType property: [Required] The schedule trigger type.
      Returns:
      the triggerType value.
    • withTriggerType

      public ComputeStartStopSchedule withTriggerType(ComputeTriggerType triggerType)
      Set the triggerType property: [Required] The schedule trigger type.
      Parameters:
      triggerType - the triggerType value to set.
      Returns:
      the ComputeStartStopSchedule object itself.
    • recurrence

      public Recurrence recurrence()
      Get the recurrence property: Required if triggerType is Recurrence.
      Returns:
      the recurrence value.
    • withRecurrence

      public ComputeStartStopSchedule withRecurrence(Recurrence recurrence)
      Set the recurrence property: Required if triggerType is Recurrence.
      Parameters:
      recurrence - the recurrence value to set.
      Returns:
      the ComputeStartStopSchedule object itself.
    • cron

      public Cron cron()
      Get the cron property: Required if triggerType is Cron.
      Returns:
      the cron value.
    • withCron

      public ComputeStartStopSchedule withCron(Cron cron)
      Set the cron property: Required if triggerType is Cron.
      Parameters:
      cron - the cron value to set.
      Returns:
      the ComputeStartStopSchedule object itself.
    • schedule

      public ScheduleBase schedule()
      Get the schedule property: [Deprecated] Not used any more.
      Returns:
      the schedule value.
    • withSchedule

      public ComputeStartStopSchedule withSchedule(ScheduleBase schedule)
      Set the schedule property: [Deprecated] Not used any more.
      Parameters:
      schedule - the schedule value to set.
      Returns:
      the ComputeStartStopSchedule 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<ComputeStartStopSchedule>
      Throws:
      IOException
    • fromJson

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