Class Db2LinkedService
- java.lang.Object
-
- com.azure.resourcemanager.datafactory.models.LinkedService
-
- com.azure.resourcemanager.datafactory.models.Db2LinkedService
-
public final class Db2LinkedService extends LinkedService
Linked service for DB2 data source.
-
-
Constructor Summary
Constructors Constructor Description Db2LinkedService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Db2AuthenticationTypeauthenticationType()Get the authenticationType property: AuthenticationType to be used for connection.ObjectcertificateCommonName()Get the certificateCommonName property: Certificate Common Name when TLS is enabled.ObjectconnectionString()Get the connectionString property: The connection string.Objectdatabase()Get the database property: Database name for connection.ObjectencryptedCredential()Get the encryptedCredential property: The encrypted credential used for authentication.ObjectpackageCollection()Get the packageCollection property: Under where packages are created when querying database.SecretBasepassword()Get the password property: Password for authentication.Objectserver()Get the server property: Server name for connection.Objectusername()Get the username property: Username for authentication.voidvalidate()Validates the instance.Db2LinkedServicewithAnnotations(List<Object> annotations)Set the annotations property: List of tags that can be used for describing the linked service.Db2LinkedServicewithAuthenticationType(Db2AuthenticationType authenticationType)Set the authenticationType property: AuthenticationType to be used for connection.Db2LinkedServicewithCertificateCommonName(Object certificateCommonName)Set the certificateCommonName property: Certificate Common Name when TLS is enabled.Db2LinkedServicewithConnectionString(Object connectionString)Set the connectionString property: The connection string.Db2LinkedServicewithConnectVia(IntegrationRuntimeReference connectVia)Set the connectVia property: The integration runtime reference.Db2LinkedServicewithDatabase(Object database)Set the database property: Database name for connection.Db2LinkedServicewithDescription(String description)Set the description property: Linked service description.Db2LinkedServicewithEncryptedCredential(Object encryptedCredential)Set the encryptedCredential property: The encrypted credential used for authentication.Db2LinkedServicewithPackageCollection(Object packageCollection)Set the packageCollection property: Under where packages are created when querying database.Db2LinkedServicewithParameters(Map<String,ParameterSpecification> parameters)Set the parameters property: Parameters for linked service.Db2LinkedServicewithPassword(SecretBase password)Set the password property: Password for authentication.Db2LinkedServicewithServer(Object server)Set the server property: Server name for connection.Db2LinkedServicewithUsername(Object username)Set the username property: Username for authentication.-
Methods inherited from class com.azure.resourcemanager.datafactory.models.LinkedService
additionalProperties, annotations, connectVia, description, parameters, withAdditionalProperties
-
-
-
-
Method Detail
-
withConnectVia
public Db2LinkedService 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 Db2LinkedService 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 Db2LinkedService 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 Db2LinkedService 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.
-
connectionString
public Object connectionString()
Get the connectionString property: The connection string. It is mutually exclusive with server, database, authenticationType, userName, packageCollection and certificateCommonName property. Type: string, SecureString or AzureKeyVaultSecretReference.- Returns:
- the connectionString value.
-
withConnectionString
public Db2LinkedService withConnectionString(Object connectionString)
Set the connectionString property: The connection string. It is mutually exclusive with server, database, authenticationType, userName, packageCollection and certificateCommonName property. Type: string, SecureString or AzureKeyVaultSecretReference.- Parameters:
connectionString- the connectionString value to set.- Returns:
- the Db2LinkedService object itself.
-
server
public Object server()
Get the server property: Server name for connection. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string).- Returns:
- the server value.
-
withServer
public Db2LinkedService withServer(Object server)
Set the server property: Server name for connection. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string).- Parameters:
server- the server value to set.- Returns:
- the Db2LinkedService object itself.
-
database
public Object database()
Get the database property: Database name for connection. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string).- Returns:
- the database value.
-
withDatabase
public Db2LinkedService withDatabase(Object database)
Set the database property: Database name for connection. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string).- Parameters:
database- the database value to set.- Returns:
- the Db2LinkedService object itself.
-
authenticationType
public Db2AuthenticationType authenticationType()
Get the authenticationType property: AuthenticationType to be used for connection. It is mutually exclusive with connectionString property.- Returns:
- the authenticationType value.
-
withAuthenticationType
public Db2LinkedService withAuthenticationType(Db2AuthenticationType authenticationType)
Set the authenticationType property: AuthenticationType to be used for connection. It is mutually exclusive with connectionString property.- Parameters:
authenticationType- the authenticationType value to set.- Returns:
- the Db2LinkedService object itself.
-
username
public Object username()
Get the username property: Username for authentication. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string).- Returns:
- the username value.
-
withUsername
public Db2LinkedService withUsername(Object username)
Set the username property: Username for authentication. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string).- Parameters:
username- the username value to set.- Returns:
- the Db2LinkedService object itself.
-
password
public SecretBase password()
Get the password property: Password for authentication.- Returns:
- the password value.
-
withPassword
public Db2LinkedService withPassword(SecretBase password)
Set the password property: Password for authentication.- Parameters:
password- the password value to set.- Returns:
- the Db2LinkedService object itself.
-
packageCollection
public Object packageCollection()
Get the packageCollection property: Under where packages are created when querying database. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string).- Returns:
- the packageCollection value.
-
withPackageCollection
public Db2LinkedService withPackageCollection(Object packageCollection)
Set the packageCollection property: Under where packages are created when querying database. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string).- Parameters:
packageCollection- the packageCollection value to set.- Returns:
- the Db2LinkedService object itself.
-
certificateCommonName
public Object certificateCommonName()
Get the certificateCommonName property: Certificate Common Name when TLS is enabled. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string).- Returns:
- the certificateCommonName value.
-
withCertificateCommonName
public Db2LinkedService withCertificateCommonName(Object certificateCommonName)
Set the certificateCommonName property: Certificate Common Name when TLS is enabled. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string).- Parameters:
certificateCommonName- the certificateCommonName value to set.- Returns:
- the Db2LinkedService 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. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string).- Returns:
- the encryptedCredential value.
-
withEncryptedCredential
public Db2LinkedService withEncryptedCredential(Object encryptedCredential)
Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string).- Parameters:
encryptedCredential- the encryptedCredential value to set.- Returns:
- the Db2LinkedService object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classLinkedService- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-