Class Db2LinkedServiceTypeProperties
java.lang.Object
com.azure.resourcemanager.datafactory.fluent.models.Db2LinkedServiceTypeProperties
DB2 linked service properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of Db2LinkedServiceTypeProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the authenticationType property: AuthenticationType to be used for connection.Get the certificateCommonName property: Certificate Common Name when TLS is enabled.Get the connectionString property: The connection string.database()Get the database property: Database name for connection.Get the encryptedCredential property: The encrypted credential used for authentication.Get the packageCollection property: Under where packages are created when querying database.password()Get the password property: Password for authentication.server()Get the server property: Server name for connection.username()Get the username property: Username for authentication.voidvalidate()Validates the instance.withAuthenticationType(Db2AuthenticationType authenticationType) Set the authenticationType property: AuthenticationType to be used for connection.withCertificateCommonName(Object certificateCommonName) Set the certificateCommonName property: Certificate Common Name when TLS is enabled.withConnectionString(Object connectionString) Set the connectionString property: The connection string.withDatabase(Object database) Set the database property: Database name for connection.withEncryptedCredential(Object encryptedCredential) Set the encryptedCredential property: The encrypted credential used for authentication.withPackageCollection(Object packageCollection) Set the packageCollection property: Under where packages are created when querying database.withPassword(SecretBase password) Set the password property: Password for authentication.withServer(Object server) Set the server property: Server name for connection.withUsername(Object username) Set the username property: Username for authentication.
-
Constructor Details
-
Db2LinkedServiceTypeProperties
public Db2LinkedServiceTypeProperties()Creates an instance of Db2LinkedServiceTypeProperties class.
-
-
Method Details
-
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
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 Db2LinkedServiceTypeProperties object itself.
-
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
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 Db2LinkedServiceTypeProperties object itself.
-
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
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 Db2LinkedServiceTypeProperties object itself.
-
authenticationType
Get the authenticationType property: AuthenticationType to be used for connection. It is mutually exclusive with connectionString property.- Returns:
- the authenticationType value.
-
withAuthenticationType
public Db2LinkedServiceTypeProperties 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 Db2LinkedServiceTypeProperties object itself.
-
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
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 Db2LinkedServiceTypeProperties object itself.
-
password
Get the password property: Password for authentication.- Returns:
- the password value.
-
withPassword
Set the password property: Password for authentication.- Parameters:
password- the password value to set.- Returns:
- the Db2LinkedServiceTypeProperties object itself.
-
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
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 Db2LinkedServiceTypeProperties object itself.
-
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
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 Db2LinkedServiceTypeProperties object itself.
-
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
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 Db2LinkedServiceTypeProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-