Class MaintenanceWindow
java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.MaintenanceWindow
Maintenance window properties of a server.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the customWindow property: indicates whether custom window is enabled or disabled.Get the dayOfWeek property: day of week for maintenance window.Get the startHour property: start hour for maintenance window.Get the startMinute property: start minute for maintenance window.void
validate()
Validates the instance.withCustomWindow
(String customWindow) Set the customWindow property: indicates whether custom window is enabled or disabled.withDayOfWeek
(Integer dayOfWeek) Set the dayOfWeek property: day of week for maintenance window.withStartHour
(Integer startHour) Set the startHour property: start hour for maintenance window.withStartMinute
(Integer startMinute) Set the startMinute property: start minute for maintenance window.
-
Constructor Details
-
MaintenanceWindow
public MaintenanceWindow()Creates an instance of MaintenanceWindow class.
-
-
Method Details
-
customWindow
Get the customWindow property: indicates whether custom window is enabled or disabled.- Returns:
- the customWindow value.
-
withCustomWindow
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
Get the startHour property: start hour for maintenance window.- Returns:
- the startHour value.
-
withStartHour
Set the startHour property: start hour for maintenance window.- Parameters:
startHour
- the startHour value to set.- Returns:
- the MaintenanceWindow object itself.
-
startMinute
Get the startMinute property: start minute for maintenance window.- Returns:
- the startMinute value.
-
withStartMinute
Set the startMinute property: start minute for maintenance window.- Parameters:
startMinute
- the startMinute value to set.- Returns:
- the MaintenanceWindow object itself.
-
dayOfWeek
Get the dayOfWeek property: day of week for maintenance window.- Returns:
- the dayOfWeek value.
-
withDayOfWeek
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.
-