Class JobSchedule
- java.lang.Object
-
- com.azure.resourcemanager.sql.models.JobSchedule
-
public final class JobSchedule extends Object
Scheduling properties of a job.
-
-
Constructor Summary
Constructors Constructor Description JobSchedule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Booleanenabled()Get the enabled property: Whether or not the schedule is enabled.OffsetDateTimeendTime()Get the endTime property: Schedule end time.Stringinterval()Get the interval property: Value of the schedule's recurring interval, if the schedule type is recurring.OffsetDateTimestartTime()Get the startTime property: Schedule start time.JobScheduleTypetype()Get the type property: Schedule interval type.voidvalidate()Validates the instance.JobSchedulewithEnabled(Boolean enabled)Set the enabled property: Whether or not the schedule is enabled.JobSchedulewithEndTime(OffsetDateTime endTime)Set the endTime property: Schedule end time.JobSchedulewithInterval(String interval)Set the interval property: Value of the schedule's recurring interval, if the schedule type is recurring.JobSchedulewithStartTime(OffsetDateTime startTime)Set the startTime property: Schedule start time.JobSchedulewithType(JobScheduleType type)Set the type property: Schedule interval type.
-
-
-
Method Detail
-
startTime
public OffsetDateTime startTime()
Get the startTime property: Schedule start time.- Returns:
- the startTime value.
-
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.
-
endTime
public OffsetDateTime endTime()
Get the endTime property: Schedule end time.- Returns:
- the endTime value.
-
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.
-
type
public JobScheduleType type()
Get the type property: Schedule interval type.- Returns:
- the type value.
-
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.
-
enabled
public Boolean enabled()
Get the enabled property: Whether or not the schedule is enabled.- Returns:
- the enabled value.
-
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.
-
interval
public String interval()
Get the interval property: Value of the schedule's recurring interval, if the schedule type is recurring. ISO8601 duration format.- Returns:
- the interval value.
-
withInterval
public JobSchedule withInterval(String interval)
Set the interval property: 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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-