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 Summary
ConstructorsConstructorDescriptionCreates an instance of ComputeStartStopSchedule class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Get the action property: [Required] The compute power action.cron()Get the cron property: Required if triggerType is Cron.static ComputeStartStopSchedulefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ComputeStartStopSchedule from the JsonReader.id()Get the id property: A system assigned id for the schedule.Get the provisioningStatus property: The current deployment state of schedule.Get the recurrence property: Required if triggerType is Recurrence.schedule()Get the schedule property: [Deprecated] Not used any more.status()Get the status property: Is the schedule enabled or disabled?.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the triggerType property: [Required] The schedule trigger type.voidvalidate()Validates the instance.withAction(ComputePowerAction action) Set the action property: [Required] The compute power action.Set the cron property: Required if triggerType is Cron.withRecurrence(Recurrence recurrence) Set the recurrence property: Required if triggerType is Recurrence.withSchedule(ScheduleBase schedule) Set the schedule property: [Deprecated] Not used any more.withStatus(ScheduleStatus status) Set the status property: Is the schedule enabled or disabled?.withTriggerType(ComputeTriggerType triggerType) Set the triggerType property: [Required] The schedule trigger type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ComputeStartStopSchedule
public ComputeStartStopSchedule()Creates an instance of ComputeStartStopSchedule class.
-
-
Method Details
-
id
Get the id property: A system assigned id for the schedule.- Returns:
- the id value.
-
provisioningStatus
Get the provisioningStatus property: The current deployment state of schedule.- Returns:
- the provisioningStatus value.
-
status
Get the status property: Is the schedule enabled or disabled?.- Returns:
- the status value.
-
withStatus
Set the status property: Is the schedule enabled or disabled?.- Parameters:
status- the status value to set.- Returns:
- the ComputeStartStopSchedule object itself.
-
action
Get the action property: [Required] The compute power action.- Returns:
- the action value.
-
withAction
Set the action property: [Required] The compute power action.- Parameters:
action- the action value to set.- Returns:
- the ComputeStartStopSchedule object itself.
-
triggerType
Get the triggerType property: [Required] The schedule trigger type.- Returns:
- the triggerType value.
-
withTriggerType
Set the triggerType property: [Required] The schedule trigger type.- Parameters:
triggerType- the triggerType value to set.- Returns:
- the ComputeStartStopSchedule object itself.
-
recurrence
Get the recurrence property: Required if triggerType is Recurrence.- Returns:
- the recurrence value.
-
withRecurrence
Set the recurrence property: Required if triggerType is Recurrence.- Parameters:
recurrence- the recurrence value to set.- Returns:
- the ComputeStartStopSchedule object itself.
-
cron
Get the cron property: Required if triggerType is Cron.- Returns:
- the cron value.
-
withCron
Set the cron property: Required if triggerType is Cron.- Parameters:
cron- the cron value to set.- Returns:
- the ComputeStartStopSchedule object itself.
-
schedule
Get the schedule property: [Deprecated] Not used any more.- Returns:
- the schedule value.
-
withSchedule
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
- Specified by:
toJsonin interfacecom.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.
-