Class MaintenanceWindow.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • patchingMode

        public MaintenanceWindow.Builder patchingMode​(MaintenanceWindow.PatchingMode patchingMode)
        Cloud Exadata infrastructure node patching method, either “ROLLING” or “NONROLLING”.

        Default value is ROLLING.

        IMPORTANT*: Non-rolling infrastructure patching involves system down time. See [Oracle-Managed Infrastructure Maintenance Updates](https://docs.oracle.com/iaas/Content/Database/Concepts/examaintenance.htm#Oracle) for more information.

        Parameters:
        patchingMode - the value to set
        Returns:
        this builder
      • isCustomActionTimeoutEnabled

        public MaintenanceWindow.Builder isCustomActionTimeoutEnabled​(Boolean isCustomActionTimeoutEnabled)
        If true, enables the configuration of a custom action timeout (waiting period) between database server patching operations.
        Parameters:
        isCustomActionTimeoutEnabled - the value to set
        Returns:
        this builder
      • customActionTimeoutInMins

        public MaintenanceWindow.Builder customActionTimeoutInMins​(Integer customActionTimeoutInMins)
        Determines the amount of time the system will wait before the start of each database server patching operation.

        Custom action timeout is in minutes and valid value is between 15 to 120 (inclusive).

        Parameters:
        customActionTimeoutInMins - the value to set
        Returns:
        this builder
      • isMonthlyPatchingEnabled

        public MaintenanceWindow.Builder isMonthlyPatchingEnabled​(Boolean isMonthlyPatchingEnabled)
        If true, enables the monthly patching option.
        Parameters:
        isMonthlyPatchingEnabled - the value to set
        Returns:
        this builder
      • months

        public MaintenanceWindow.Builder months​(List<Month> months)
        Months during the year when maintenance should be performed.
        Parameters:
        months - the value to set
        Returns:
        this builder
      • weeksOfMonth

        public MaintenanceWindow.Builder weeksOfMonth​(List<Integer> weeksOfMonth)
        Weeks during the month when maintenance should be performed.

        Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week. For example, to allow maintenance during the 2nd week of the month (from the 8th day to the 14th day of the month), use the value 2. Maintenance cannot be scheduled for the fifth week of months that contain more than 28 days. Note that this parameter works in conjunction with the daysOfWeek and hoursOfDay parameters to allow you to specify specific days of the week and hours that maintenance will be performed.

        Parameters:
        weeksOfMonth - the value to set
        Returns:
        this builder
      • daysOfWeek

        public MaintenanceWindow.Builder daysOfWeek​(List<DayOfWeek> daysOfWeek)
        Days during the week when maintenance should be performed.
        Parameters:
        daysOfWeek - the value to set
        Returns:
        this builder
      • hoursOfDay

        public MaintenanceWindow.Builder hoursOfDay​(List<Integer> hoursOfDay)
        The window of hours during the day when maintenance should be performed.

        The window is a 4 hour slot. Valid values are - 0 - represents time slot 0:00 - 3:59 UTC - 4 - represents time slot 4:00 - 7:59 UTC - 8 - represents time slot 8:00 - 11:59 UTC - 12 - represents time slot 12:00 - 15:59 UTC - 16 - represents time slot 16:00 - 19:59 UTC - 20 - represents time slot 20:00 - 23:59 UTC

        Parameters:
        hoursOfDay - the value to set
        Returns:
        this builder
      • leadTimeInWeeks

        public MaintenanceWindow.Builder leadTimeInWeeks​(Integer leadTimeInWeeks)
        Lead time window allows user to set a lead time to prepare for a down time.

        The lead time is in weeks and valid value is between 1 to 4.

        Parameters:
        leadTimeInWeeks - the value to set
        Returns:
        this builder
      • skipRu

        public MaintenanceWindow.Builder skipRu​(List<Boolean> skipRu)
        If true, skips the release update (RU) for the quarter.

        You cannot skip two consecutive quarters. An RU skip request will only be honoured if the current version of the Autonomous Container Database is supported for current quarter.

        Parameters:
        skipRu - the value to set
        Returns:
        this builder