Class MaintenanceEvent.Builder

    • Constructor Detail

      • Builder

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