Class MaintenanceEvent
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.mysql.model.MaintenanceEvent
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20190415") public final class MaintenanceEvent extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe details of a maintenance event.
Note: Objects should always be created or deserialized using theMaintenanceEvent.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 theMaintenanceEvent.Builder, which maintain a set of all explicitly set fields calledMaintenanceEvent.Builder.__explicitlySet__. ThehashCode()andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMaintenanceEvent.Builderstatic classMaintenanceEvent.MaintenanceStatusThe last status of the maintenance event.
-
Constructor Summary
Constructors Constructor Description MaintenanceEvent(String dbSystemId, String compartmentId, String maintenanceNotes, Date timeCreated, Date timeStarted, Date timeEnded, Date timeMysqlSwitchOverStarted, Date timeMysqlSwitchOverEnded, String mysqlVersionBeforeMaintenance, String mysqlVersionAfterMaintenance, MaintenanceScope maintenanceScope, MaintenanceType maintenanceType, MaintenanceAction maintenanceAction, MaintenanceEvent.MaintenanceStatus maintenanceStatus)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MaintenanceEvent.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetCompartmentId()The OCID of the compartment the maintenance event belongs to.StringgetDbSystemId()The OCID of the DB System this maintenance event is associated with.MaintenanceActiongetMaintenanceAction()The nature of the maintenance event.StringgetMaintenanceNotes()Information regarding what was performed during that maintenance.MaintenanceScopegetMaintenanceScope()The MySQL instances operated during a maintenance event.MaintenanceEvent.MaintenanceStatusgetMaintenanceStatus()The last status of the maintenance event.MaintenanceTypegetMaintenanceType()How the maintenance event was triggered.StringgetMysqlVersionAfterMaintenance()The MySQL version after the maintenance.StringgetMysqlVersionBeforeMaintenance()The MySQL version prior to the maintenance.DategetTimeCreated()The date and time the record was created, as described by RFC 3339.DategetTimeEnded()The date and time the maintenance event ended, as described by RFC 3339.DategetTimeMysqlSwitchOverEnded()The date and time the DB System came back online during the maintenance, as described by RFC 3339.DategetTimeMysqlSwitchOverStarted()The date and time the DB System was initially down during the maintenance, as described by RFC 3339.DategetTimeStarted()The date and time the maintenance event started, as described by RFC 3339.inthashCode()MaintenanceEvent.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
MaintenanceEvent
@Deprecated @ConstructorProperties({"dbSystemId","compartmentId","maintenanceNotes","timeCreated","timeStarted","timeEnded","timeMysqlSwitchOverStarted","timeMysqlSwitchOverEnded","mysqlVersionBeforeMaintenance","mysqlVersionAfterMaintenance","maintenanceScope","maintenanceType","maintenanceAction","maintenanceStatus"}) public MaintenanceEvent(String dbSystemId, String compartmentId, String maintenanceNotes, Date timeCreated, Date timeStarted, Date timeEnded, Date timeMysqlSwitchOverStarted, Date timeMysqlSwitchOverEnded, String mysqlVersionBeforeMaintenance, String mysqlVersionAfterMaintenance, MaintenanceScope maintenanceScope, MaintenanceType maintenanceType, MaintenanceAction maintenanceAction, MaintenanceEvent.MaintenanceStatus maintenanceStatus)
Deprecated.
-
-
Method Detail
-
builder
public static MaintenanceEvent.Builder builder()
Create a new builder.
-
toBuilder
public MaintenanceEvent.Builder toBuilder()
-
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
-
getMaintenanceStatus
public MaintenanceEvent.MaintenanceStatus getMaintenanceStatus()
The last status of the maintenance event.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classcom.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:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-