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 ChannelSourceCore 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 classChannelSourceMysql.Builderstatic classChannelSourceMysql.SslModeThe 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.Builderbuilder()Create a new builder.booleanequals(Object o)AnonymousTransactionsHandlinggetAnonymousTransactionsHandling()StringgetHostname()The network address of the MySQL instance.IntegergetPort()The port the source MySQL instance listens on.CaCertificategetSslCaCertificate()ChannelSourceMysql.SslModegetSslMode()The SSL mode of the Channel.StringgetUsername()The name of the replication user on the source MySQL instance.inthashCode()ChannelSourceMysql.BuildertoBuilder()StringtoString()StringtoString(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:
toStringin classChannelSource
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toStringin classChannelSource- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classChannelSource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classChannelSource
-
-