Class MaintenanceConfigurationProperties
java.lang.Object
com.azure.resourcemanager.containerservice.fluent.models.MaintenanceConfigurationProperties
Properties used to configure planned maintenance for a Managed Cluster.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the notAllowedTime property: Time slots on which upgrade is not allowed.Get the timeInWeek property: Time slots during the week when planned maintenance is allowed to proceed.voidvalidate()Validates the instance.withNotAllowedTime(List<TimeSpan> notAllowedTime) Set the notAllowedTime property: Time slots on which upgrade is not allowed.withTimeInWeek(List<TimeInWeek> timeInWeek) Set the timeInWeek property: Time slots during the week when planned maintenance is allowed to proceed.
-
Constructor Details
-
MaintenanceConfigurationProperties
public MaintenanceConfigurationProperties()
-
-
Method Details
-
timeInWeek
Get the timeInWeek property: Time slots during the week when planned maintenance is allowed to proceed.If two array entries specify the same day of the week, the applied configuration is the union of times in both entries.
- Returns:
- the timeInWeek value.
-
withTimeInWeek
Set the timeInWeek property: Time slots during the week when planned maintenance is allowed to proceed.If two array entries specify the same day of the week, the applied configuration is the union of times in both entries.
- Parameters:
timeInWeek- the timeInWeek value to set.- Returns:
- the MaintenanceConfigurationProperties object itself.
-
notAllowedTime
Get the notAllowedTime property: Time slots on which upgrade is not allowed.- Returns:
- the notAllowedTime value.
-
withNotAllowedTime
Set the notAllowedTime property: Time slots on which upgrade is not allowed.- Parameters:
notAllowedTime- the notAllowedTime value to set.- Returns:
- the MaintenanceConfigurationProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-