Class MaintenanceEvent.Builder
- java.lang.Object
-
- com.oracle.bmc.mysql.model.MaintenanceEvent.Builder
-
- Enclosing class:
- MaintenanceEvent
public static class MaintenanceEvent.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MaintenanceEventbuild()MaintenanceEvent.BuildercompartmentId(String compartmentId)The OCID of the compartment the maintenance event belongs to.MaintenanceEvent.Buildercopy(MaintenanceEvent model)MaintenanceEvent.BuilderdbSystemId(String dbSystemId)The OCID of the DB System this maintenance event is associated with.MaintenanceEvent.BuildermaintenanceAction(MaintenanceAction maintenanceAction)The nature of the maintenance event.MaintenanceEvent.BuildermaintenanceNotes(String maintenanceNotes)Information regarding what was performed during that maintenance.MaintenanceEvent.BuildermaintenanceScope(MaintenanceScope maintenanceScope)The MySQL instances operated during a maintenance event.MaintenanceEvent.BuildermaintenanceStatus(MaintenanceEvent.MaintenanceStatus maintenanceStatus)The last status of the maintenance event.MaintenanceEvent.BuildermaintenanceType(MaintenanceType maintenanceType)How the maintenance event was triggered.MaintenanceEvent.BuildermysqlVersionAfterMaintenance(String mysqlVersionAfterMaintenance)The MySQL version after the maintenance.MaintenanceEvent.BuildermysqlVersionBeforeMaintenance(String mysqlVersionBeforeMaintenance)The MySQL version prior to the maintenance.MaintenanceEvent.BuildertimeCreated(Date timeCreated)The date and time the record was created, as described by RFC 3339.MaintenanceEvent.BuildertimeEnded(Date timeEnded)The date and time the maintenance event ended, as described by RFC 3339.MaintenanceEvent.BuildertimeMysqlSwitchOverEnded(Date timeMysqlSwitchOverEnded)The date and time the DB System came back online during the maintenance, as described by RFC 3339.MaintenanceEvent.BuildertimeMysqlSwitchOverStarted(Date timeMysqlSwitchOverStarted)The date and time the DB System was initially down during the maintenance, as described by RFC 3339.MaintenanceEvent.BuildertimeStarted(Date timeStarted)The date and time the maintenance event started, as described by RFC 3339.
-
-
-
Method Detail
-
dbSystemId
public MaintenanceEvent.Builder dbSystemId(String dbSystemId)
The OCID of the DB System this maintenance event is associated with.- Parameters:
dbSystemId- the value to set- Returns:
- this builder
-
compartmentId
public MaintenanceEvent.Builder compartmentId(String compartmentId)
The OCID of the compartment the maintenance event belongs to.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
maintenanceNotes
public MaintenanceEvent.Builder maintenanceNotes(String maintenanceNotes)
Information regarding what was performed during that maintenance.- Parameters:
maintenanceNotes- the value to set- Returns:
- this builder
-
timeCreated
public MaintenanceEvent.Builder timeCreated(Date timeCreated)
The date and time the record was created, as described by RFC 3339.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeStarted
public MaintenanceEvent.Builder timeStarted(Date timeStarted)
The date and time the maintenance event started, as described by RFC 3339.- Parameters:
timeStarted- the value to set- Returns:
- this builder
-
timeEnded
public MaintenanceEvent.Builder timeEnded(Date timeEnded)
The date and time the maintenance event ended, as described by RFC 3339.- Parameters:
timeEnded- the value to set- Returns:
- this builder
-
timeMysqlSwitchOverStarted
public MaintenanceEvent.Builder timeMysqlSwitchOverStarted(Date timeMysqlSwitchOverStarted)
The date and time the DB System was initially down during the maintenance, as described by RFC 3339.- Parameters:
timeMysqlSwitchOverStarted- the value to set- Returns:
- this builder
-
timeMysqlSwitchOverEnded
public MaintenanceEvent.Builder timeMysqlSwitchOverEnded(Date timeMysqlSwitchOverEnded)
The date and time the DB System came back online during the maintenance, as described by RFC 3339.- Parameters:
timeMysqlSwitchOverEnded- the value to set- Returns:
- this builder
-
mysqlVersionBeforeMaintenance
public MaintenanceEvent.Builder mysqlVersionBeforeMaintenance(String mysqlVersionBeforeMaintenance)
The MySQL version prior to the maintenance.- Parameters:
mysqlVersionBeforeMaintenance- the value to set- Returns:
- this builder
-
mysqlVersionAfterMaintenance
public MaintenanceEvent.Builder mysqlVersionAfterMaintenance(String mysqlVersionAfterMaintenance)
The MySQL version after the maintenance.- Parameters:
mysqlVersionAfterMaintenance- the value to set- Returns:
- this builder
-
maintenanceScope
public MaintenanceEvent.Builder maintenanceScope(MaintenanceScope maintenanceScope)
The MySQL instances operated during a maintenance event.ALL: maintenance event targeting all MySQL instances in a DB System. ALL_BUT_PRIMARY: maintenance event targeting all MySQL instances in a highly available DB System except the primary group member. PRIMARY_ONLY: maintenance event targeting only the primary group member in a highly available DB System.
- Parameters:
maintenanceScope- the value to set- Returns:
- this builder
-
maintenanceType
public MaintenanceEvent.Builder maintenanceType(MaintenanceType maintenanceType)
How the maintenance event was triggered.AUTOMATIC: maintenance event triggered as part of scheduled maintenance. MANUAL: maintenance event triggered manually. SHAPE: maintenance event triggered by a shape update.
- Parameters:
maintenanceType- the value to set- Returns:
- this builder
-
maintenanceAction
public MaintenanceEvent.Builder maintenanceAction(MaintenanceAction maintenanceAction)
The nature of the maintenance event.DATABASE: maintenance event causing a MySQL version upgrade. This may also include OS updates. OS_UPDATE: maintenance event causing an OS update. ONLINE_UPDATE: maintenance event causing downtime-free OS security patches. HARDWARE: hardware maintenance event affecting the DB System's VMs and BMs.
- Parameters:
maintenanceAction- the value to set- Returns:
- this builder
-
maintenanceStatus
public MaintenanceEvent.Builder maintenanceStatus(MaintenanceEvent.MaintenanceStatus maintenanceStatus)
The last status of the maintenance event.- Parameters:
maintenanceStatus- the value to set- Returns:
- this builder
-
build
public MaintenanceEvent build()
-
copy
public MaintenanceEvent.Builder copy(MaintenanceEvent model)
-
-