Class MaintenanceWindow
- java.lang.Object
-
- com.azure.resourcemanager.mysqlflexibleserver.models.MaintenanceWindow
-
public final class MaintenanceWindow extends Object
Maintenance window of a server.
-
-
Constructor Summary
Constructors Constructor Description MaintenanceWindow()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
customWindow()
Get the customWindow property: indicates whether custom window is enabled or disabled.Integer
dayOfWeek()
Get the dayOfWeek property: day of week for maintenance window.Integer
startHour()
Get the startHour property: start hour for maintenance window.Integer
startMinute()
Get the startMinute property: start minute for maintenance window.void
validate()
Validates the instance.MaintenanceWindow
withCustomWindow(String customWindow)
Set the customWindow property: indicates whether custom window is enabled or disabled.MaintenanceWindow
withDayOfWeek(Integer dayOfWeek)
Set the dayOfWeek property: day of week for maintenance window.MaintenanceWindow
withStartHour(Integer startHour)
Set the startHour property: start hour for maintenance window.MaintenanceWindow
withStartMinute(Integer startMinute)
Set the startMinute property: start minute for maintenance window.
-
-
-
Method Detail
-
customWindow
public String customWindow()
Get the customWindow property: indicates whether custom window is enabled or disabled.- Returns:
- the customWindow value.
-
withCustomWindow
public MaintenanceWindow withCustomWindow(String customWindow)
Set the customWindow property: indicates whether custom window is enabled or disabled.- Parameters:
customWindow
- the customWindow value to set.- Returns:
- the MaintenanceWindow object itself.
-
startHour
public Integer startHour()
Get the startHour property: start hour for maintenance window.- Returns:
- the startHour value.
-
withStartHour
public MaintenanceWindow withStartHour(Integer startHour)
Set the startHour property: start hour for maintenance window.- Parameters:
startHour
- the startHour value to set.- Returns:
- the MaintenanceWindow object itself.
-
startMinute
public Integer startMinute()
Get the startMinute property: start minute for maintenance window.- Returns:
- the startMinute value.
-
withStartMinute
public MaintenanceWindow withStartMinute(Integer startMinute)
Set the startMinute property: start minute for maintenance window.- Parameters:
startMinute
- the startMinute value to set.- Returns:
- the MaintenanceWindow object itself.
-
dayOfWeek
public Integer dayOfWeek()
Get the dayOfWeek property: day of week for maintenance window.- Returns:
- the dayOfWeek value.
-
withDayOfWeek
public MaintenanceWindow withDayOfWeek(Integer dayOfWeek)
Set the dayOfWeek property: day of week for maintenance window.- Parameters:
dayOfWeek
- the dayOfWeek value to set.- Returns:
- the MaintenanceWindow object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-