Class ScheduleProperties

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

public final class ScheduleProperties extends ResourceBase
Base definition of a schedule.
  • Constructor Details

    • ScheduleProperties

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

    • displayName

      public String displayName()
      Get the displayName property: Display name of schedule.
      Returns:
      the displayName value.
    • withDisplayName

      public ScheduleProperties withDisplayName(String displayName)
      Set the displayName property: Display name of schedule.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the ScheduleProperties object itself.
    • isEnabled

      public Boolean isEnabled()
      Get the isEnabled property: Is the schedule enabled?.
      Returns:
      the isEnabled value.
    • withIsEnabled

      public ScheduleProperties withIsEnabled(Boolean isEnabled)
      Set the isEnabled property: Is the schedule enabled?.
      Parameters:
      isEnabled - the isEnabled value to set.
      Returns:
      the ScheduleProperties object itself.
    • trigger

      public TriggerBase trigger()
      Get the trigger property: [Required] Specifies the trigger details.
      Returns:
      the trigger value.
    • withTrigger

      public ScheduleProperties withTrigger(TriggerBase trigger)
      Set the trigger property: [Required] Specifies the trigger details.
      Parameters:
      trigger - the trigger value to set.
      Returns:
      the ScheduleProperties object itself.
    • action

      public ScheduleActionBase action()
      Get the action property: [Required] Specifies the action of the schedule.
      Returns:
      the action value.
    • withAction

      public ScheduleProperties withAction(ScheduleActionBase action)
      Set the action property: [Required] Specifies the action of the schedule.
      Parameters:
      action - the action value to set.
      Returns:
      the ScheduleProperties object itself.
    • provisioningState

      public ScheduleProvisioningStatus provisioningState()
      Get the provisioningState property: Provisioning state for the schedule.
      Returns:
      the provisioningState value.
    • withDescription

      public ScheduleProperties withDescription(String description)
      Set the description property: The asset description text.
      Overrides:
      withDescription in class ResourceBase
      Parameters:
      description - the description value to set.
      Returns:
      the ResourceBase object itself.
    • withTags

      public ScheduleProperties withTags(Map<String,String> tags)
      Set the tags property: Tag dictionary. Tags can be added, removed, and updated.
      Overrides:
      withTags in class ResourceBase
      Parameters:
      tags - the tags value to set.
      Returns:
      the ResourceBase object itself.
    • withProperties

      public ScheduleProperties withProperties(Map<String,String> properties)
      Set the properties property: The asset property dictionary.
      Overrides:
      withProperties in class ResourceBase
      Parameters:
      properties - the properties value to set.
      Returns:
      the ResourceBase object itself.
    • validate

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

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