Class AutonomousDatabaseStandbySummary


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20160918")
    public final class AutonomousDatabaseStandbySummary
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    Autonomous Data Guard standby database details.
    Note: Objects should always be created or deserialized using the AutonomousDatabaseStandbySummary.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 AutonomousDatabaseStandbySummary.Builder, which maintain a set of all explicitly set fields called AutonomousDatabaseStandbySummary.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).
    • Constructor Detail

      • AutonomousDatabaseStandbySummary

        @Deprecated
        @ConstructorProperties({"lagTimeInSeconds","lifecycleState","lifecycleDetails","timeDataGuardRoleChanged","timeDisasterRecoveryRoleChanged","timeMaintenanceBegin","timeMaintenanceEnd","maintenanceTargetComponent","availabilityDomain"})
        public AutonomousDatabaseStandbySummary​(Integer lagTimeInSeconds,
                                                AutonomousDatabaseStandbySummary.LifecycleState lifecycleState,
                                                String lifecycleDetails,
                                                Date timeDataGuardRoleChanged,
                                                Date timeDisasterRecoveryRoleChanged,
                                                Date timeMaintenanceBegin,
                                                Date timeMaintenanceEnd,
                                                String maintenanceTargetComponent,
                                                String availabilityDomain)
        Deprecated.
    • Method Detail

      • getLagTimeInSeconds

        public Integer getLagTimeInSeconds()
        The amount of time, in seconds, that the data of the standby database lags the data of the primary database.

        Can be used to determine the potential data loss in the event of a failover.

        Returns:
        the value
      • getLifecycleDetails

        public String getLifecycleDetails()
        Additional information about the current lifecycle state.
        Returns:
        the value
      • getTimeDataGuardRoleChanged

        public Date getTimeDataGuardRoleChanged()
        The date and time the Autonomous Data Guard role was switched for the standby Autonomous Database.
        Returns:
        the value
      • getTimeDisasterRecoveryRoleChanged

        public Date getTimeDisasterRecoveryRoleChanged()
        The date and time the Disaster Recovery role was switched for the standby Autonomous Database.
        Returns:
        the value
      • getTimeMaintenanceBegin

        public Date getTimeMaintenanceBegin()
        The date and time when maintenance will begin.
        Returns:
        the value
      • getTimeMaintenanceEnd

        public Date getTimeMaintenanceEnd()
        The date and time when maintenance will end.
        Returns:
        the value
      • getMaintenanceTargetComponent

        public String getMaintenanceTargetComponent()
        The component chosen for maintenance.
        Returns:
        the value
      • getAvailabilityDomain

        public String getAvailabilityDomain()
        The availability domain of a local Autonomous Data Guard standby database of an Autonomous Database Serverless instance.
        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