Class ScheduleBase
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.ScheduleBase
-
- Direct Known Subclasses:
CronSchedule
,RecurrenceSchedule
public class ScheduleBase extends Object
Base definition of a schedule.
-
-
Constructor Summary
Constructors Constructor Description ScheduleBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTime
endTime()
Get the endTime property: Specifies end time of schedule in ISO 8601 format.ScheduleStatus
scheduleStatus()
Get the scheduleStatus property: Specifies the schedule's status.OffsetDateTime
startTime()
Get the startTime property: Specifies start time of schedule in ISO 8601 format.String
timeZone()
Get the timeZone property: Specifies time zone in which the schedule runs.void
validate()
Validates the instance.ScheduleBase
withEndTime(OffsetDateTime endTime)
Set the endTime property: Specifies end time of schedule in ISO 8601 format.ScheduleBase
withScheduleStatus(ScheduleStatus scheduleStatus)
Set the scheduleStatus property: Specifies the schedule's status.ScheduleBase
withStartTime(OffsetDateTime startTime)
Set the startTime property: Specifies start time of schedule in ISO 8601 format.ScheduleBase
withTimeZone(String timeZone)
Set the timeZone property: Specifies time zone in which the schedule runs.
-
-
-
Method Detail
-
endTime
public OffsetDateTime endTime()
Get the endTime property: Specifies end time of schedule in ISO 8601 format. If not present, the schedule will run indefinitely.- Returns:
- the endTime value.
-
withEndTime
public ScheduleBase withEndTime(OffsetDateTime endTime)
Set the endTime property: Specifies end time of schedule in ISO 8601 format. If not present, the schedule will run indefinitely.- Parameters:
endTime
- the endTime value to set.- Returns:
- the ScheduleBase object itself.
-
scheduleStatus
public ScheduleStatus scheduleStatus()
Get the scheduleStatus property: Specifies the schedule's status.- Returns:
- the scheduleStatus value.
-
withScheduleStatus
public ScheduleBase withScheduleStatus(ScheduleStatus scheduleStatus)
Set the scheduleStatus property: Specifies the schedule's status.- Parameters:
scheduleStatus
- the scheduleStatus value to set.- Returns:
- the ScheduleBase object itself.
-
startTime
public OffsetDateTime startTime()
Get the startTime property: Specifies start time of schedule in ISO 8601 format.- Returns:
- the startTime value.
-
withStartTime
public ScheduleBase withStartTime(OffsetDateTime startTime)
Set the startTime property: Specifies start time of schedule in ISO 8601 format.- Parameters:
startTime
- the startTime value to set.- Returns:
- the ScheduleBase object itself.
-
timeZone
public String timeZone()
Get the timeZone property: Specifies time zone in which the schedule runs. TimeZone should follow Windows time zone format.- Returns:
- the timeZone value.
-
withTimeZone
public ScheduleBase withTimeZone(String timeZone)
Set the timeZone property: Specifies time zone in which the schedule runs. TimeZone should follow Windows time zone format.- Parameters:
timeZone
- the timeZone value to set.- Returns:
- the ScheduleBase object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-