JobSchedule Class
- java.
lang. Object - com.
azure. resourcemanager. sql. models. JobSchedule
- com.
Implements
public final class JobSchedule
implements JsonSerializable<JobSchedule>
Scheduling properties of a job.
Constructor Summary
Constructor | Description |
---|---|
JobSchedule() |
Creates an instance of Job |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
enabled()
Get the enabled property: Whether or not the schedule is enabled. |
Offset |
endTime()
Get the end |
static
Job |
fromJson(JsonReader jsonReader)
Reads an instance of Job |
String |
interval()
Get the interval property: Value of the schedule's recurring interval, if the Schedule |
Offset |
startTime()
Get the start |
Json |
toJson(JsonWriter jsonWriter) |
Job |
type()
Get the type property: Schedule interval type. |
void |
validate()
Validates the instance. |
Job |
withEnabled(Boolean enabled)
Set the enabled property: Whether or not the schedule is enabled. |
Job |
withEndTime(OffsetDateTime endTime)
Set the end |
Job |
withInterval(String interval)
Set the interval property: Value of the schedule's recurring interval, if the Schedule |
Job |
withStartTime(OffsetDateTime startTime)
Set the start |
Job |
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:
endTime
public OffsetDateTime endTime()
Get the endTime property: Schedule end time.
Returns:
fromJson
public static JobSchedule fromJson(JsonReader jsonReader)
Reads an instance of JobSchedule from the JsonReader.
Parameters:
Returns:
Throws:
interval
public String interval()
Get the interval property: Value of the schedule's recurring interval, if the ScheduleType is recurring. ISO8601 duration format.
Returns:
startTime
public OffsetDateTime startTime()
Get the startTime property: Schedule start time.
Returns:
toJson
type
public JobScheduleType type()
Get the type property: Schedule interval type.
Returns:
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:
Returns:
withEndTime
public JobSchedule withEndTime(OffsetDateTime endTime)
Set the endTime property: Schedule end time.
Parameters:
Returns:
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:
Returns:
withStartTime
public JobSchedule withStartTime(OffsetDateTime startTime)
Set the startTime property: Schedule start time.
Parameters:
Returns:
withType
public JobSchedule withType(JobScheduleType type)
Set the type property: Schedule interval type.
Parameters:
Returns:
Applies to
Azure SDK for Java