Compartir a través de


PrestoLinkedService Class

public final class PrestoLinkedService
extends LinkedService

Presto server linked service. This linked service has supported version property. The Version 1.0 is scheduled for deprecation while your pipeline will continue to run after EOL but without any bug fix or new features.

Constructor Summary

Constructor Description
PrestoLinkedService()

Creates an instance of PrestoLinkedService class.

Method Summary

Modifier and Type Method and Description
Object allowHostnameCNMismatch()

Get the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL.

Object allowSelfSignedServerCert()

Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server.

PrestoAuthenticationType authenticationType()

Get the authenticationType property: The authentication mechanism used to connect to the Presto server.

Object catalog()

Get the catalog property: The catalog context for all request against the server.

Object enableServerCertificateValidation()

Get the enableServerCertificateValidation property: Specifies whether the connections to the server will validate server certificate, the default value is True.

Object enableSsl()

Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL.

String encryptedCredential()

Get the encryptedCredential property: The encrypted credential used for authentication.

static PrestoLinkedService fromJson(JsonReader jsonReader)

Reads an instance of PrestoLinkedService from the JsonReader.

Object host()

Get the host property: The IP address or host name of the Presto server.

SecretBase password()

Get the password property: The password corresponding to the user name.

Object port()

Get the port property: The TCP port that the Presto server uses to listen for client connections.

Object serverVersion()

Get the serverVersion property: The version of the Presto server.

Object timeZoneId()

Get the timeZoneId property: The local time zone used by the connection.

JsonWriter toJson(JsonWriter jsonWriter)
Object trustedCertPath()

Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL.

String type()

Get the type property: Type of linked service.

Object username()

Get the username property: The user name used to connect to the Presto server.

Object useSystemTrustStore()

Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or from a specified PEM file.

PrestoLinkedService withAllowHostnameCNMismatch(Object allowHostnameCNMismatch)

Set the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL.

PrestoLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert)

Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server.

PrestoLinkedService withAnnotations(List<Object> annotations)

Set the annotations property: List of tags that can be used for describing the linked service.

PrestoLinkedService withAuthenticationType(PrestoAuthenticationType authenticationType)

Set the authenticationType property: The authentication mechanism used to connect to the Presto server.

PrestoLinkedService withCatalog(Object catalog)

Set the catalog property: The catalog context for all request against the server.

PrestoLinkedService withConnectVia(IntegrationRuntimeReference connectVia)

Set the connectVia property: The integration runtime reference.

PrestoLinkedService withDescription(String description)

Set the description property: Linked service description.

PrestoLinkedService withEnableServerCertificateValidation(Object enableServerCertificateValidation)

Set the enableServerCertificateValidation property: Specifies whether the connections to the server will validate server certificate, the default value is True.

PrestoLinkedService withEnableSsl(Object enableSsl)

Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL.

PrestoLinkedService withEncryptedCredential(String encryptedCredential)

Set the encryptedCredential property: The encrypted credential used for authentication.

PrestoLinkedService withHost(Object host)

Set the host property: The IP address or host name of the Presto server.

PrestoLinkedService withParameters(Map<String,ParameterSpecification> parameters)

Set the parameters property: Parameters for linked service.

PrestoLinkedService withPassword(SecretBase password)

Set the password property: The password corresponding to the user name.

PrestoLinkedService withPort(Object port)

Set the port property: The TCP port that the Presto server uses to listen for client connections.

PrestoLinkedService withServerVersion(Object serverVersion)

Set the serverVersion property: The version of the Presto server.

PrestoLinkedService withTimeZoneId(Object timeZoneId)

Set the timeZoneId property: The local time zone used by the connection.

PrestoLinkedService withTrustedCertPath(Object trustedCertPath)

Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL.

PrestoLinkedService withUsername(Object username)

Set the username property: The user name used to connect to the Presto server.

PrestoLinkedService withUseSystemTrustStore(Object useSystemTrustStore)

Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or from a specified PEM file.

PrestoLinkedService withVersion(String version)

Set the version property: Version of the linked service.

Methods inherited from LinkedService

Methods inherited from java.lang.Object

