Package com.oracle.bmc.mysql.model
Class ChannelSourceMysql
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.mysql.model.ChannelSource
-
- com.oracle.bmc.mysql.model.ChannelSourceMysql
-
@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 theChannelSourceMysql.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 theChannelSourceMysql.Builder
, which maintain a set of all explicitly set fields calledChannelSourceMysql.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 class
ChannelSourceMysql.Builder
static class
ChannelSourceMysql.SslMode
The SSL mode of the Channel.-
Nested classes/interfaces inherited from class com.oracle.bmc.mysql.model.ChannelSource
ChannelSource.SourceType
-
-
Constructor Summary
Constructors Constructor Description ChannelSourceMysql(String hostname, Integer port, String username, ChannelSourceMysql.SslMode sslMode, CaCertificate sslCaCertificate, AnonymousTransactionsHandling anonymousTransactionsHandling)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
ChannelSourceMysql
@Deprecated public ChannelSourceMysql(String hostname, Integer port, String username, ChannelSourceMysql.SslMode sslMode, CaCertificate sslCaCertificate, AnonymousTransactionsHandling anonymousTransactionsHandling)
Deprecated.
-
-
Method Detail
-
builder
public static ChannelSourceMysql.Builder builder()
Create a new builder.
-
toBuilder
public ChannelSourceMysql.Builder toBuilder()
-
getHostname
public String getHostname()
The network address of the MySQL instance.- Returns:
- the value
-
getPort
public Integer getPort()
The port the source MySQL instance listens on.- Returns:
- the value
-
getUsername
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
- Returns:
- the value
-
getSslMode
public ChannelSourceMysql.SslMode getSslMode()
The SSL mode of the Channel.- Returns:
- the value
-
getSslCaCertificate
public CaCertificate getSslCaCertificate()
-
getAnonymousTransactionsHandling
public AnonymousTransactionsHandling getAnonymousTransactionsHandling()
-
toString
public String toString()
- Overrides:
toString
in classChannelSource
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toString
in classChannelSource
- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classChannelSource
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classChannelSource
-
-