JobSchedule Class
- java.
lang. Object - com.
microsoft. azure. management. sql. JobSchedule
- com.
public class JobSchedule
Scheduling properties of a job.
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
enabled()
Get whether or not the schedule is enabled. |
DateTime |
endTime()
Get schedule end time. |
String |
interval()
Get value of the schedule's recurring interval, if the schedule type is recurring. ISO8601 duration format. |
DateTime |
startTime()
Get schedule start time. |
Job |
type()
Get schedule interval type. Possible values include: 'Once', 'Recurring'. |
Job |
withEnabled(Boolean enabled)
Set whether or not the schedule is enabled. |
Job |
withEndTime(DateTime endTime)
Set schedule end time. |
Job |
withInterval(String interval)
Set value of the schedule's recurring interval, if the schedule type is recurring. ISO8601 duration format. |
Job |
withStartTime(DateTime startTime)
Set schedule start time. |
Job |
withType(JobScheduleType type)
Set schedule interval type. Possible values include: 'Once', 'Recurring'. |
Method Details
enabled
public Boolean enabled()
Get whether or not the schedule is enabled.
Returns:
endTime
public DateTime endTime()
Get schedule end time.
Returns:
interval
public String interval()
Get value of the schedule's recurring interval, if the schedule type is recurring. ISO8601 duration format.
Returns:
startTime
public DateTime startTime()
Get schedule start time.
Returns:
type
public JobScheduleType type()
Get schedule interval type. Possible values include: 'Once', 'Recurring'.
Returns:
withEnabled
public JobSchedule withEnabled(Boolean enabled)
Set whether or not the schedule is enabled.
Parameters:
Returns:
withEndTime
public JobSchedule withEndTime(DateTime endTime)
Set schedule end time.
Parameters:
Returns:
withInterval
public JobSchedule withInterval(String interval)
Set value of the schedule's recurring interval, if the schedule type is recurring. ISO8601 duration format.
Parameters:
Returns:
withStartTime
public JobSchedule withStartTime(DateTime startTime)
Set schedule start time.
Parameters:
Returns:
withType
public JobSchedule withType(JobScheduleType type)
Set schedule interval type. Possible values include: 'Once', 'Recurring'.
Parameters:
Returns:
Applies to
Azure SDK for Java