Class MaintenanceDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • windowStartTime

        public MaintenanceDetails.Builder windowStartTime​(String windowStartTime)
        The start time of the maintenance window.

        This string is of the format: "{day-of-week} {time-of-day}".

        "{day-of-week}" is a case-insensitive string like "mon", "tue", &c.

        "{time-of-day}" is the "Time" portion of an RFC3339-formatted timestamp. Any second or sub-second time data will be truncated to zero.

        If you set the read replica maintenance window to "" or if not specified, the read replica is set same as the DB system maintenance window.

        Parameters:
        windowStartTime - the value to set
        Returns:
        this builder
      • versionPreference

        public MaintenanceDetails.Builder versionPreference​(VersionPreference versionPreference)
        The preferred version to target when performing an automatic MySQL upgrade.

        OLDEST: Choose the oldest available MySQL version based on the current version of the DB System. SECOND_NEWEST: Choose the MySQL version before the newest for auto-upgrade. NEWEST: Choose the latest and greatest MySQL version available for auto-upgrade.

        Parameters:
        versionPreference - the value to set
        Returns:
        this builder
      • versionTrackPreference

        public MaintenanceDetails.Builder versionTrackPreference​(VersionTrackPreference versionTrackPreference)
        The preferred version track to target when performing an automatic MySQL upgrade.

        LONG_TERM_SUPPORT: No MySQL database behavior changes. INNOVATION: Provides access to the latest features and all bug fixes. FOLLOW: Follows the track of the current MySQL version.

        Parameters:
        versionTrackPreference - the value to set
        Returns:
        this builder
      • maintenanceScheduleType

        public MaintenanceDetails.Builder maintenanceScheduleType​(MaintenanceScheduleType maintenanceScheduleType)
        The maintenance schedule type of the DB system.

        EARLY: Maintenance schedule follows a cycle where upgrades are performed when versions become deprecated. REGULAR: Maintenance schedule follows the normal cycle where upgrades are performed when versions become unavailable.

        Parameters:
        maintenanceScheduleType - the value to set
        Returns:
        this builder
      • timeScheduled

        public MaintenanceDetails.Builder timeScheduled​(Date timeScheduled)
        The time the scheduled maintenance is expected to start, as described by RFC 3339.
        Parameters:
        timeScheduled - the value to set
        Returns:
        this builder
      • targetVersion

        public MaintenanceDetails.Builder targetVersion​(String targetVersion)
        The version that is expected to be targeted during the next scheduled maintenance run.
        Parameters:
        targetVersion - the value to set
        Returns:
        this builder