public final class JobSchedule extends Object
| Constructor and Description |
|---|
JobSchedule() |
| 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.
|
String |
interval()
Get the interval property: Value of the schedule's recurring interval, if the schedule type is recurring.
|
OffsetDateTime |
startTime()
Get the startTime property: Schedule start time.
|
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 schedule type is recurring.
|
JobSchedule |
withStartTime(OffsetDateTime startTime)
Set the startTime property: Schedule start time.
|
JobSchedule |
withType(JobScheduleType type)
Set the type property: Schedule interval type.
|
public OffsetDateTime startTime()
public JobSchedule withStartTime(OffsetDateTime startTime)
startTime - the startTime value to set.public OffsetDateTime endTime()
public JobSchedule withEndTime(OffsetDateTime endTime)
endTime - the endTime value to set.public JobScheduleType type()
public JobSchedule withType(JobScheduleType type)
type - the type value to set.public Boolean enabled()
public JobSchedule withEnabled(Boolean enabled)
enabled - the enabled value to set.public String interval()
public JobSchedule withInterval(String interval)
interval - the interval value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.