Freigeben über


ProfileType Class

  • java.lang.Object
    • com.azure.resourcemanager.oracledatabase.models.ProfileType

Implements

public final class ProfileType
implements JsonSerializable<ProfileType>

The connection string profile to allow clients to group, filter and select connection string values based on structured metadata.

Constructor Summary

Constructor Description
ProfileType()

Creates an instance of ProfileType class.

Method Summary

Modifier and Type Method and Description
ConsumerGroup consumerGroup()

Get the consumerGroup property: Consumer group used by the connection.

String displayName()

Get the displayName property: A user-friendly name for the connection.

static ProfileType fromJson(JsonReader jsonReader)

Reads an instance of ProfileType from the JsonReader.

HostFormatType hostFormat()

Get the hostFormat property: Host format used in connection string.

Boolean isRegional()

Get the isRegional property: True for a regional connection string, applicable to cross-region DG only.

ProtocolType protocol()

Get the protocol property: Protocol used by the connection.

SessionModeType sessionMode()

Get the sessionMode property: Specifies whether the listener performs a direct hand-off of the session, or redirects the session.

SyntaxFormatType syntaxFormat()

Get the syntaxFormat property: Specifies whether the connection string is using the long (LONG), Easy Connect (EZCONNECT), or Easy Connect Plus (EZCONNECTPLUS) format.

TlsAuthenticationType tlsAuthentication()

Get the tlsAuthentication property: Specifies whether the TLS handshake is using one-way (SERVER) or mutual (MUTUAL) authentication.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: Connection string value.

ProfileType withConsumerGroup(ConsumerGroup consumerGroup)

Set the consumerGroup property: Consumer group used by the connection.

ProfileType withDisplayName(String displayName)

Set the displayName property: A user-friendly name for the connection.

ProfileType withHostFormat(HostFormatType hostFormat)

Set the hostFormat property: Host format used in connection string.

ProfileType withIsRegional(Boolean isRegional)

Set the isRegional property: True for a regional connection string, applicable to cross-region DG only.

ProfileType withProtocol(ProtocolType protocol)

Set the protocol property: Protocol used by the connection.

ProfileType withSessionMode(SessionModeType sessionMode)

Set the sessionMode property: Specifies whether the listener performs a direct hand-off of the session, or redirects the session.

ProfileType withSyntaxFormat(SyntaxFormatType syntaxFormat)

Set the syntaxFormat property: Specifies whether the connection string is using the long (LONG), Easy Connect (EZCONNECT), or Easy Connect Plus (EZCONNECTPLUS) format.

ProfileType withTlsAuthentication(TlsAuthenticationType tlsAuthentication)

Set the tlsAuthentication property: Specifies whether the TLS handshake is using one-way (SERVER) or mutual (MUTUAL) authentication.

ProfileType withValue(String value)

Set the value property: Connection string value.

Methods inherited from java.lang.Object

Constructor Details

ProfileType

public ProfileType()

Creates an instance of ProfileType class.

Method Details

consumerGroup

public ConsumerGroup consumerGroup()

Get the consumerGroup property: Consumer group used by the connection.

Returns:

the consumerGroup value.

displayName

public String displayName()

Get the displayName property: A user-friendly name for the connection.

Returns:

the displayName value.

fromJson

public static ProfileType fromJson(JsonReader jsonReader)

Reads an instance of ProfileType from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ProfileType if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

hostFormat

public HostFormatType hostFormat()

Get the hostFormat property: Host format used in connection string.

Returns:

the hostFormat value.

isRegional

public Boolean isRegional()

Get the isRegional property: True for a regional connection string, applicable to cross-region DG only.

Returns:

the isRegional value.

protocol

public ProtocolType protocol()

Get the protocol property: Protocol used by the connection.

Returns:

the protocol value.

sessionMode

public SessionModeType sessionMode()

Get the sessionMode property: Specifies whether the listener performs a direct hand-off of the session, or redirects the session.

Returns:

the sessionMode value.

syntaxFormat

public SyntaxFormatType syntaxFormat()

Get the syntaxFormat property: Specifies whether the connection string is using the long (LONG), Easy Connect (EZCONNECT), or Easy Connect Plus (EZCONNECTPLUS) format.

Returns:

the syntaxFormat value.

tlsAuthentication

public TlsAuthenticationType tlsAuthentication()

Get the tlsAuthentication property: Specifies whether the TLS handshake is using one-way (SERVER) or mutual (MUTUAL) authentication.

Returns:

the tlsAuthentication value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: Connection string value.

Returns:

the value value.

withConsumerGroup

public ProfileType withConsumerGroup(ConsumerGroup consumerGroup)

Set the consumerGroup property: Consumer group used by the connection.

Parameters:

consumerGroup - the consumerGroup value to set.

Returns:

the ProfileType object itself.

withDisplayName

public ProfileType withDisplayName(String displayName)

Set the displayName property: A user-friendly name for the connection.

Parameters:

displayName - the displayName value to set.

Returns:

the ProfileType object itself.

withHostFormat

public ProfileType withHostFormat(HostFormatType hostFormat)

Set the hostFormat property: Host format used in connection string.

Parameters:

hostFormat - the hostFormat value to set.

Returns:

the ProfileType object itself.

withIsRegional

public ProfileType withIsRegional(Boolean isRegional)

Set the isRegional property: True for a regional connection string, applicable to cross-region DG only.

Parameters:

isRegional - the isRegional value to set.

Returns:

the ProfileType object itself.

withProtocol

public ProfileType withProtocol(ProtocolType protocol)

Set the protocol property: Protocol used by the connection.

Parameters:

protocol - the protocol value to set.

Returns:

the ProfileType object itself.

withSessionMode

public ProfileType withSessionMode(SessionModeType sessionMode)

Set the sessionMode property: Specifies whether the listener performs a direct hand-off of the session, or redirects the session.

Parameters:

sessionMode - the sessionMode value to set.

Returns:

the ProfileType object itself.

withSyntaxFormat

public ProfileType withSyntaxFormat(SyntaxFormatType syntaxFormat)

Set the syntaxFormat property: Specifies whether the connection string is using the long (LONG), Easy Connect (EZCONNECT), or Easy Connect Plus (EZCONNECTPLUS) format.

Parameters:

syntaxFormat - the syntaxFormat value to set.

Returns:

the ProfileType object itself.

withTlsAuthentication

public ProfileType withTlsAuthentication(TlsAuthenticationType tlsAuthentication)

Set the tlsAuthentication property: Specifies whether the TLS handshake is using one-way (SERVER) or mutual (MUTUAL) authentication.

Parameters:

tlsAuthentication - the tlsAuthentication value to set.

Returns:

the ProfileType object itself.

withValue

public ProfileType withValue(String value)

Set the value property: Connection string value.

Parameters:

value - the value value to set.

Returns:

the ProfileType object itself.

Applies to