Constructor Details

PrestoLinkedService

public PrestoLinkedService()

Creates an instance of PrestoLinkedService class.

Method Details

allowHostnameCNMismatch

public Object allowHostnameCNMismatch()

Get the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. Only used for Version 1.0.

Returns:

the allowHostnameCNMismatch value.

allowSelfSignedServerCert

public Object allowSelfSignedServerCert()

Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. The default value is false. Only used for Version 1.0.

Returns:

the allowSelfSignedServerCert value.

authenticationType

public PrestoAuthenticationType authenticationType()

Get the authenticationType property: The authentication mechanism used to connect to the Presto server.

Returns:

the authenticationType value.

catalog

public Object catalog()

Get the catalog property: The catalog context for all request against the server.

Returns:

the catalog value.

enableServerCertificateValidation

public Object enableServerCertificateValidation()

Get the enableServerCertificateValidation property: Specifies whether the connections to the server will validate server certificate, the default value is True. Only used for Version 2.0.

Returns:

the enableServerCertificateValidation value.

enableSsl

public Object enableSsl()

Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default value for legacy version is False. The default value for version 2.0 is True.

Returns:

the enableSsl value.

encryptedCredential

public String encryptedCredential()

Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.

Returns:

the encryptedCredential value.

fromJson

public static PrestoLinkedService fromJson(JsonReader jsonReader)

Reads an instance of PrestoLinkedService from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PrestoLinkedService 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.

host

public Object host()

Get the host property: The IP address or host name of the Presto server. (i.e. 192.168.222.160).

Returns:

the host value.

password

public SecretBase password()

Get the password property: The password corresponding to the user name.

Returns:

the password value.

port

public Object port()

Get the port property: The TCP port that the Presto server uses to listen for client connections. The default value is 8080 when disable SSL, default value is 443 when enable SSL.

Returns:

the port value.

serverVersion

public Object serverVersion()

Get the serverVersion property: The version of the Presto server. (i.e. 0.148-t) Only used for Version 1.0.

Returns:

the serverVersion value.

timeZoneId

public Object timeZoneId()

Get the timeZoneId property: The local time zone used by the connection. Valid values for this option are specified in the IANA Time Zone Database. The default value for Version 1.0 is the client system time zone. The default value for Version 2.0 is server system timeZone.

Returns:

the timeZoneId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PrestoLinkedService.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

trustedCertPath

public Object trustedCertPath()

Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. Only used for Version 1.0.

Returns:

the trustedCertPath value.

type

public String type()

Get the type property: Type of linked service.

Overrides:

PrestoLinkedService.type()

Returns:

the type value.

username

public Object username()

Get the username property: The user name used to connect to the Presto server.

Returns:

the username value.

useSystemTrustStore

public Object useSystemTrustStore()

Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. Only used for Version 1.0.

Returns:

the useSystemTrustStore value.

withAllowHostnameCNMismatch

public PrestoLinkedService withAllowHostnameCNMismatch(Object allowHostnameCNMismatch)

Set the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. Only used for Version 1.0.

Parameters:

allowHostnameCNMismatch - the allowHostnameCNMismatch value to set.

Returns:

the PrestoLinkedService object itself.

withAllowSelfSignedServerCert

public PrestoLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert)

Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. The default value is false. Only used for Version 1.0.

Parameters:

allowSelfSignedServerCert - the allowSelfSignedServerCert value to set.

Returns:

the PrestoLinkedService object itself.

withAnnotations

public PrestoLinkedService withAnnotations(List<Object> annotations)

Set the annotations property: List of tags that can be used for describing the linked service.

Overrides:

PrestoLinkedService.withAnnotations(List<Object> annotations)

Parameters:

annotations

withAuthenticationType

public PrestoLinkedService withAuthenticationType(PrestoAuthenticationType authenticationType)

Set the authenticationType property: The authentication mechanism used to connect to the Presto server.

Parameters:

authenticationType - the authenticationType value to set.

Returns:

the PrestoLinkedService object itself.

withCatalog

public PrestoLinkedService withCatalog(Object catalog)

Set the catalog property: The catalog context for all request against the server.

