Class JobSchedule

java.lang.Object
com.microsoft.azure.management.sql.JobSchedule

public class JobSchedule extends Object
Scheduling properties of a job.
  • Constructor Details

    • JobSchedule

      public JobSchedule()
  • Method Details

    • startTime

      public org.joda.time.DateTime startTime()
      Get schedule start time.
      Returns:
      the startTime value
    • withStartTime

      public JobSchedule withStartTime(org.joda.time.DateTime startTime)
      Set schedule start time.
      Parameters:
      startTime - the startTime value to set
      Returns:
      the JobSchedule object itself.
    • endTime

      public org.joda.time.DateTime endTime()
      Get schedule end time.
      Returns:
      the endTime value
    • withEndTime

      public JobSchedule withEndTime(org.joda.time.DateTime endTime)
      Set schedule end time.
      Parameters:
      endTime - the endTime value to set
      Returns:
      the JobSchedule object itself.
    • type

      public JobScheduleType type()
      Get schedule interval type. Possible values include: 'Once', 'Recurring'.
      Returns:
      the type value
    • withType

      public JobSchedule withType(JobScheduleType type)
      Set schedule interval type. Possible values include: 'Once', 'Recurring'.
      Parameters:
      type - the type value to set
      Returns:
      the JobSchedule object itself.
    • enabled

      public Boolean enabled()
      Get whether or not the schedule is enabled.
      Returns:
      the enabled value
    • withEnabled

      public JobSchedule withEnabled(Boolean enabled)
      Set whether or not the schedule is enabled.
      Parameters:
      enabled - the enabled value to set
      Returns:
      the JobSchedule object itself.
    • interval

      public String interval()
      Get value of the schedule's recurring interval, if the schedule type is recurring. ISO8601 duration format.
      Returns:
      the interval value
    • withInterval

      public JobSchedule withInterval(String interval)
      Set value of the schedule's recurring interval, if the schedule type is recurring. ISO8601 duration format.
      Parameters:
      interval - the interval value to set
      Returns:
      the JobSchedule object itself.