Class DataGuardAssociation


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20160918")
    public final class DataGuardAssociation
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel

    Note: Objects should always be created or deserialized using the DataGuardAssociation.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 DataGuardAssociation.Builder, which maintain a set of all explicitly set fields called DataGuardAssociation.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

      • getId

        public String getId()
        The OCID of the Data Guard association.
        Returns:
        the value
      • getDatabaseId

        public String getDatabaseId()
        The OCID of the reporting database.
        Returns:
        the value
      • getRole

        public DataGuardAssociation.Role getRole()
        The role of the reporting database in this Data Guard association.
        Returns:
        the value
      • getLifecycleDetails

        public String getLifecycleDetails()
        Additional information about the current lifecycleState, if available.
        Returns:
        the value
      • getPeerDbSystemId

        public String getPeerDbSystemId()
        The OCID of the DB system containing the associated peer database.
        Returns:
        the value
      • getPeerDbHomeId

        public String getPeerDbHomeId()
        The OCID of the Database Home containing the associated peer database.
        Returns:
        the value
      • getPeerDatabaseId

        public String getPeerDatabaseId()
        The OCID of the associated peer database.
        Returns:
        the value
      • getPeerDataGuardAssociationId

        public String getPeerDataGuardAssociationId()
        The OCID of the peer database’s Data Guard association.
        Returns:
        the value
      • getPeerRole

        public DataGuardAssociation.PeerRole getPeerRole()
        The role of the peer database in this Data Guard association.
        Returns:
        the value
      • getApplyLag

        public String getApplyLag()
        The lag time between updates to the primary database and application of the redo data on the standby database, as computed by the reporting database.

        Example: 9 seconds

        Returns:
        the value
      • getApplyRate

        public String getApplyRate()
        The rate at which redo logs are synced between the associated databases.

        Example: 180 Mb per second

        Returns:
        the value
      • getTimeCreated

        public Date getTimeCreated()
        The date and time the Data Guard association was created.
        Returns:
        the value
      • getIsActiveDataGuardEnabled

        public Boolean getIsActiveDataGuardEnabled()
        True if active Data Guard is enabled.
        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