Class Schedule
java.lang.Object
com.azure.resourcemanager.sqlvirtualmachine.models.Schedule
Set assessment schedule for SQL Server.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the dayOfWeek property: Day of the week to run assessment.enable()
Get the enable property: Enable or disable assessment schedule on SQL virtual machine.Get the monthlyOccurrence property: Occurrence of the DayOfWeek day within a month to schedule assessment.Get the startTime property: Time of the day in HH:mm format.void
validate()
Validates the instance.Get the weeklyInterval property: Number of weeks to schedule between 2 assessment runs.withDayOfWeek
(AssessmentDayOfWeek dayOfWeek) Set the dayOfWeek property: Day of the week to run assessment.withEnable
(Boolean enable) Set the enable property: Enable or disable assessment schedule on SQL virtual machine.withMonthlyOccurrence
(Integer monthlyOccurrence) Set the monthlyOccurrence property: Occurrence of the DayOfWeek day within a month to schedule assessment.withStartTime
(String startTime) Set the startTime property: Time of the day in HH:mm format.withWeeklyInterval
(Integer weeklyInterval) Set the weeklyInterval property: Number of weeks to schedule between 2 assessment runs.
-
Constructor Details
-
Schedule
public Schedule()
-
-
Method Details
-
enable
Get the enable property: Enable or disable assessment schedule on SQL virtual machine.- Returns:
- the enable value.
-
withEnable
Set the enable property: Enable or disable assessment schedule on SQL virtual machine.- Parameters:
enable
- the enable value to set.- Returns:
- the Schedule object itself.
-
weeklyInterval
Get the weeklyInterval property: Number of weeks to schedule between 2 assessment runs. Takes value from 1-6.- Returns:
- the weeklyInterval value.
-
withWeeklyInterval
Set the weeklyInterval property: Number of weeks to schedule between 2 assessment runs. Takes value from 1-6.- Parameters:
weeklyInterval
- the weeklyInterval value to set.- Returns:
- the Schedule object itself.
-
monthlyOccurrence
Get the monthlyOccurrence property: Occurrence of the DayOfWeek day within a month to schedule assessment. Takes values: 1,2,3,4 and -1. Use -1 for last DayOfWeek day of the month.- Returns:
- the monthlyOccurrence value.
-
withMonthlyOccurrence
Set the monthlyOccurrence property: Occurrence of the DayOfWeek day within a month to schedule assessment. Takes values: 1,2,3,4 and -1. Use -1 for last DayOfWeek day of the month.- Parameters:
monthlyOccurrence
- the monthlyOccurrence value to set.- Returns:
- the Schedule object itself.
-
dayOfWeek
Get the dayOfWeek property: Day of the week to run assessment.- Returns:
- the dayOfWeek value.
-
withDayOfWeek
Set the dayOfWeek property: Day of the week to run assessment.- Parameters:
dayOfWeek
- the dayOfWeek value to set.- Returns:
- the Schedule object itself.
-
startTime
Get the startTime property: Time of the day in HH:mm format. Eg. 17:30.- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: Time of the day in HH:mm format. Eg. 17:30.- Parameters:
startTime
- the startTime value to set.- Returns:
- the Schedule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-