Package com.oracle.bmc.database.model
Class DatabaseConnectionStringProfile
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.database.model.DatabaseConnectionStringProfile
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class DatabaseConnectionStringProfile extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The connection string profile to allow clients to group, filter and select connection string values based on structured metadata.
Note: Objects should always be created or deserialized using theDatabaseConnectionStringProfile.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 theDatabaseConnectionStringProfile.Builder
, which maintain a set of all explicitly set fields calledDatabaseConnectionStringProfile.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
DatabaseConnectionStringProfile.Builder
static class
DatabaseConnectionStringProfile.ConsumerGroup
Consumer group used by the connection.static class
DatabaseConnectionStringProfile.HostFormat
Host format used in connection string.static class
DatabaseConnectionStringProfile.Protocol
Protocol used by the connection.static class
DatabaseConnectionStringProfile.SessionMode
Specifies whether the listener performs a direct hand-off of the session, or redirects the session.static class
DatabaseConnectionStringProfile.SyntaxFormat
Specifies whether the connection string is using the long (LONG), Easy Connect (EZCONNECT), or Easy Connect Plus (EZCONNECTPLUS) format.static class
DatabaseConnectionStringProfile.TlsAuthentication
Specifies whether the TLS handshake is using one-way (SERVER) or mutual ( MUTUAL) authentication.
-
Constructor Summary
Constructors Constructor Description DatabaseConnectionStringProfile(String displayName, String value, DatabaseConnectionStringProfile.ConsumerGroup consumerGroup, DatabaseConnectionStringProfile.Protocol protocol, DatabaseConnectionStringProfile.TlsAuthentication tlsAuthentication, DatabaseConnectionStringProfile.HostFormat hostFormat, DatabaseConnectionStringProfile.SessionMode sessionMode, DatabaseConnectionStringProfile.SyntaxFormat syntaxFormat, Boolean isRegional)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DatabaseConnectionStringProfile.Builder
builder()
Create a new builder.boolean
equals(Object o)
DatabaseConnectionStringProfile.ConsumerGroup
getConsumerGroup()
Consumer group used by the connection.String
getDisplayName()
A user-friendly name for the connection.DatabaseConnectionStringProfile.HostFormat
getHostFormat()
Host format used in connection string.Boolean
getIsRegional()
True for a regional connection string, applicable to cross-region DG only.DatabaseConnectionStringProfile.Protocol
getProtocol()
Protocol used by the connection.DatabaseConnectionStringProfile.SessionMode
getSessionMode()
Specifies whether the listener performs a direct hand-off of the session, or redirects the session.DatabaseConnectionStringProfile.SyntaxFormat
getSyntaxFormat()
Specifies whether the connection string is using the long (LONG), Easy Connect (EZCONNECT), or Easy Connect Plus (EZCONNECTPLUS) format.DatabaseConnectionStringProfile.TlsAuthentication
getTlsAuthentication()
Specifies whether the TLS handshake is using one-way (SERVER) or mutual ( MUTUAL) authentication.String
getValue()
Connection string value.int
hashCode()
DatabaseConnectionStringProfile.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
DatabaseConnectionStringProfile
@Deprecated @ConstructorProperties({"displayName","value","consumerGroup","protocol","tlsAuthentication","hostFormat","sessionMode","syntaxFormat","isRegional"}) public DatabaseConnectionStringProfile(String displayName, String value, DatabaseConnectionStringProfile.ConsumerGroup consumerGroup, DatabaseConnectionStringProfile.Protocol protocol, DatabaseConnectionStringProfile.TlsAuthentication tlsAuthentication, DatabaseConnectionStringProfile.HostFormat hostFormat, DatabaseConnectionStringProfile.SessionMode sessionMode, DatabaseConnectionStringProfile.SyntaxFormat syntaxFormat, Boolean isRegional)
Deprecated.
-
-
Method Detail
-
builder
public static DatabaseConnectionStringProfile.Builder builder()
Create a new builder.
-
toBuilder
public DatabaseConnectionStringProfile.Builder toBuilder()
-
getDisplayName
public String getDisplayName()
A user-friendly name for the connection.- Returns:
- the value
-
getValue
public String getValue()
Connection string value.- Returns:
- the value
-
getConsumerGroup
public DatabaseConnectionStringProfile.ConsumerGroup getConsumerGroup()
Consumer group used by the connection.- Returns:
- the value
-
getProtocol
public DatabaseConnectionStringProfile.Protocol getProtocol()
Protocol used by the connection.- Returns:
- the value
-
getTlsAuthentication
public DatabaseConnectionStringProfile.TlsAuthentication getTlsAuthentication()
Specifies whether the TLS handshake is using one-way (SERVER) or mutual ( MUTUAL) authentication.- Returns:
- the value
-
getHostFormat
public DatabaseConnectionStringProfile.HostFormat getHostFormat()
Host format used in connection string.- Returns:
- the value
-
getSessionMode
public DatabaseConnectionStringProfile.SessionMode getSessionMode()
Specifies whether the listener performs a direct hand-off of the session, or redirects the session.In RAC deployments where SCAN is used, sessions are redirected to a Node VIP. Use DIRECT for direct hand-offs. Use REDIRECT to redirect the session.
- Returns:
- the value
-
getSyntaxFormat
public DatabaseConnectionStringProfile.SyntaxFormat getSyntaxFormat()
Specifies whether the connection string is using the long (LONG), Easy Connect (EZCONNECT), or Easy Connect Plus (EZCONNECTPLUS) format.Autonomous Database Serverless instances always use the long format.
- Returns:
- the value
-
getIsRegional
public Boolean getIsRegional()
True for a regional connection string, applicable to cross-region DG only.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-