Parameters:

catalog - the catalog value to set.

Returns:

the PrestoLinkedService object itself.

withConnectVia

public PrestoLinkedService withConnectVia(IntegrationRuntimeReference connectVia)

Set the connectVia property: The integration runtime reference.

Overrides:

PrestoLinkedService.withConnectVia(IntegrationRuntimeReference connectVia)

Parameters:

connectVia

withDescription

public PrestoLinkedService withDescription(String description)

Set the description property: Linked service description.

Overrides:

PrestoLinkedService.withDescription(String description)

Parameters:

description

withEnableServerCertificateValidation

public PrestoLinkedService withEnableServerCertificateValidation(Object enableServerCertificateValidation)

Set the enableServerCertificateValidation property: Specifies whether the connections to the server will validate server certificate, the default value is True. Only used for Version 2.0.

Parameters:

enableServerCertificateValidation - the enableServerCertificateValidation value to set.

Returns:

the PrestoLinkedService object itself.

withEnableSsl

public PrestoLinkedService withEnableSsl(Object enableSsl)

Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default value for legacy version is False. The default value for version 2.0 is True.

Parameters:

enableSsl - the enableSsl value to set.

Returns:

the PrestoLinkedService object itself.

withEncryptedCredential

public PrestoLinkedService withEncryptedCredential(String encryptedCredential)

Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.

Parameters:

encryptedCredential - the encryptedCredential value to set.

Returns:

the PrestoLinkedService object itself.

withHost

public PrestoLinkedService withHost(Object host)

Set the host property: The IP address or host name of the Presto server. (i.e. 192.168.222.160).

Parameters:

host - the host value to set.

Returns:

the PrestoLinkedService object itself.

withParameters

public PrestoLinkedService withParameters(Map<String,ParameterSpecification> parameters)

Set the parameters property: Parameters for linked service.

Overrides:

PrestoLinkedService.withParameters(Map<String,ParameterSpecification> parameters)

Parameters:

parameters

withPassword

public PrestoLinkedService withPassword(SecretBase password)

Set the password property: The password corresponding to the user name.

Parameters:

password - the password value to set.

Returns:

the PrestoLinkedService object itself.

withPort

public PrestoLinkedService withPort(Object port)

Set the port property: The TCP port that the Presto server uses to listen for client connections. The default value is 8080 when disable SSL, default value is 443 when enable SSL.

Parameters:

port - the port value to set.

Returns:

the PrestoLinkedService object itself.

withServerVersion

public PrestoLinkedService withServerVersion(Object serverVersion)

Set the serverVersion property: The version of the Presto server. (i.e. 0.148-t) Only used for Version 1.0.

Parameters:

serverVersion - the serverVersion value to set.

Returns:

the PrestoLinkedService object itself.

withTimeZoneId

public PrestoLinkedService withTimeZoneId(Object timeZoneId)

Set the timeZoneId property: The local time zone used by the connection. Valid values for this option are specified in the IANA Time Zone Database. The default value for Version 1.0 is the client system time zone. The default value for Version 2.0 is server system timeZone.

Parameters:

timeZoneId - the timeZoneId value to set.

Returns:

the PrestoLinkedService object itself.

withTrustedCertPath

public PrestoLinkedService withTrustedCertPath(Object trustedCertPath)

Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. Only used for Version 1.0.

Parameters:

trustedCertPath - the trustedCertPath value to set.

Returns:

the PrestoLinkedService object itself.

withUsername

public PrestoLinkedService withUsername(Object username)

Set the username property: The user name used to connect to the Presto server.

Parameters:

username - the username value to set.

Returns:

the PrestoLinkedService object itself.

withUseSystemTrustStore

public PrestoLinkedService withUseSystemTrustStore(Object useSystemTrustStore)

Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. Only used for Version 1.0.

Parameters:

useSystemTrustStore - the useSystemTrustStore value to set.

Returns:

the PrestoLinkedService object itself.

withVersion

public PrestoLinkedService withVersion(String version)

Set the version property: Version of the linked service.

Overrides:

PrestoLinkedService.withVersion(String version)

Parameters:

version

Applies to