Class MaintenanceConfigurationProperties


  • public final class MaintenanceConfigurationProperties
    extends Object
    Properties used to configure planned maintenance for a Managed Cluster.
    • Constructor Detail

      • MaintenanceConfigurationProperties

        public MaintenanceConfigurationProperties()
    • 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.