Class ScheduleUpdate

java.lang.Object
com.azure.resourcemanager.devcenter.models.TrackedResourceUpdate
com.azure.resourcemanager.devcenter.models.ScheduleUpdate

public final class ScheduleUpdate extends TrackedResourceUpdate
The schedule properties for partial update. Properties not provided in the update request will not be changed.
  • Constructor Details

    • ScheduleUpdate

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

    • withTags

      public ScheduleUpdate withTags(Map<String,String> tags)
      Set the tags property: Resource tags.
      Overrides:
      withTags in class TrackedResourceUpdate
      Parameters:
      tags - the tags value to set.
      Returns:
      the TrackedResourceUpdate object itself.
    • withLocation

      public ScheduleUpdate withLocation(String location)
      Set the location property: The geo-location where the resource lives.
      Overrides:
      withLocation in class TrackedResourceUpdate
      Parameters:
      location - the location value to set.
      Returns:
      the TrackedResourceUpdate object itself.
    • type

      public ScheduledType type()
      Get the type property: Supported type this scheduled task represents.
      Returns:
      the type value.
    • withType

      public ScheduleUpdate withType(ScheduledType type)
      Set the type property: Supported type this scheduled task represents.
      Parameters:
      type - the type value to set.
      Returns:
      the ScheduleUpdate object itself.
    • frequency

      public ScheduledFrequency frequency()
      Get the frequency property: The frequency of this scheduled task.
      Returns:
      the frequency value.
    • withFrequency

      public ScheduleUpdate withFrequency(ScheduledFrequency frequency)
      Set the frequency property: The frequency of this scheduled task.
      Parameters:
      frequency - the frequency value to set.
      Returns:
      the ScheduleUpdate object itself.
    • time

      public String time()
      Get the time property: The target time to trigger the action. The format is HH:MM.
      Returns:
      the time value.
    • withTime

      public ScheduleUpdate withTime(String time)
      Set the time property: The target time to trigger the action. The format is HH:MM.
      Parameters:
      time - the time value to set.
      Returns:
      the ScheduleUpdate object itself.
    • timeZone

      public String timeZone()
      Get the timeZone property: The IANA timezone id at which the schedule should execute.
      Returns:
      the timeZone value.
    • withTimeZone

      public ScheduleUpdate withTimeZone(String timeZone)
      Set the timeZone property: The IANA timezone id at which the schedule should execute.
      Parameters:
      timeZone - the timeZone value to set.
      Returns:
      the ScheduleUpdate object itself.
    • state

      public EnableStatus state()
      Get the state property: Indicates whether or not this scheduled task is enabled.
      Returns:
      the state value.
    • withState

      public ScheduleUpdate withState(EnableStatus state)
      Set the state property: Indicates whether or not this scheduled task is enabled.
      Parameters:
      state - the state value to set.
      Returns:
      the ScheduleUpdate object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class TrackedResourceUpdate
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.