Class SparkLinkedService
- java.lang.Object
-
- com.azure.resourcemanager.datafactory.models.LinkedService
-
- com.azure.resourcemanager.datafactory.models.SparkLinkedService
-
public final class SparkLinkedService extends LinkedService
Spark Server linked service.
-
-
Constructor Summary
Constructors Constructor Description SparkLinkedService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectallowHostnameCNMismatch()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.ObjectallowSelfSignedServerCert()Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server.SparkAuthenticationTypeauthenticationType()Get the authenticationType property: The authentication method used to access the Spark server.ObjectenableSsl()Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL.ObjectencryptedCredential()Get the encryptedCredential property: The encrypted credential used for authentication.Objecthost()Get the host property: IP address or host name of the Spark server.ObjecthttpPath()Get the httpPath property: The partial URL corresponding to the Spark server.SecretBasepassword()Get the password property: The password corresponding to the user name that you provided in the Username field.Objectport()Get the port property: The TCP port that the Spark server uses to listen for client connections.SparkServerTypeserverType()Get the serverType property: The type of Spark server.SparkThriftTransportProtocolthriftTransportProtocol()Get the thriftTransportProtocol property: The transport protocol to use in the Thrift layer.ObjecttrustedCertPath()Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL.Objectusername()Get the username property: The user name that you use to access Spark Server.ObjectuseSystemTrustStore()Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or from a specified PEM file.voidvalidate()Validates the instance.SparkLinkedServicewithAllowHostnameCNMismatch(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.SparkLinkedServicewithAllowSelfSignedServerCert(Object allowSelfSignedServerCert)Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server.SparkLinkedServicewithAnnotations(List<Object> annotations)Set the annotations property: List of tags that can be used for describing the linked service.SparkLinkedServicewithAuthenticationType(SparkAuthenticationType authenticationType)Set the authenticationType property: The authentication method used to access the Spark server.SparkLinkedServicewithConnectVia(IntegrationRuntimeReference connectVia)Set the connectVia property: The integration runtime reference.SparkLinkedServicewithDescription(String description)Set the description property: Linked service description.SparkLinkedServicewithEnableSsl(Object enableSsl)Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL.SparkLinkedServicewithEncryptedCredential(Object encryptedCredential)Set the encryptedCredential property: The encrypted credential used for authentication.SparkLinkedServicewithHost(Object host)Set the host property: IP address or host name of the Spark server.SparkLinkedServicewithHttpPath(Object httpPath)Set the httpPath property: The partial URL corresponding to the Spark server.SparkLinkedServicewithParameters(Map<String,ParameterSpecification> parameters)Set the parameters property: Parameters for linked service.SparkLinkedServicewithPassword(SecretBase password)Set the password property: The password corresponding to the user name that you provided in the Username field.SparkLinkedServicewithPort(Object port)Set the port property: The TCP port that the Spark server uses to listen for client connections.SparkLinkedServicewithServerType(SparkServerType serverType)Set the serverType property: The type of Spark server.SparkLinkedServicewithThriftTransportProtocol(SparkThriftTransportProtocol thriftTransportProtocol)Set the thriftTransportProtocol property: The transport protocol to use in the Thrift layer.SparkLinkedServicewithTrustedCertPath(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.SparkLinkedServicewithUsername(Object username)Set the username property: The user name that you use to access Spark Server.SparkLinkedServicewithUseSystemTrustStore(Object useSystemTrustStore)Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or from a specified PEM file.-
Methods inherited from class com.azure.resourcemanager.datafactory.models.LinkedService
additionalProperties, annotations, connectVia, description, parameters, withAdditionalProperties
-
-
-
-
Method Detail
-
withConnectVia
public SparkLinkedService withConnectVia(IntegrationRuntimeReference connectVia)
Set the connectVia property: The integration runtime reference.- Overrides:
withConnectViain classLinkedService- Parameters:
connectVia- the connectVia value to set.- Returns:
- the LinkedService object itself.
-
withDescription
public SparkLinkedService withDescription(String description)
Set the description property: Linked service description.- Overrides:
withDescriptionin classLinkedService- Parameters:
description- the description value to set.- Returns:
- the LinkedService object itself.
-
withParameters
public SparkLinkedService withParameters(Map<String,ParameterSpecification> parameters)
Set the parameters property: Parameters for linked service.- Overrides:
withParametersin classLinkedService- Parameters:
parameters- the parameters value to set.- Returns:
- the LinkedService object itself.
-
withAnnotations
public SparkLinkedService withAnnotations(List<Object> annotations)
Set the annotations property: List of tags that can be used for describing the linked service.- Overrides:
withAnnotationsin classLinkedService- Parameters:
annotations- the annotations value to set.- Returns:
- the LinkedService object itself.
-
host
public Object host()
Get the host property: IP address or host name of the Spark server.- Returns:
- the host value.
-
withHost
public SparkLinkedService withHost(Object host)
Set the host property: IP address or host name of the Spark server.- Parameters:
host- the host value to set.- Returns:
- the SparkLinkedService object itself.
-
port
public Object port()
Get the port property: The TCP port that the Spark server uses to listen for client connections.- Returns:
- the port value.
-
withPort
public SparkLinkedService withPort(Object port)
Set the port property: The TCP port that the Spark server uses to listen for client connections.- Parameters:
port- the port value to set.- Returns:
- the SparkLinkedService object itself.
-
serverType
public SparkServerType serverType()
Get the serverType property: The type of Spark server.- Returns:
- the serverType value.
-
withServerType
public SparkLinkedService withServerType(SparkServerType serverType)
Set the serverType property: The type of Spark server.- Parameters:
serverType- the serverType value to set.- Returns:
- the SparkLinkedService object itself.
-
thriftTransportProtocol
public SparkThriftTransportProtocol thriftTransportProtocol()
Get the thriftTransportProtocol property: The transport protocol to use in the Thrift layer.- Returns:
- the thriftTransportProtocol value.
-
withThriftTransportProtocol
public SparkLinkedService withThriftTransportProtocol(SparkThriftTransportProtocol thriftTransportProtocol)
Set the thriftTransportProtocol property: The transport protocol to use in the Thrift layer.- Parameters:
thriftTransportProtocol- the thriftTransportProtocol value to set.- Returns:
- the SparkLinkedService object itself.
-
authenticationType
public SparkAuthenticationType authenticationType()
Get the authenticationType property: The authentication method used to access the Spark server.- Returns:
- the authenticationType value.
-
withAuthenticationType
public SparkLinkedService withAuthenticationType(SparkAuthenticationType authenticationType)
Set the authenticationType property: The authentication method used to access the Spark server.- Parameters:
authenticationType- the authenticationType value to set.- Returns:
- the SparkLinkedService object itself.
-
username
public Object username()
Get the username property: The user name that you use to access Spark Server.- Returns:
- the username value.
-
withUsername
public SparkLinkedService withUsername(Object username)
Set the username property: The user name that you use to access Spark Server.- Parameters:
username- the username value to set.- Returns:
- the SparkLinkedService object itself.
-
password
public SecretBase password()
Get the password property: The password corresponding to the user name that you provided in the Username field.- Returns:
- the password value.
-
withPassword
public SparkLinkedService withPassword(SecretBase password)
Set the password property: The password corresponding to the user name that you provided in the Username field.- Parameters:
password- the password value to set.- Returns:
- the SparkLinkedService object itself.
-
httpPath
public Object httpPath()
Get the httpPath property: The partial URL corresponding to the Spark server.- Returns:
- the httpPath value.
-
withHttpPath
public SparkLinkedService withHttpPath(Object httpPath)
Set the httpPath property: The partial URL corresponding to the Spark server.- Parameters:
httpPath- the httpPath value to set.- Returns:
- the SparkLinkedService object itself.
-
enableSsl
public Object enableSsl()
Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default value is false.- Returns:
- the enableSsl value.
-
withEnableSsl
public SparkLinkedService withEnableSsl(Object enableSsl)
Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default value is false.- Parameters:
enableSsl- the enableSsl value to set.- Returns:
- the SparkLinkedService object itself.
-
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.- Returns:
- the trustedCertPath value.
-
withTrustedCertPath
public SparkLinkedService 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.- Parameters:
trustedCertPath- the trustedCertPath value to set.- Returns:
- the SparkLinkedService object itself.
-
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.- Returns:
- the useSystemTrustStore value.
-
withUseSystemTrustStore
public SparkLinkedService 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.- Parameters:
useSystemTrustStore- the useSystemTrustStore value to set.- Returns:
- the SparkLinkedService object itself.
-
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.- Returns:
- the allowHostnameCNMismatch value.
-
withAllowHostnameCNMismatch
public SparkLinkedService 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.- Parameters:
allowHostnameCNMismatch- the allowHostnameCNMismatch value to set.- Returns:
- the SparkLinkedService object itself.
-
allowSelfSignedServerCert
public Object allowSelfSignedServerCert()
Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. The default value is false.- Returns:
- the allowSelfSignedServerCert value.
-
withAllowSelfSignedServerCert
public SparkLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert)
Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server. The default value is false.- Parameters:
allowSelfSignedServerCert- the allowSelfSignedServerCert value to set.- Returns:
- the SparkLinkedService object itself.
-
encryptedCredential
public Object encryptedCredential()
Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string).- Returns:
- the encryptedCredential value.
-
withEncryptedCredential
public SparkLinkedService withEncryptedCredential(Object encryptedCredential)
Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string).- Parameters:
encryptedCredential- the encryptedCredential value to set.- Returns:
- the SparkLinkedService object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classLinkedService- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-