Class JobSchedule
java.lang.Object
com.microsoft.azure.management.sql.JobSchedule
Scheduling properties of a job.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionenabled()
Get whether or not the schedule is enabled.org.joda.time.DateTime
endTime()
Get schedule end time.interval()
Get value of the schedule's recurring interval, if the schedule type is recurring.org.joda.time.DateTime
Get schedule start time.type()
Get schedule interval type.withEnabled
(Boolean enabled) Set whether or not the schedule is enabled.withEndTime
(org.joda.time.DateTime endTime) Set schedule end time.withInterval
(String interval) Set value of the schedule's recurring interval, if the schedule type is recurring.withStartTime
(org.joda.time.DateTime startTime) Set schedule start time.withType
(JobScheduleType type) Set schedule interval type.
-
Constructor Details
-
JobSchedule
public JobSchedule()
-
-
Method Details
-
startTime
public org.joda.time.DateTime startTime()Get schedule start time.- Returns:
- the startTime value
-
withStartTime
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
Set schedule end time.- Parameters:
endTime
- the endTime value to set- Returns:
- the JobSchedule object itself.
-
type
Get schedule interval type. Possible values include: 'Once', 'Recurring'.- Returns:
- the type value
-
withType
Set schedule interval type. Possible values include: 'Once', 'Recurring'.- Parameters:
type
- the type value to set- Returns:
- the JobSchedule object itself.
-
enabled
Get whether or not the schedule is enabled.- Returns:
- the enabled value
-
withEnabled
Set whether or not the schedule is enabled.- Parameters:
enabled
- the enabled value to set- Returns:
- the JobSchedule object itself.
-
interval
Get value of the schedule's recurring interval, if the schedule type is recurring. ISO8601 duration format.- Returns:
- the interval value
-
withInterval
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.
-