Class UpdateMaintenanceDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.mysql.model.UpdateMaintenanceDetails.Builder
-
- Enclosing class:
- UpdateMaintenanceDetails
public static class UpdateMaintenanceDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateMaintenanceDetails
build()
UpdateMaintenanceDetails.Builder
copy(UpdateMaintenanceDetails model)
UpdateMaintenanceDetails.Builder
maintenanceScheduleType(MaintenanceScheduleType maintenanceScheduleType)
The maintenance schedule type of the DB system.UpdateMaintenanceDetails.Builder
versionPreference(VersionPreference versionPreference)
The preferred version to target when performing an automatic MySQL upgrade.UpdateMaintenanceDetails.Builder
versionTrackPreference(VersionTrackPreference versionTrackPreference)
The preferred version track to target when performing an automatic MySQL upgrade.UpdateMaintenanceDetails.Builder
windowStartTime(String windowStartTime)
The start of the 2 hour maintenance window.
-
-
-
Method Detail
-
windowStartTime
public UpdateMaintenanceDetails.Builder windowStartTime(String windowStartTime)
The start of the 2 hour 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 "", the read replica is set same as the DB system maintenance window. If not specific by the user, there will be no changes to the maintenace window.
- Parameters:
windowStartTime
- the value to set- Returns:
- this builder
-
versionPreference
public UpdateMaintenanceDetails.Builder versionPreference(VersionPreference versionPreference)
The preferred version to target when performing an automatic MySQL upgrade.Defaults to OLDEST.
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 UpdateMaintenanceDetails.Builder versionTrackPreference(VersionTrackPreference versionTrackPreference)
The preferred version track to target when performing an automatic MySQL upgrade.Defaults to FOLLOW. 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 UpdateMaintenanceDetails.Builder maintenanceScheduleType(MaintenanceScheduleType maintenanceScheduleType)
The maintenance schedule type of the DB system.Defaults to REGULAR. 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
-
build
public UpdateMaintenanceDetails build()
-
copy
public UpdateMaintenanceDetails.Builder copy(UpdateMaintenanceDetails model)
-
-