Partilhar via


JobSchedule Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.JobSchedule

Implements

public final class JobSchedule
implements JsonSerializable<JobSchedule>

Scheduling properties of a job.

Constructor Summary

Constructor Description
JobSchedule()

Creates an instance of JobSchedule class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: Whether or not the schedule is enabled.

OffsetDateTime endTime()

Get the endTime property: Schedule end time.

static JobSchedule fromJson(JsonReader jsonReader)

Reads an instance of JobSchedule from the JsonReader.

String interval()

Get the interval property: Value of the schedule's recurring interval, if the ScheduleType is recurring.

OffsetDateTime startTime()

Get the startTime property: Schedule start time.

JsonWriter toJson(JsonWriter jsonWriter)
JobScheduleType type()

Get the type property: Schedule interval type.

void validate()

Validates the instance.

JobSchedule withEnabled(Boolean enabled)

Set the enabled property: Whether or not the schedule is enabled.

JobSchedule withEndTime(OffsetDateTime endTime)

Set the endTime property: Schedule end time.

JobSchedule withInterval(String interval)

Set the interval property: Value of the schedule's recurring interval, if the ScheduleType is recurring.

JobSchedule withStartTime(OffsetDateTime startTime)

Set the startTime property: Schedule start time.

JobSchedule withType(JobScheduleType type)

Set the type property: Schedule interval type.

Methods inherited from java.lang.Object

Constructor Details

JobSchedule

public JobSchedule()

Creates an instance of JobSchedule class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: Whether or not the schedule is enabled.

Returns:

the enabled value.

endTime

public OffsetDateTime endTime()

Get the endTime property: Schedule end time.

Returns:

the endTime value.

fromJson

public static JobSchedule fromJson(JsonReader jsonReader)

Reads an instance of JobSchedule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of JobSchedule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the JobSchedule.

interval

public String interval()

Get the interval property: Value of the schedule's recurring interval, if the ScheduleType is recurring. ISO8601 duration format.

Returns:

the interval value.

startTime

public OffsetDateTime startTime()

Get the startTime property: Schedule start time.

Returns:

the startTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public JobScheduleType type()

Get the type property: Schedule interval type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withEnabled

public JobSchedule withEnabled(Boolean enabled)

Set the enabled property: Whether or not the schedule is enabled.

Parameters:

enabled - the enabled value to set.

Returns:

the JobSchedule object itself.

withEndTime

public JobSchedule withEndTime(OffsetDateTime endTime)

Set the endTime property: Schedule end time.

Parameters:

endTime - the endTime value to set.

Returns:

the JobSchedule object itself.

withInterval

public JobSchedule withInterval(String interval)

Set the interval property: Value of the schedule's recurring interval, if the ScheduleType is recurring. ISO8601 duration format.

Parameters:

interval - the interval value to set.

Returns:

the JobSchedule object itself.

withStartTime

public JobSchedule withStartTime(OffsetDateTime startTime)

Set the startTime property: Schedule start time.

Parameters:

startTime - the startTime value to set.

Returns:

the JobSchedule object itself.

withType

public JobSchedule withType(JobScheduleType type)

Set the type property: Schedule interval type.

Parameters:

type - the type value to set.

Returns:

the JobSchedule object itself.

Applies to