Package com.oracle.bmc.database.model
Class DataGuardAssociation.Builder
- java.lang.Object
-
- com.oracle.bmc.database.model.DataGuardAssociation.Builder
-
- Enclosing class:
- DataGuardAssociation
public static class DataGuardAssociation.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataGuardAssociation.Builder
applyLag(String applyLag)
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.DataGuardAssociation.Builder
applyRate(String applyRate)
The rate at which redo logs are synced between the associated databases.DataGuardAssociation
build()
DataGuardAssociation.Builder
copy(DataGuardAssociation model)
DataGuardAssociation.Builder
databaseId(String databaseId)
The OCID of the reporting database.DataGuardAssociation.Builder
id(String id)
The OCID of the Data Guard association.DataGuardAssociation.Builder
isActiveDataGuardEnabled(Boolean isActiveDataGuardEnabled)
True if active Data Guard is enabled.DataGuardAssociation.Builder
lifecycleDetails(String lifecycleDetails)
Additional information about the current lifecycleState, if available.DataGuardAssociation.Builder
lifecycleState(DataGuardAssociation.LifecycleState lifecycleState)
The current state of the Data Guard association.DataGuardAssociation.Builder
peerDatabaseId(String peerDatabaseId)
The OCID of the associated peer database.DataGuardAssociation.Builder
peerDataGuardAssociationId(String peerDataGuardAssociationId)
The OCID of the peer database’s Data Guard association.DataGuardAssociation.Builder
peerDbHomeId(String peerDbHomeId)
The OCID of the Database Home containing the associated peer database.DataGuardAssociation.Builder
peerDbSystemId(String peerDbSystemId)
The OCID of the DB system containing the associated peer database.DataGuardAssociation.Builder
peerRole(DataGuardAssociation.PeerRole peerRole)
The role of the peer database in this Data Guard association.DataGuardAssociation.Builder
protectionMode(DataGuardAssociation.ProtectionMode protectionMode)
The protection mode of this Data Guard association.DataGuardAssociation.Builder
role(DataGuardAssociation.Role role)
The role of the reporting database in this Data Guard association.DataGuardAssociation.Builder
timeCreated(Date timeCreated)
The date and time the Data Guard association was created.DataGuardAssociation.Builder
transportType(DataGuardAssociation.TransportType transportType)
The redo transport type used by this Data Guard association.
-
-
-
Method Detail
-
id
public DataGuardAssociation.Builder id(String id)
The OCID of the Data Guard association.- Parameters:
id
- the value to set- Returns:
- this builder
-
databaseId
public DataGuardAssociation.Builder databaseId(String databaseId)
The OCID of the reporting database.- Parameters:
databaseId
- the value to set- Returns:
- this builder
-
role
public DataGuardAssociation.Builder role(DataGuardAssociation.Role role)
The role of the reporting database in this Data Guard association.- Parameters:
role
- the value to set- Returns:
- this builder
-
lifecycleState
public DataGuardAssociation.Builder lifecycleState(DataGuardAssociation.LifecycleState lifecycleState)
The current state of the Data Guard association.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public DataGuardAssociation.Builder lifecycleDetails(String lifecycleDetails)
Additional information about the current lifecycleState, if available.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
peerDbSystemId
public DataGuardAssociation.Builder peerDbSystemId(String peerDbSystemId)
The OCID of the DB system containing the associated peer database.- Parameters:
peerDbSystemId
- the value to set- Returns:
- this builder
-
peerDbHomeId
public DataGuardAssociation.Builder peerDbHomeId(String peerDbHomeId)
The OCID of the Database Home containing the associated peer database.- Parameters:
peerDbHomeId
- the value to set- Returns:
- this builder
-
peerDatabaseId
public DataGuardAssociation.Builder peerDatabaseId(String peerDatabaseId)
The OCID of the associated peer database.- Parameters:
peerDatabaseId
- the value to set- Returns:
- this builder
-
peerDataGuardAssociationId
public DataGuardAssociation.Builder peerDataGuardAssociationId(String peerDataGuardAssociationId)
The OCID of the peer database’s Data Guard association.- Parameters:
peerDataGuardAssociationId
- the value to set- Returns:
- this builder
-
peerRole
public DataGuardAssociation.Builder peerRole(DataGuardAssociation.PeerRole peerRole)
The role of the peer database in this Data Guard association.- Parameters:
peerRole
- the value to set- Returns:
- this builder
-
applyLag
public DataGuardAssociation.Builder applyLag(String applyLag)
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
- Parameters:
applyLag
- the value to set- Returns:
- this builder
-
applyRate
public DataGuardAssociation.Builder applyRate(String applyRate)
The rate at which redo logs are synced between the associated databases.Example: 180 Mb per second
- Parameters:
applyRate
- the value to set- Returns:
- this builder
-
protectionMode
public DataGuardAssociation.Builder protectionMode(DataGuardAssociation.ProtectionMode protectionMode)
The protection mode of this Data Guard association.For more information, see Oracle Data Guard Protection Modes in the Oracle Data Guard documentation.
- Parameters:
protectionMode
- the value to set- Returns:
- this builder
-
transportType
public DataGuardAssociation.Builder transportType(DataGuardAssociation.TransportType transportType)
The redo transport type used by this Data Guard association.For more information, see Redo Transport Services in the Oracle Data Guard documentation.
- Parameters:
transportType
- the value to set- Returns:
- this builder
-
timeCreated
public DataGuardAssociation.Builder timeCreated(Date timeCreated)
The date and time the Data Guard association was created.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
isActiveDataGuardEnabled
public DataGuardAssociation.Builder isActiveDataGuardEnabled(Boolean isActiveDataGuardEnabled)
True if active Data Guard is enabled.- Parameters:
isActiveDataGuardEnabled
- the value to set- Returns:
- this builder
-
build
public DataGuardAssociation build()
-
copy
public DataGuardAssociation.Builder copy(DataGuardAssociation model)
-
-