@Generated(value="OracleSDKGenerator", comments="API Version: 20190415") public final class ChannelSourceMysql extends ChannelSource
Core properties of a Mysql Channel source.
Note: Objects should always be created or deserialized using the ChannelSourceMysql.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 ChannelSourceMysql.Builder
, which maintain a
set of all explicitly set fields called ChannelSourceMysql.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
).
Modifier and Type | Class and Description |
---|---|
static class |
ChannelSourceMysql.Builder |
static class |
ChannelSourceMysql.SslMode
The SSL mode of the Channel.
|
ChannelSource.SourceType
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
ChannelSourceMysql(String hostname,
Integer port,
String username,
ChannelSourceMysql.SslMode sslMode,
CaCertificate sslCaCertificate,
AnonymousTransactionsHandling anonymousTransactionsHandling)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ChannelSourceMysql.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
AnonymousTransactionsHandling |
getAnonymousTransactionsHandling() |
String |
getHostname()
The network address of the MySQL instance.
|
Integer |
getPort()
The port the source MySQL instance listens on.
|
CaCertificate |
getSslCaCertificate() |
ChannelSourceMysql.SslMode |
getSslMode()
The SSL mode of the Channel.
|
String |
getUsername()
The name of the replication user on the source MySQL instance.
|
int |
hashCode() |
ChannelSourceMysql.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public ChannelSourceMysql(String hostname, Integer port, String username, ChannelSourceMysql.SslMode sslMode, CaCertificate sslCaCertificate, AnonymousTransactionsHandling anonymousTransactionsHandling)
public static ChannelSourceMysql.Builder builder()
Create a new builder.
public ChannelSourceMysql.Builder toBuilder()
public String getHostname()
The network address of the MySQL instance.
public Integer getPort()
The port the source MySQL instance listens on.
public String getUsername()
The name of the replication user on the source MySQL instance. The username has a maximum length of 96 characters. For more information, please see the MySQL documentation
public ChannelSourceMysql.SslMode getSslMode()
The SSL mode of the Channel.
public CaCertificate getSslCaCertificate()
public AnonymousTransactionsHandling getAnonymousTransactionsHandling()
public String toString()
toString
in class ChannelSource
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class ChannelSource
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class ChannelSource
public int hashCode()
hashCode
in class ChannelSource
Copyright © 2016–2024. All rights reserved.