Class MaintenanceEvent


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20190415")
    public final class MaintenanceEvent
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    The details of a maintenance event.
    Note: Objects should always be created or deserialized using the MaintenanceEvent.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the MaintenanceEvent.Builder, which maintain a set of all explicitly set fields called MaintenanceEvent.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
    • Method Detail

      • getDbSystemId

        public String getDbSystemId()
        The OCID of the DB System this maintenance event is associated with.
        Returns:
        the value
      • getCompartmentId

        public String getCompartmentId()
        The OCID of the compartment the maintenance event belongs to.
        Returns:
        the value
      • getMaintenanceNotes

        public String getMaintenanceNotes()
        Information regarding what was performed during that maintenance.
        Returns:
        the value
      • getTimeCreated

        public Date getTimeCreated()
        The date and time the record was created, as described by RFC 3339.
        Returns:
        the value
      • getTimeStarted

        public Date getTimeStarted()
        The date and time the maintenance event started, as described by RFC 3339.
        Returns:
        the value
      • getTimeEnded

        public Date getTimeEnded()
        The date and time the maintenance event ended, as described by RFC 3339.
        Returns:
        the value
      • getTimeMysqlSwitchOverStarted

        public Date getTimeMysqlSwitchOverStarted()
        The date and time the DB System was initially down during the maintenance, as described by RFC 3339.
        Returns:
        the value
      • getTimeMysqlSwitchOverEnded

        public Date getTimeMysqlSwitchOverEnded()
        The date and time the DB System came back online during the maintenance, as described by RFC 3339.
        Returns:
        the value
      • getMysqlVersionBeforeMaintenance

        public String getMysqlVersionBeforeMaintenance()
        The MySQL version prior to the maintenance.
        Returns:
        the value
      • getMysqlVersionAfterMaintenance

        public String getMysqlVersionAfterMaintenance()
        The MySQL version after the maintenance.
        Returns:
        the value
      • getMaintenanceScope

        public MaintenanceScope getMaintenanceScope()
        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.

        Returns:
        the value
      • getMaintenanceType

        public MaintenanceType getMaintenanceType()
        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.

        Returns:
        the value
      • getMaintenanceAction

        public MaintenanceAction getMaintenanceAction()
        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.

        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel