Class ManagedMySqlDatabaseGeneralReplicationInformation.Builder
- java.lang.Object
-
- com.oracle.bmc.databasemanagement.model.ManagedMySqlDatabaseGeneralReplicationInformation.Builder
-
- Enclosing class:
- ManagedMySqlDatabaseGeneralReplicationInformation
public static class ManagedMySqlDatabaseGeneralReplicationInformation.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
instanceType
public ManagedMySqlDatabaseGeneralReplicationInformation.Builder instanceType(String instanceType)
The type of the instance.Source, Replica, Primary Group Member, Secondary Group Member, and so on. If the instance is replicating from one or more sources and has one or more replicas, i.e., it belongs to a replication chain, the instance type can be Replica/Source.
- Parameters:
instanceType
- the value to set- Returns:
- this builder
-
hostName
public ManagedMySqlDatabaseGeneralReplicationInformation.Builder hostName(String hostName)
This server’s host name.- Parameters:
hostName
- the value to set- Returns:
- this builder
-
port
public ManagedMySqlDatabaseGeneralReplicationInformation.Builder port(Integer port)
The number of the port on which the server listens for TCP/IP connections.- Parameters:
port
- the value to set- Returns:
- this builder
-
serverId
public ManagedMySqlDatabaseGeneralReplicationInformation.Builder serverId(Long serverId)
This server’s ID.- Parameters:
serverId
- the value to set- Returns:
- this builder
-
serverUuid
public ManagedMySqlDatabaseGeneralReplicationInformation.Builder serverUuid(String serverUuid)
This server’s Universally Unique Identifier (UUID).- Parameters:
serverUuid
- the value to set- Returns:
- this builder
-
secondsBehindSourceMax
public ManagedMySqlDatabaseGeneralReplicationInformation.Builder secondsBehindSourceMax(Long secondsBehindSourceMax)
The number of seconds the replica is behind the source.When multiple sources are involved, this is the maximum value across all sources.
- Parameters:
secondsBehindSourceMax
- the value to set- Returns:
- this builder
-
fetchStatusSummary
public ManagedMySqlDatabaseGeneralReplicationInformation.Builder fetchStatusSummary(String fetchStatusSummary)
A summary of the current status of fetch operations.- Parameters:
fetchStatusSummary
- the value to set- Returns:
- this builder
-
applyStatusSummary
public ManagedMySqlDatabaseGeneralReplicationInformation.Builder applyStatusSummary(String applyStatusSummary)
A summary of the current status of apply operations.- Parameters:
applyStatusSummary
- the value to set- Returns:
- this builder
-
isHighAvailabilityEnabled
public ManagedMySqlDatabaseGeneralReplicationInformation.Builder isHighAvailabilityEnabled(Boolean isHighAvailabilityEnabled)
Specifies if high availability is enabled on this server.- Parameters:
isHighAvailabilityEnabled
- the value to set- Returns:
- this builder
-
highAvailabilityMemberState
public ManagedMySqlDatabaseGeneralReplicationInformation.Builder highAvailabilityMemberState(String highAvailabilityMemberState)
The state of this server as a group replication member.- Parameters:
highAvailabilityMemberState
- the value to set- Returns:
- this builder
-
inboundReplicationsCount
public ManagedMySqlDatabaseGeneralReplicationInformation.Builder inboundReplicationsCount(Integer inboundReplicationsCount)
The number of sources this server is replicating from.- Parameters:
inboundReplicationsCount
- the value to set- Returns:
- this builder
-
readOnly
public ManagedMySqlDatabaseGeneralReplicationInformation.Builder readOnly(MySqlReadOnly readOnly)
If the value is ON, the instance is configured as read_only.If the value is SUPER, the instance is configured as super_read_only. If the value is OFF, the instance is neither read_only nor super_read_only.
- Parameters:
readOnly
- the value to set- Returns:
- this builder
-
gtidMode
public ManagedMySqlDatabaseGeneralReplicationInformation.Builder gtidMode(String gtidMode)
Global Transaction Identifier (GTID) mode of this server.- Parameters:
gtidMode
- the value to set- Returns:
- this builder
-
executedGtidSet
public ManagedMySqlDatabaseGeneralReplicationInformation.Builder executedGtidSet(String executedGtidSet)
The set of global transaction identifiers for transactions that have been executed on this source server.- Parameters:
executedGtidSet
- the value to set- Returns:
- this builder
-
binaryLogging
public ManagedMySqlDatabaseGeneralReplicationInformation.Builder binaryLogging(String binaryLogging)
Status of binary logging on this server.- Parameters:
binaryLogging
- the value to set- Returns:
- this builder
-
binaryLogFormat
public ManagedMySqlDatabaseGeneralReplicationInformation.Builder binaryLogFormat(String binaryLogFormat)
The binary logging format used by this server.- Parameters:
binaryLogFormat
- the value to set- Returns:
- this builder
-
outboundReplicationsCount
public ManagedMySqlDatabaseGeneralReplicationInformation.Builder outboundReplicationsCount(Integer outboundReplicationsCount)
The number of replicas replicating from this server.- Parameters:
outboundReplicationsCount
- the value to set- Returns:
- this builder
-
build
public ManagedMySqlDatabaseGeneralReplicationInformation build()
-
-