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 Connection
Represents 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 class
MysqlConnection.Builder
static class
MysqlConnection.SecurityProtocol
Security Protocol to be used for the connection.static class
MysqlConnection.SslMode
SSL mode to be used for the connection.static class
MysqlConnection.TechnologyType
The 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.Builder
builder()
Create a new builder.boolean
equals(Object o)
List<NameValuePair>
getAdditionalAttributes()
An array of name-value pair attribute entries.String
getDatabaseName()
The name of the database being referenced.String
getDbSystemId()
The OCID of the database system being referenced.String
getHost()
The IP Address of the host.Integer
getPort()
The port to be used for the connection.MysqlConnection.SecurityProtocol
getSecurityProtocol()
Security Protocol to be used for the connection.MysqlConnection.SslMode
getSslMode()
SSL mode to be used for the connection.MysqlConnection.TechnologyType
getTechnologyType()
The type of MySQL source or target connection.int
hashCode()
MysqlConnection.Builder
toBuilder()
String
toString()
String
toString(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:
toString
in classConnection
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toString
in classConnection
- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classConnection
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classConnection
-
-