Class AutonomousDatabaseDataguardAssociation
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class AutonomousDatabaseDataguardAssociation extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe properties that define dataguard association between two different Autonomous Databases.Note that Autonomous Databases inherit DataGuard association from parent Autonomous Container Database. No actions can be taken on AutonomousDatabaseDataguardAssociation, usage is strictly informational.
Note: Objects should always be created or deserialized using theAutonomousDatabaseDataguardAssociation.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 theAutonomousDatabaseDataguardAssociation.Builder, which maintain a set of all explicitly set fields calledAutonomousDatabaseDataguardAssociation.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 classAutonomousDatabaseDataguardAssociation.Builderstatic classAutonomousDatabaseDataguardAssociation.LifecycleStateThe current state of Autonomous Data Guard.static classAutonomousDatabaseDataguardAssociation.PeerAutonomousDatabaseLifeCycleStateThe current state of the Autonomous Database.static classAutonomousDatabaseDataguardAssociation.PeerRoleThe Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.static classAutonomousDatabaseDataguardAssociation.ProtectionModeThe protection mode of this Autonomous Data Guard association.static classAutonomousDatabaseDataguardAssociation.RoleThe Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
-
Constructor Summary
Constructors Constructor Description AutonomousDatabaseDataguardAssociation(String id, String autonomousDatabaseId, AutonomousDatabaseDataguardAssociation.Role role, AutonomousDatabaseDataguardAssociation.LifecycleState lifecycleState, String lifecycleDetails, AutonomousDatabaseDataguardAssociation.PeerRole peerRole, String peerAutonomousDatabaseId, AutonomousDatabaseDataguardAssociation.PeerAutonomousDatabaseLifeCycleState peerAutonomousDatabaseLifeCycleState, AutonomousDatabaseDataguardAssociation.ProtectionMode protectionMode, String applyLag, String applyRate, Boolean isAutomaticFailoverEnabled, String transportLag, Date timeLastSynced, Date timeCreated, Date timeLastRoleChanged)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AutonomousDatabaseDataguardAssociation.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetApplyLag()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.StringgetApplyRate()The rate at which redo logs are synced between the associated databases.StringgetAutonomousDatabaseId()The OCID of the Autonomous Database that has a relationship with the peer Autonomous Database.StringgetId()The OCID of the Autonomous Dataguard created for Autonomous Container Database where given Autonomous Database resides in.BooleangetIsAutomaticFailoverEnabled()Indicates whether Automatic Failover is enabled for Autonomous Container Database Dataguard AssociationStringgetLifecycleDetails()Additional information about the current lifecycleState, if available.AutonomousDatabaseDataguardAssociation.LifecycleStategetLifecycleState()The current state of Autonomous Data Guard.StringgetPeerAutonomousDatabaseId()The OCID of the peer Autonomous Database.AutonomousDatabaseDataguardAssociation.PeerAutonomousDatabaseLifeCycleStategetPeerAutonomousDatabaseLifeCycleState()The current state of the Autonomous Database.AutonomousDatabaseDataguardAssociation.PeerRolegetPeerRole()The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.AutonomousDatabaseDataguardAssociation.ProtectionModegetProtectionMode()The protection mode of this Autonomous Data Guard association.AutonomousDatabaseDataguardAssociation.RolegetRole()The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.DategetTimeCreated()The date and time the Data Guard association was created.DategetTimeLastRoleChanged()The date and time when the last role change action happened.DategetTimeLastSynced()The date and time of the last update to the apply lag, apply rate, and transport lag values.StringgetTransportLag()The approximate number of seconds of redo data not yet available on the standby Autonomous Container Database, as computed by the reporting database.inthashCode()AutonomousDatabaseDataguardAssociation.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
AutonomousDatabaseDataguardAssociation
@Deprecated @ConstructorProperties({"id","autonomousDatabaseId","role","lifecycleState","lifecycleDetails","peerRole","peerAutonomousDatabaseId","peerAutonomousDatabaseLifeCycleState","protectionMode","applyLag","applyRate","isAutomaticFailoverEnabled","transportLag","timeLastSynced","timeCreated","timeLastRoleChanged"}) public AutonomousDatabaseDataguardAssociation(String id, String autonomousDatabaseId, AutonomousDatabaseDataguardAssociation.Role role, AutonomousDatabaseDataguardAssociation.LifecycleState lifecycleState, String lifecycleDetails, AutonomousDatabaseDataguardAssociation.PeerRole peerRole, String peerAutonomousDatabaseId, AutonomousDatabaseDataguardAssociation.PeerAutonomousDatabaseLifeCycleState peerAutonomousDatabaseLifeCycleState, AutonomousDatabaseDataguardAssociation.ProtectionMode protectionMode, String applyLag, String applyRate, Boolean isAutomaticFailoverEnabled, String transportLag, Date timeLastSynced, Date timeCreated, Date timeLastRoleChanged)
Deprecated.
-
-
Method Detail
-
builder
public static AutonomousDatabaseDataguardAssociation.Builder builder()
Create a new builder.
-
toBuilder
public AutonomousDatabaseDataguardAssociation.Builder toBuilder()
-
getId
public String getId()
The OCID of the Autonomous Dataguard created for Autonomous Container Database where given Autonomous Database resides in.- Returns:
- the value
-
getAutonomousDatabaseId
public String getAutonomousDatabaseId()
The OCID of the Autonomous Database that has a relationship with the peer Autonomous Database.- Returns:
- the value
-
getRole
public AutonomousDatabaseDataguardAssociation.Role getRole()
The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.- Returns:
- the value
-
getLifecycleState
public AutonomousDatabaseDataguardAssociation.LifecycleState getLifecycleState()
The current state of Autonomous Data Guard.- Returns:
- the value
-
getLifecycleDetails
public String getLifecycleDetails()
Additional information about the current lifecycleState, if available.- Returns:
- the value
-
getPeerRole
public AutonomousDatabaseDataguardAssociation.PeerRole getPeerRole()
The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.- Returns:
- the value
-
getPeerAutonomousDatabaseId
public String getPeerAutonomousDatabaseId()
The OCID of the peer Autonomous Database.- Returns:
- the value
-
getPeerAutonomousDatabaseLifeCycleState
public AutonomousDatabaseDataguardAssociation.PeerAutonomousDatabaseLifeCycleState getPeerAutonomousDatabaseLifeCycleState()
The current state of the Autonomous Database.- Returns:
- the value
-
getProtectionMode
public AutonomousDatabaseDataguardAssociation.ProtectionMode getProtectionMode()
The protection mode of this Autonomous Data Guard association.For more information, see Oracle Data Guard Protection Modes in the Oracle Data Guard documentation.
- 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
-
getIsAutomaticFailoverEnabled
public Boolean getIsAutomaticFailoverEnabled()
Indicates whether Automatic Failover is enabled for Autonomous Container Database Dataguard Association- Returns:
- the value
-
getTransportLag
public String getTransportLag()
The approximate number of seconds of redo data not yet available on the standby Autonomous Container Database, as computed by the reporting database.Example: 7 seconds
- Returns:
- the value
-
getTimeLastSynced
public Date getTimeLastSynced()
The date and time of the last update to the apply lag, apply rate, and transport lag values.- Returns:
- the value
-
getTimeCreated
public Date getTimeCreated()
The date and time the Data Guard association was created.- Returns:
- the value
-
getTimeLastRoleChanged
public Date getTimeLastRoleChanged()
The date and time when the last role change action happened.- 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
-
-