Class AssessmentSettings
- java.lang.Object
-
- com.azure.resourcemanager.sqlvirtualmachine.models.AssessmentSettings
-
public final class AssessmentSettings extends Object
Configure assessment for databases in your SQL virtual machine.
-
-
Constructor Summary
Constructors Constructor Description AssessmentSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
enable()
Get the enable property: Enable or disable assessment feature on SQL virtual machine.Boolean
runImmediately()
Get the runImmediately property: Run assessment immediately on SQL virtual machine.Schedule
schedule()
Get the schedule property: Schedule for Assessment.void
validate()
Validates the instance.AssessmentSettings
withEnable(Boolean enable)
Set the enable property: Enable or disable assessment feature on SQL virtual machine.AssessmentSettings
withRunImmediately(Boolean runImmediately)
Set the runImmediately property: Run assessment immediately on SQL virtual machine.AssessmentSettings
withSchedule(Schedule schedule)
Set the schedule property: Schedule for Assessment.
-
-
-
Method Detail
-
enable
public Boolean enable()
Get the enable property: Enable or disable assessment feature on SQL virtual machine.- Returns:
- the enable value.
-
withEnable
public AssessmentSettings withEnable(Boolean enable)
Set the enable property: Enable or disable assessment feature on SQL virtual machine.- Parameters:
enable
- the enable value to set.- Returns:
- the AssessmentSettings object itself.
-
runImmediately
public Boolean runImmediately()
Get the runImmediately property: Run assessment immediately on SQL virtual machine.- Returns:
- the runImmediately value.
-
withRunImmediately
public AssessmentSettings withRunImmediately(Boolean runImmediately)
Set the runImmediately property: Run assessment immediately on SQL virtual machine.- Parameters:
runImmediately
- the runImmediately value to set.- Returns:
- the AssessmentSettings object itself.
-
schedule
public Schedule schedule()
Get the schedule property: Schedule for Assessment.- Returns:
- the schedule value.
-
withSchedule
public AssessmentSettings withSchedule(Schedule schedule)
Set the schedule property: Schedule for Assessment.- Parameters:
schedule
- the schedule value to set.- Returns:
- the AssessmentSettings object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-