Class MaintenanceConfigurationProperties
- java.lang.Object
-
- com.azure.resourcemanager.containerservice.fluent.models.MaintenanceConfigurationProperties
-
public final class MaintenanceConfigurationProperties extends Object
Properties used to configure planned maintenance for a Managed Cluster.
-
-
Constructor Summary
Constructors Constructor Description MaintenanceConfigurationProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TimeSpan>notAllowedTime()Get the notAllowedTime property: Time slots on which upgrade is not allowed.List<TimeInWeek>timeInWeek()Get the timeInWeek property: Time slots during the week when planned maintenance is allowed to proceed.voidvalidate()Validates the instance.MaintenanceConfigurationPropertieswithNotAllowedTime(List<TimeSpan> notAllowedTime)Set the notAllowedTime property: Time slots on which upgrade is not allowed.MaintenanceConfigurationPropertieswithTimeInWeek(List<TimeInWeek> timeInWeek)Set the timeInWeek property: Time slots during the week when planned maintenance is allowed to proceed.
-
-
-
Method Detail
-
timeInWeek
public List<TimeInWeek> 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
public MaintenanceConfigurationProperties withTimeInWeek(List<TimeInWeek> timeInWeek)
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
public List<TimeSpan> notAllowedTime()
Get the notAllowedTime property: Time slots on which upgrade is not allowed.- Returns:
- the notAllowedTime value.
-
withNotAllowedTime
public MaintenanceConfigurationProperties withNotAllowedTime(List<TimeSpan> notAllowedTime)
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.
-
-