Class MysqlConnection
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.databasemigration.model.Connection
-
- com.oracle.bmc.databasemigration.model.MysqlConnection
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20230518") public final class MysqlConnection extends ConnectionRepresents the metadata of a MySQL Connection.
Note: Objects should always be created or deserialized using theMysqlConnection.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 theMysqlConnection.Builder, which maintain a set of all explicitly set fields calledMysqlConnection.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 classMysqlConnection.Builderstatic classMysqlConnection.SecurityProtocolSecurity Protocol to be used for the connection.static classMysqlConnection.SslModeSSL mode to be used for the connection.static classMysqlConnection.TechnologyTypeThe type of MySQL source or target connection.-
Nested classes/interfaces inherited from class com.oracle.bmc.databasemigration.model.Connection
Connection.LifecycleState
-
-
Constructor Summary
Constructors Constructor Description MysqlConnection(String id, String displayName, String description, String compartmentId, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, Map<String,Map<String,Object>> systemTags, Connection.LifecycleState lifecycleState, String lifecycleDetails, Date timeCreated, Date timeUpdated, String vaultId, String keyId, String subnetId, List<IngressIpDetails> ingressIps, List<String> nsgIds, String username, String password, String replicationUsername, String replicationPassword, String secretId, String privateEndpointId, MysqlConnection.TechnologyType technologyType, String host, Integer port, String databaseName, MysqlConnection.SecurityProtocol securityProtocol, MysqlConnection.SslMode sslMode, List<NameValuePair> additionalAttributes, String dbSystemId)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MysqlConnection.Builderbuilder()Create a new builder.booleanequals(Object o)List<NameValuePair>getAdditionalAttributes()An array of name-value pair attribute entries.StringgetDatabaseName()The name of the database being referenced.StringgetDbSystemId()The OCID of the database system being referenced.StringgetHost()The IP Address of the host.IntegergetPort()The port to be used for the connection.MysqlConnection.SecurityProtocolgetSecurityProtocol()Security Protocol to be used for the connection.MysqlConnection.SslModegetSslMode()SSL mode to be used for the connection.MysqlConnection.TechnologyTypegetTechnologyType()The type of MySQL source or target connection.inthashCode()MysqlConnection.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.-
Methods inherited from class com.oracle.bmc.databasemigration.model.Connection
getCompartmentId, getDefinedTags, getDescription, getDisplayName, getFreeformTags, getId, getIngressIps, getKeyId, getLifecycleDetails, getLifecycleState, getNsgIds, getPassword, getPrivateEndpointId, getReplicationPassword, getReplicationUsername, getSecretId, getSubnetId, getSystemTags, getTimeCreated, getTimeUpdated, getUsername, getVaultId
-
-
-
-
Constructor Detail
-
MysqlConnection
@Deprecated public MysqlConnection(String id, String displayName, String description, String compartmentId, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, Map<String,Map<String,Object>> systemTags, Connection.LifecycleState lifecycleState, String lifecycleDetails, Date timeCreated, Date timeUpdated, String vaultId, String keyId, String subnetId, List<IngressIpDetails> ingressIps, List<String> nsgIds, String username, String password, String replicationUsername, String replicationPassword, String secretId, String privateEndpointId, MysqlConnection.TechnologyType technologyType, String host, Integer port, String databaseName, MysqlConnection.SecurityProtocol securityProtocol, MysqlConnection.SslMode sslMode, List<NameValuePair> additionalAttributes, String dbSystemId)
Deprecated.
-
-
Method Detail
-
builder
public static MysqlConnection.Builder builder()
Create a new builder.
-
toBuilder
public MysqlConnection.Builder toBuilder()
-
getTechnologyType
public MysqlConnection.TechnologyType getTechnologyType()
The type of MySQL source or target connection.Example: OCI_MYSQL represents OCI MySQL HeatWave Database Service
- Returns:
- the value
-
getHost
public String getHost()
The IP Address of the host.- Returns:
- the value
-
getPort
public Integer getPort()
The port to be used for the connection.- Returns:
- the value
-
getDatabaseName
public String getDatabaseName()
The name of the database being referenced.- Returns:
- the value
-
getSecurityProtocol
public MysqlConnection.SecurityProtocol getSecurityProtocol()
Security Protocol to be used for the connection.- Returns:
- the value
-
getSslMode
public MysqlConnection.SslMode getSslMode()
SSL mode to be used for the connection.- Returns:
- the value
-
getAdditionalAttributes
public List<NameValuePair> getAdditionalAttributes()
An array of name-value pair attribute entries.- Returns:
- the value
-
getDbSystemId
public String getDbSystemId()
The OCID of the database system being referenced.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classConnection
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toStringin classConnection- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classConnection
-
hashCode
public int hashCode()
- Overrides:
hashCodein classConnection
-
-