MaintenanceWindow Class
- java.
lang. Object - com.
azure. resourcemanager. cosmosdbforpostgresql. models. MaintenanceWindow
- com.
public final class MaintenanceWindow
Schedule settings for regular cluster updates.
Constructor Summary
Constructor | Description |
---|---|
MaintenanceWindow() |
Creates an instance of Maintenance |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
customWindow()
Get the custom |
Integer |
dayOfWeek()
Get the day |
Integer |
startHour()
Get the start |
Integer |
startMinute()
Get the start |
void |
validate()
Validates the instance. |
Maintenance |
withCustomWindow(String customWindow)
Set the custom |
Maintenance |
withDayOfWeek(Integer dayOfWeek)
Set the day |
Maintenance |
withStartHour(Integer startHour)
Set the start |
Maintenance |
withStartMinute(Integer startMinute)
Set the start |
Methods inherited from java.lang.Object
Constructor Details
MaintenanceWindow
public MaintenanceWindow()
Creates an instance of MaintenanceWindow class.
Method Details
customWindow
public String customWindow()
Get the customWindow property: Indicates whether custom maintenance window is enabled or not.
Returns:
dayOfWeek
public Integer dayOfWeek()
Get the dayOfWeek property: Preferred day of the week for maintenance window.
Returns:
startHour
public Integer startHour()
Get the startHour property: Start hour within preferred day of the week for maintenance window.
Returns:
startMinute
public Integer startMinute()
Get the startMinute property: Start minute within the start hour for maintenance window.
Returns:
validate
public void validate()
Validates the instance.
withCustomWindow
public MaintenanceWindow withCustomWindow(String customWindow)
Set the customWindow property: Indicates whether custom maintenance window is enabled or not.
Parameters:
Returns:
withDayOfWeek
public MaintenanceWindow withDayOfWeek(Integer dayOfWeek)
Set the dayOfWeek property: Preferred day of the week for maintenance window.
Parameters:
Returns:
withStartHour
public MaintenanceWindow withStartHour(Integer startHour)
Set the startHour property: Start hour within preferred day of the week for maintenance window.
Parameters:
Returns:
withStartMinute
public MaintenanceWindow withStartMinute(Integer startMinute)
Set the startMinute property: Start minute within the start hour for maintenance window.
Parameters:
Returns: