你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MaintenanceWindow Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmosdbforpostgresql.models.MaintenanceWindow

public final class MaintenanceWindow

Schedule settings for regular cluster updates.

Constructor Summary

Constructor Description
MaintenanceWindow()

Creates an instance of MaintenanceWindow class.

Method Summary

Modifier and Type Method and Description
String customWindow()

Get the customWindow property: Indicates whether custom maintenance window is enabled or not.

Integer dayOfWeek()

Get the dayOfWeek property: Preferred day of the week for maintenance window.

Integer startHour()

Get the startHour property: Start hour within preferred day of the week for maintenance window.

Integer startMinute()

Get the startMinute property: Start minute within the start hour for maintenance window.

void validate()

Validates the instance.

MaintenanceWindow withCustomWindow(String customWindow)

Set the customWindow property: Indicates whether custom maintenance window is enabled or not.

MaintenanceWindow withDayOfWeek(Integer dayOfWeek)

Set the dayOfWeek property: Preferred day of the week for maintenance window.

MaintenanceWindow withStartHour(Integer startHour)

Set the startHour property: Start hour within preferred day of the week for maintenance window.

MaintenanceWindow withStartMinute(Integer startMinute)

Set the startMinute property: Start minute within the start hour for maintenance window.

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:

the customWindow value.

dayOfWeek

public Integer dayOfWeek()

Get the dayOfWeek property: Preferred day of the week for maintenance window.

Returns:

the dayOfWeek value.

startHour

public Integer startHour()

Get the startHour property: Start hour within preferred day of the week for maintenance window.

Returns:

the startHour value.

startMinute

public Integer startMinute()

Get the startMinute property: Start minute within the start hour for maintenance window.

Returns:

the startMinute value.

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:

customWindow - the customWindow value to set.

Returns:

the MaintenanceWindow object itself.

withDayOfWeek

public MaintenanceWindow withDayOfWeek(Integer dayOfWeek)

Set the dayOfWeek property: Preferred day of the week for maintenance window.

Parameters:

dayOfWeek - the dayOfWeek value to set.

Returns:

the MaintenanceWindow object itself.

withStartHour

public MaintenanceWindow withStartHour(Integer startHour)

Set the startHour property: Start hour within preferred day of the week for maintenance window.

Parameters:

startHour - the startHour value to set.

Returns:

the MaintenanceWindow object itself.

withStartMinute

public MaintenanceWindow withStartMinute(Integer startMinute)

Set the startMinute property: Start minute within the start hour for maintenance window.

Parameters:

startMinute - the startMinute value to set.

Returns:

the MaintenanceWindow object itself.

Applies to