JobSchedule Class

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

public class JobSchedule

Scheduling properties of a job.

Constructor Summary

Constructor Description
JobSchedule()

Method Summary

Modifier and Type Method and Description
java.lang.Boolean enabled()

Get whether or not the schedule is enabled.

org.joda.time.DateTime endTime()

Get schedule end time.

java.lang.String interval()

Get value of the schedule's recurring interval, if the schedule type is recurring.

org.joda.time.DateTime startTime()

Get schedule start time.

JobScheduleType type()

Get schedule interval type.

JobSchedule withEnabled(Boolean enabled)

Set whether or not the schedule is enabled.

JobSchedule withEndTime(DateTime endTime)

Set schedule end time.

JobSchedule withInterval(String interval)

Set value of the schedule's recurring interval, if the schedule type is recurring.

JobSchedule withStartTime(DateTime startTime)

Set schedule start time.

JobSchedule withType(JobScheduleType type)

Set schedule interval type.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

JobSchedule

public JobSchedule()

Method Details

enabled

public Boolean enabled()

Get whether or not the schedule is enabled.

Returns:

the enabled value

endTime

public DateTime endTime()

Get schedule end time.

Returns:

the endTime value

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

startTime

public DateTime startTime()

Get schedule start time.

Returns:

the startTime value

type

public JobScheduleType type()

Get schedule interval type. Possible values include: 'Once', 'Recurring'.

Returns:

the type 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.

withEndTime

public JobSchedule withEndTime(DateTime endTime)

Set schedule end time.

Parameters:

endTime - the endTime value to set

Returns:

the JobSchedule object itself.

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.

withStartTime

public JobSchedule withStartTime(DateTime startTime)

Set schedule start time.

Parameters:

startTime - the startTime value to set

Returns:

the JobSchedule object itself.

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.

Applies to