Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.datafactory.inputs.AzureSqlDatabaseLinkedServiceArgs Maven / Gradle / Ivy
Go to download
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.datafactory.inputs;
import com.pulumi.azurenative.datafactory.enums.AzureSqlDatabaseAuthenticationType;
import com.pulumi.azurenative.datafactory.inputs.AzureKeyVaultSecretReferenceArgs;
import com.pulumi.azurenative.datafactory.inputs.CredentialReferenceArgs;
import com.pulumi.azurenative.datafactory.inputs.IntegrationRuntimeReferenceArgs;
import com.pulumi.azurenative.datafactory.inputs.ParameterSpecificationArgs;
import com.pulumi.azurenative.datafactory.inputs.SecureStringArgs;
import com.pulumi.azurenative.datafactory.inputs.SqlAlwaysEncryptedPropertiesArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Microsoft Azure SQL Database linked service.
*
*/
public final class AzureSqlDatabaseLinkedServiceArgs extends com.pulumi.resources.ResourceArgs {
public static final AzureSqlDatabaseLinkedServiceArgs Empty = new AzureSqlDatabaseLinkedServiceArgs();
/**
* Sql always encrypted properties.
*
*/
@Import(name="alwaysEncryptedSettings")
private @Nullable Output alwaysEncryptedSettings;
/**
* @return Sql always encrypted properties.
*
*/
public Optional> alwaysEncryptedSettings() {
return Optional.ofNullable(this.alwaysEncryptedSettings);
}
/**
* List of tags that can be used for describing the linked service.
*
*/
@Import(name="annotations")
private @Nullable Output> annotations;
/**
* @return List of tags that can be used for describing the linked service.
*
*/
public Optional>> annotations() {
return Optional.ofNullable(this.annotations);
}
/**
* The application workload type when connecting to a server, used by recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression with resultType string).
*
*/
@Import(name="applicationIntent")
private @Nullable Output applicationIntent;
/**
* @return The application workload type when connecting to a server, used by recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression with resultType string).
*
*/
public Optional> applicationIntent() {
return Optional.ofNullable(this.applicationIntent);
}
/**
* The type used for authentication. Type: string.
*
*/
@Import(name="authenticationType")
private @Nullable Output> authenticationType;
/**
* @return The type used for authentication. Type: string.
*
*/
public Optional>> authenticationType() {
return Optional.ofNullable(this.authenticationType);
}
/**
* Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string).
*
*/
@Import(name="azureCloudType")
private @Nullable Output azureCloudType;
/**
* @return Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string).
*
*/
public Optional> azureCloudType() {
return Optional.ofNullable(this.azureCloudType);
}
/**
* The default wait time (in seconds) before terminating the attempt to execute a command and generating an error, used by recommended version. Type: integer (or Expression with resultType integer).
*
*/
@Import(name="commandTimeout")
private @Nullable Output commandTimeout;
/**
* @return The default wait time (in seconds) before terminating the attempt to execute a command and generating an error, used by recommended version. Type: integer (or Expression with resultType integer).
*
*/
public Optional> commandTimeout() {
return Optional.ofNullable(this.commandTimeout);
}
/**
* The number of re-connections attempted after identifying that there was an idle connection failure, used by recommended version. This must be an integer between 0 and 255. Type: integer (or Expression with resultType integer).
*
*/
@Import(name="connectRetryCount")
private @Nullable Output connectRetryCount;
/**
* @return The number of re-connections attempted after identifying that there was an idle connection failure, used by recommended version. This must be an integer between 0 and 255. Type: integer (or Expression with resultType integer).
*
*/
public Optional> connectRetryCount() {
return Optional.ofNullable(this.connectRetryCount);
}
/**
* The amount of time (in seconds) between each re-connection attempt after identifying that there was an idle connection failure, used by recommended version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType integer).
*
*/
@Import(name="connectRetryInterval")
private @Nullable Output connectRetryInterval;
/**
* @return The amount of time (in seconds) between each re-connection attempt after identifying that there was an idle connection failure, used by recommended version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType integer).
*
*/
public Optional> connectRetryInterval() {
return Optional.ofNullable(this.connectRetryInterval);
}
/**
* The length of time (in seconds) to wait for a connection to the server before terminating the attempt and generating an error, used by recommended version. Type: integer (or Expression with resultType integer).
*
*/
@Import(name="connectTimeout")
private @Nullable Output connectTimeout;
/**
* @return The length of time (in seconds) to wait for a connection to the server before terminating the attempt and generating an error, used by recommended version. Type: integer (or Expression with resultType integer).
*
*/
public Optional> connectTimeout() {
return Optional.ofNullable(this.connectTimeout);
}
/**
* The integration runtime reference.
*
*/
@Import(name="connectVia")
private @Nullable Output connectVia;
/**
* @return The integration runtime reference.
*
*/
public Optional> connectVia() {
return Optional.ofNullable(this.connectVia);
}
/**
* The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.
*
*/
@Import(name="connectionString")
private @Nullable Output connectionString;
/**
* @return The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.
*
*/
public Optional> connectionString() {
return Optional.ofNullable(this.connectionString);
}
/**
* The credential reference containing authentication information.
*
*/
@Import(name="credential")
private @Nullable Output credential;
/**
* @return The credential reference containing authentication information.
*
*/
public Optional> credential() {
return Optional.ofNullable(this.credential);
}
/**
* The name of the database, used by recommended version. Type: string (or Expression with resultType string).
*
*/
@Import(name="database")
private @Nullable Output database;
/**
* @return The name of the database, used by recommended version. Type: string (or Expression with resultType string).
*
*/
public Optional> database() {
return Optional.ofNullable(this.database);
}
/**
* Linked service description.
*
*/
@Import(name="description")
private @Nullable Output description;
/**
* @return Linked service description.
*
*/
public Optional> description() {
return Optional.ofNullable(this.description);
}
/**
* Indicate whether TLS encryption is required for all data sent between the client and server, used by recommended version. Possible values are true/yes/mandatory, false/no/optional and strict. Type: string (or Expression with resultType string).
*
*/
@Import(name="encrypt")
private @Nullable Output encrypt;
/**
* @return Indicate whether TLS encryption is required for all data sent between the client and server, used by recommended version. Possible values are true/yes/mandatory, false/no/optional and strict. Type: string (or Expression with resultType string).
*
*/
public Optional> encrypt() {
return Optional.ofNullable(this.encrypt);
}
/**
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.
*
*/
@Import(name="encryptedCredential")
private @Nullable Output encryptedCredential;
/**
* @return The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.
*
*/
public Optional> encryptedCredential() {
return Optional.ofNullable(this.encryptedCredential);
}
/**
* The name or address of the partner server to connect to if the primary server is down, used by recommended version. Type: string (or Expression with resultType string).
*
*/
@Import(name="failoverPartner")
private @Nullable Output failoverPartner;
/**
* @return The name or address of the partner server to connect to if the primary server is down, used by recommended version. Type: string (or Expression with resultType string).
*
*/
public Optional> failoverPartner() {
return Optional.ofNullable(this.failoverPartner);
}
/**
* The host name to use when validating the server certificate for the connection. When not specified, the server name from the Data Source is used for certificate validation, used by recommended version. Type: string (or Expression with resultType string).
*
*/
@Import(name="hostNameInCertificate")
private @Nullable Output hostNameInCertificate;
/**
* @return The host name to use when validating the server certificate for the connection. When not specified, the server name from the Data Source is used for certificate validation, used by recommended version. Type: string (or Expression with resultType string).
*
*/
public Optional> hostNameInCertificate() {
return Optional.ofNullable(this.hostNameInCertificate);
}
/**
* Indicate whether User ID and Password are specified in the connection (when false) or whether the current Windows account credentials are used for authentication (when true), used by recommended version. Type: Boolean (or Expression with resultType boolean).
*
*/
@Import(name="integratedSecurity")
private @Nullable Output integratedSecurity;
/**
* @return Indicate whether User ID and Password are specified in the connection (when false) or whether the current Windows account credentials are used for authentication (when true), used by recommended version. Type: Boolean (or Expression with resultType boolean).
*
*/
public Optional> integratedSecurity() {
return Optional.ofNullable(this.integratedSecurity);
}
/**
* The minimum time, in seconds, for the connection to live in the connection pool before being destroyed, used by recommended version. Type: integer (or Expression with resultType integer).
*
*/
@Import(name="loadBalanceTimeout")
private @Nullable Output loadBalanceTimeout;
/**
* @return The minimum time, in seconds, for the connection to live in the connection pool before being destroyed, used by recommended version. Type: integer (or Expression with resultType integer).
*
*/
public Optional> loadBalanceTimeout() {
return Optional.ofNullable(this.loadBalanceTimeout);
}
/**
* The maximum number of connections allowed in the connection pool for this specific connection string, used by recommended version. Type: integer (or Expression with resultType integer).
*
*/
@Import(name="maxPoolSize")
private @Nullable Output maxPoolSize;
/**
* @return The maximum number of connections allowed in the connection pool for this specific connection string, used by recommended version. Type: integer (or Expression with resultType integer).
*
*/
public Optional> maxPoolSize() {
return Optional.ofNullable(this.maxPoolSize);
}
/**
* The minimum number of connections allowed in the connection pool for this specific connection string, used by recommended version. Type: integer (or Expression with resultType integer).
*
*/
@Import(name="minPoolSize")
private @Nullable Output minPoolSize;
/**
* @return The minimum number of connections allowed in the connection pool for this specific connection string, used by recommended version. Type: integer (or Expression with resultType integer).
*
*/
public Optional> minPoolSize() {
return Optional.ofNullable(this.minPoolSize);
}
/**
* If your application is connecting to an AlwaysOn availability group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of and connection to the (currently) active server, used by recommended version. Type: Boolean (or Expression with resultType boolean).
*
*/
@Import(name="multiSubnetFailover")
private @Nullable Output multiSubnetFailover;
/**
* @return If your application is connecting to an AlwaysOn availability group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of and connection to the (currently) active server, used by recommended version. Type: Boolean (or Expression with resultType boolean).
*
*/
public Optional> multiSubnetFailover() {
return Optional.ofNullable(this.multiSubnetFailover);
}
/**
* When true, an application can maintain multiple active result sets (MARS). When false, an application must process or cancel all result sets from one batch before it can execute any other batch on that connection, used by recommended version. Type: Boolean (or Expression with resultType boolean).
*
*/
@Import(name="multipleActiveResultSets")
private @Nullable Output multipleActiveResultSets;
/**
* @return When true, an application can maintain multiple active result sets (MARS). When false, an application must process or cancel all result sets from one batch before it can execute any other batch on that connection, used by recommended version. Type: Boolean (or Expression with resultType boolean).
*
*/
public Optional> multipleActiveResultSets() {
return Optional.ofNullable(this.multipleActiveResultSets);
}
/**
* The size in bytes of the network packets used to communicate with an instance of server, used by recommended version. Type: integer (or Expression with resultType integer).
*
*/
@Import(name="packetSize")
private @Nullable Output packetSize;
/**
* @return The size in bytes of the network packets used to communicate with an instance of server, used by recommended version. Type: integer (or Expression with resultType integer).
*
*/
public Optional> packetSize() {
return Optional.ofNullable(this.packetSize);
}
/**
* Parameters for linked service.
*
*/
@Import(name="parameters")
private @Nullable Output> parameters;
/**
* @return Parameters for linked service.
*
*/
public Optional>> parameters() {
return Optional.ofNullable(this.parameters);
}
/**
* The Azure key vault secret reference of password in connection string.
*
*/
@Import(name="password")
private @Nullable Output password;
/**
* @return The Azure key vault secret reference of password in connection string.
*
*/
public Optional> password() {
return Optional.ofNullable(this.password);
}
/**
* Indicate whether the connection will be pooled or explicitly opened every time that the connection is requested, used by recommended version. Type: Boolean (or Expression with resultType boolean).
*
*/
@Import(name="pooling")
private @Nullable Output pooling;
/**
* @return Indicate whether the connection will be pooled or explicitly opened every time that the connection is requested, used by recommended version. Type: Boolean (or Expression with resultType boolean).
*
*/
public Optional> pooling() {
return Optional.ofNullable(this.pooling);
}
/**
* The name or network address of the instance of SQL Server to which to connect, used by recommended version. Type: string (or Expression with resultType string).
*
*/
@Import(name="server")
private @Nullable Output server;
/**
* @return The name or network address of the instance of SQL Server to which to connect, used by recommended version. Type: string (or Expression with resultType string).
*
*/
public Optional> server() {
return Optional.ofNullable(this.server);
}
/**
* The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.
*
*/
@Import(name="servicePrincipalCredential")
private @Nullable Output> servicePrincipalCredential;
/**
* @return The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.
*
*/
public Optional>> servicePrincipalCredential() {
return Optional.ofNullable(this.servicePrincipalCredential);
}
/**
* The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string).
*
*/
@Import(name="servicePrincipalCredentialType")
private @Nullable Output servicePrincipalCredentialType;
/**
* @return The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string).
*
*/
public Optional> servicePrincipalCredentialType() {
return Optional.ofNullable(this.servicePrincipalCredentialType);
}
/**
* The ID of the service principal used to authenticate against Azure SQL Database. Type: string (or Expression with resultType string).
*
*/
@Import(name="servicePrincipalId")
private @Nullable Output servicePrincipalId;
/**
* @return The ID of the service principal used to authenticate against Azure SQL Database. Type: string (or Expression with resultType string).
*
*/
public Optional> servicePrincipalId() {
return Optional.ofNullable(this.servicePrincipalId);
}
/**
* The key of the service principal used to authenticate against Azure SQL Database.
*
*/
@Import(name="servicePrincipalKey")
private @Nullable Output> servicePrincipalKey;
/**
* @return The key of the service principal used to authenticate against Azure SQL Database.
*
*/
public Optional>> servicePrincipalKey() {
return Optional.ofNullable(this.servicePrincipalKey);
}
/**
* The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string).
*
*/
@Import(name="tenant")
private @Nullable Output tenant;
/**
* @return The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string).
*
*/
public Optional> tenant() {
return Optional.ofNullable(this.tenant);
}
/**
* Indicate whether the channel will be encrypted while bypassing walking the certificate chain to validate trust, used by recommended version. Type: Boolean (or Expression with resultType boolean).
*
*/
@Import(name="trustServerCertificate")
private @Nullable Output trustServerCertificate;
/**
* @return Indicate whether the channel will be encrypted while bypassing walking the certificate chain to validate trust, used by recommended version. Type: Boolean (or Expression with resultType boolean).
*
*/
public Optional> trustServerCertificate() {
return Optional.ofNullable(this.trustServerCertificate);
}
/**
* Type of linked service.
* Expected value is 'AzureSqlDatabase'.
*
*/
@Import(name="type", required=true)
private Output type;
/**
* @return Type of linked service.
* Expected value is 'AzureSqlDatabase'.
*
*/
public Output type() {
return this.type;
}
/**
* The user name to be used when connecting to server. Type: string (or Expression with resultType string).
*
*/
@Import(name="userName")
private @Nullable Output userName;
/**
* @return The user name to be used when connecting to server. Type: string (or Expression with resultType string).
*
*/
public Optional> userName() {
return Optional.ofNullable(this.userName);
}
/**
* Version of the linked service.
*
*/
@Import(name="version")
private @Nullable Output version;
/**
* @return Version of the linked service.
*
*/
public Optional> version() {
return Optional.ofNullable(this.version);
}
private AzureSqlDatabaseLinkedServiceArgs() {}
private AzureSqlDatabaseLinkedServiceArgs(AzureSqlDatabaseLinkedServiceArgs $) {
this.alwaysEncryptedSettings = $.alwaysEncryptedSettings;
this.annotations = $.annotations;
this.applicationIntent = $.applicationIntent;
this.authenticationType = $.authenticationType;
this.azureCloudType = $.azureCloudType;
this.commandTimeout = $.commandTimeout;
this.connectRetryCount = $.connectRetryCount;
this.connectRetryInterval = $.connectRetryInterval;
this.connectTimeout = $.connectTimeout;
this.connectVia = $.connectVia;
this.connectionString = $.connectionString;
this.credential = $.credential;
this.database = $.database;
this.description = $.description;
this.encrypt = $.encrypt;
this.encryptedCredential = $.encryptedCredential;
this.failoverPartner = $.failoverPartner;
this.hostNameInCertificate = $.hostNameInCertificate;
this.integratedSecurity = $.integratedSecurity;
this.loadBalanceTimeout = $.loadBalanceTimeout;
this.maxPoolSize = $.maxPoolSize;
this.minPoolSize = $.minPoolSize;
this.multiSubnetFailover = $.multiSubnetFailover;
this.multipleActiveResultSets = $.multipleActiveResultSets;
this.packetSize = $.packetSize;
this.parameters = $.parameters;
this.password = $.password;
this.pooling = $.pooling;
this.server = $.server;
this.servicePrincipalCredential = $.servicePrincipalCredential;
this.servicePrincipalCredentialType = $.servicePrincipalCredentialType;
this.servicePrincipalId = $.servicePrincipalId;
this.servicePrincipalKey = $.servicePrincipalKey;
this.tenant = $.tenant;
this.trustServerCertificate = $.trustServerCertificate;
this.type = $.type;
this.userName = $.userName;
this.version = $.version;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AzureSqlDatabaseLinkedServiceArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private AzureSqlDatabaseLinkedServiceArgs $;
public Builder() {
$ = new AzureSqlDatabaseLinkedServiceArgs();
}
public Builder(AzureSqlDatabaseLinkedServiceArgs defaults) {
$ = new AzureSqlDatabaseLinkedServiceArgs(Objects.requireNonNull(defaults));
}
/**
* @param alwaysEncryptedSettings Sql always encrypted properties.
*
* @return builder
*
*/
public Builder alwaysEncryptedSettings(@Nullable Output alwaysEncryptedSettings) {
$.alwaysEncryptedSettings = alwaysEncryptedSettings;
return this;
}
/**
* @param alwaysEncryptedSettings Sql always encrypted properties.
*
* @return builder
*
*/
public Builder alwaysEncryptedSettings(SqlAlwaysEncryptedPropertiesArgs alwaysEncryptedSettings) {
return alwaysEncryptedSettings(Output.of(alwaysEncryptedSettings));
}
/**
* @param annotations List of tags that can be used for describing the linked service.
*
* @return builder
*
*/
public Builder annotations(@Nullable Output> annotations) {
$.annotations = annotations;
return this;
}
/**
* @param annotations List of tags that can be used for describing the linked service.
*
* @return builder
*
*/
public Builder annotations(List annotations) {
return annotations(Output.of(annotations));
}
/**
* @param annotations List of tags that can be used for describing the linked service.
*
* @return builder
*
*/
public Builder annotations(Object... annotations) {
return annotations(List.of(annotations));
}
/**
* @param applicationIntent The application workload type when connecting to a server, used by recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder applicationIntent(@Nullable Output applicationIntent) {
$.applicationIntent = applicationIntent;
return this;
}
/**
* @param applicationIntent The application workload type when connecting to a server, used by recommended version. Possible values are ReadOnly and ReadWrite. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder applicationIntent(Object applicationIntent) {
return applicationIntent(Output.of(applicationIntent));
}
/**
* @param authenticationType The type used for authentication. Type: string.
*
* @return builder
*
*/
public Builder authenticationType(@Nullable Output> authenticationType) {
$.authenticationType = authenticationType;
return this;
}
/**
* @param authenticationType The type used for authentication. Type: string.
*
* @return builder
*
*/
public Builder authenticationType(Either authenticationType) {
return authenticationType(Output.of(authenticationType));
}
/**
* @param authenticationType The type used for authentication. Type: string.
*
* @return builder
*
*/
public Builder authenticationType(String authenticationType) {
return authenticationType(Either.ofLeft(authenticationType));
}
/**
* @param authenticationType The type used for authentication. Type: string.
*
* @return builder
*
*/
public Builder authenticationType(AzureSqlDatabaseAuthenticationType authenticationType) {
return authenticationType(Either.ofRight(authenticationType));
}
/**
* @param azureCloudType Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder azureCloudType(@Nullable Output azureCloudType) {
$.azureCloudType = azureCloudType;
return this;
}
/**
* @param azureCloudType Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder azureCloudType(Object azureCloudType) {
return azureCloudType(Output.of(azureCloudType));
}
/**
* @param commandTimeout The default wait time (in seconds) before terminating the attempt to execute a command and generating an error, used by recommended version. Type: integer (or Expression with resultType integer).
*
* @return builder
*
*/
public Builder commandTimeout(@Nullable Output commandTimeout) {
$.commandTimeout = commandTimeout;
return this;
}
/**
* @param commandTimeout The default wait time (in seconds) before terminating the attempt to execute a command and generating an error, used by recommended version. Type: integer (or Expression with resultType integer).
*
* @return builder
*
*/
public Builder commandTimeout(Object commandTimeout) {
return commandTimeout(Output.of(commandTimeout));
}
/**
* @param connectRetryCount The number of re-connections attempted after identifying that there was an idle connection failure, used by recommended version. This must be an integer between 0 and 255. Type: integer (or Expression with resultType integer).
*
* @return builder
*
*/
public Builder connectRetryCount(@Nullable Output connectRetryCount) {
$.connectRetryCount = connectRetryCount;
return this;
}
/**
* @param connectRetryCount The number of re-connections attempted after identifying that there was an idle connection failure, used by recommended version. This must be an integer between 0 and 255. Type: integer (or Expression with resultType integer).
*
* @return builder
*
*/
public Builder connectRetryCount(Object connectRetryCount) {
return connectRetryCount(Output.of(connectRetryCount));
}
/**
* @param connectRetryInterval The amount of time (in seconds) between each re-connection attempt after identifying that there was an idle connection failure, used by recommended version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType integer).
*
* @return builder
*
*/
public Builder connectRetryInterval(@Nullable Output connectRetryInterval) {
$.connectRetryInterval = connectRetryInterval;
return this;
}
/**
* @param connectRetryInterval The amount of time (in seconds) between each re-connection attempt after identifying that there was an idle connection failure, used by recommended version. This must be an integer between 1 and 60. Type: integer (or Expression with resultType integer).
*
* @return builder
*
*/
public Builder connectRetryInterval(Object connectRetryInterval) {
return connectRetryInterval(Output.of(connectRetryInterval));
}
/**
* @param connectTimeout The length of time (in seconds) to wait for a connection to the server before terminating the attempt and generating an error, used by recommended version. Type: integer (or Expression with resultType integer).
*
* @return builder
*
*/
public Builder connectTimeout(@Nullable Output connectTimeout) {
$.connectTimeout = connectTimeout;
return this;
}
/**
* @param connectTimeout The length of time (in seconds) to wait for a connection to the server before terminating the attempt and generating an error, used by recommended version. Type: integer (or Expression with resultType integer).
*
* @return builder
*
*/
public Builder connectTimeout(Object connectTimeout) {
return connectTimeout(Output.of(connectTimeout));
}
/**
* @param connectVia The integration runtime reference.
*
* @return builder
*
*/
public Builder connectVia(@Nullable Output connectVia) {
$.connectVia = connectVia;
return this;
}
/**
* @param connectVia The integration runtime reference.
*
* @return builder
*
*/
public Builder connectVia(IntegrationRuntimeReferenceArgs connectVia) {
return connectVia(Output.of(connectVia));
}
/**
* @param connectionString The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.
*
* @return builder
*
*/
public Builder connectionString(@Nullable Output connectionString) {
$.connectionString = connectionString;
return this;
}
/**
* @param connectionString The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.
*
* @return builder
*
*/
public Builder connectionString(Object connectionString) {
return connectionString(Output.of(connectionString));
}
/**
* @param credential The credential reference containing authentication information.
*
* @return builder
*
*/
public Builder credential(@Nullable Output credential) {
$.credential = credential;
return this;
}
/**
* @param credential The credential reference containing authentication information.
*
* @return builder
*
*/
public Builder credential(CredentialReferenceArgs credential) {
return credential(Output.of(credential));
}
/**
* @param database The name of the database, used by recommended version. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder database(@Nullable Output database) {
$.database = database;
return this;
}
/**
* @param database The name of the database, used by recommended version. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder database(Object database) {
return database(Output.of(database));
}
/**
* @param description Linked service description.
*
* @return builder
*
*/
public Builder description(@Nullable Output description) {
$.description = description;
return this;
}
/**
* @param description Linked service description.
*
* @return builder
*
*/
public Builder description(String description) {
return description(Output.of(description));
}
/**
* @param encrypt Indicate whether TLS encryption is required for all data sent between the client and server, used by recommended version. Possible values are true/yes/mandatory, false/no/optional and strict. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder encrypt(@Nullable Output encrypt) {
$.encrypt = encrypt;
return this;
}
/**
* @param encrypt Indicate whether TLS encryption is required for all data sent between the client and server, used by recommended version. Possible values are true/yes/mandatory, false/no/optional and strict. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder encrypt(Object encrypt) {
return encrypt(Output.of(encrypt));
}
/**
* @param encryptedCredential The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.
*
* @return builder
*
*/
public Builder encryptedCredential(@Nullable Output encryptedCredential) {
$.encryptedCredential = encryptedCredential;
return this;
}
/**
* @param encryptedCredential The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.
*
* @return builder
*
*/
public Builder encryptedCredential(String encryptedCredential) {
return encryptedCredential(Output.of(encryptedCredential));
}
/**
* @param failoverPartner The name or address of the partner server to connect to if the primary server is down, used by recommended version. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder failoverPartner(@Nullable Output failoverPartner) {
$.failoverPartner = failoverPartner;
return this;
}
/**
* @param failoverPartner The name or address of the partner server to connect to if the primary server is down, used by recommended version. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder failoverPartner(Object failoverPartner) {
return failoverPartner(Output.of(failoverPartner));
}
/**
* @param hostNameInCertificate The host name to use when validating the server certificate for the connection. When not specified, the server name from the Data Source is used for certificate validation, used by recommended version. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder hostNameInCertificate(@Nullable Output hostNameInCertificate) {
$.hostNameInCertificate = hostNameInCertificate;
return this;
}
/**
* @param hostNameInCertificate The host name to use when validating the server certificate for the connection. When not specified, the server name from the Data Source is used for certificate validation, used by recommended version. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder hostNameInCertificate(Object hostNameInCertificate) {
return hostNameInCertificate(Output.of(hostNameInCertificate));
}
/**
* @param integratedSecurity Indicate whether User ID and Password are specified in the connection (when false) or whether the current Windows account credentials are used for authentication (when true), used by recommended version. Type: Boolean (or Expression with resultType boolean).
*
* @return builder
*
*/
public Builder integratedSecurity(@Nullable Output integratedSecurity) {
$.integratedSecurity = integratedSecurity;
return this;
}
/**
* @param integratedSecurity Indicate whether User ID and Password are specified in the connection (when false) or whether the current Windows account credentials are used for authentication (when true), used by recommended version. Type: Boolean (or Expression with resultType boolean).
*
* @return builder
*
*/
public Builder integratedSecurity(Object integratedSecurity) {
return integratedSecurity(Output.of(integratedSecurity));
}
/**
* @param loadBalanceTimeout The minimum time, in seconds, for the connection to live in the connection pool before being destroyed, used by recommended version. Type: integer (or Expression with resultType integer).
*
* @return builder
*
*/
public Builder loadBalanceTimeout(@Nullable Output loadBalanceTimeout) {
$.loadBalanceTimeout = loadBalanceTimeout;
return this;
}
/**
* @param loadBalanceTimeout The minimum time, in seconds, for the connection to live in the connection pool before being destroyed, used by recommended version. Type: integer (or Expression with resultType integer).
*
* @return builder
*
*/
public Builder loadBalanceTimeout(Object loadBalanceTimeout) {
return loadBalanceTimeout(Output.of(loadBalanceTimeout));
}
/**
* @param maxPoolSize The maximum number of connections allowed in the connection pool for this specific connection string, used by recommended version. Type: integer (or Expression with resultType integer).
*
* @return builder
*
*/
public Builder maxPoolSize(@Nullable Output maxPoolSize) {
$.maxPoolSize = maxPoolSize;
return this;
}
/**
* @param maxPoolSize The maximum number of connections allowed in the connection pool for this specific connection string, used by recommended version. Type: integer (or Expression with resultType integer).
*
* @return builder
*
*/
public Builder maxPoolSize(Object maxPoolSize) {
return maxPoolSize(Output.of(maxPoolSize));
}
/**
* @param minPoolSize The minimum number of connections allowed in the connection pool for this specific connection string, used by recommended version. Type: integer (or Expression with resultType integer).
*
* @return builder
*
*/
public Builder minPoolSize(@Nullable Output minPoolSize) {
$.minPoolSize = minPoolSize;
return this;
}
/**
* @param minPoolSize The minimum number of connections allowed in the connection pool for this specific connection string, used by recommended version. Type: integer (or Expression with resultType integer).
*
* @return builder
*
*/
public Builder minPoolSize(Object minPoolSize) {
return minPoolSize(Output.of(minPoolSize));
}
/**
* @param multiSubnetFailover If your application is connecting to an AlwaysOn availability group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of and connection to the (currently) active server, used by recommended version. Type: Boolean (or Expression with resultType boolean).
*
* @return builder
*
*/
public Builder multiSubnetFailover(@Nullable Output multiSubnetFailover) {
$.multiSubnetFailover = multiSubnetFailover;
return this;
}
/**
* @param multiSubnetFailover If your application is connecting to an AlwaysOn availability group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of and connection to the (currently) active server, used by recommended version. Type: Boolean (or Expression with resultType boolean).
*
* @return builder
*
*/
public Builder multiSubnetFailover(Object multiSubnetFailover) {
return multiSubnetFailover(Output.of(multiSubnetFailover));
}
/**
* @param multipleActiveResultSets When true, an application can maintain multiple active result sets (MARS). When false, an application must process or cancel all result sets from one batch before it can execute any other batch on that connection, used by recommended version. Type: Boolean (or Expression with resultType boolean).
*
* @return builder
*
*/
public Builder multipleActiveResultSets(@Nullable Output multipleActiveResultSets) {
$.multipleActiveResultSets = multipleActiveResultSets;
return this;
}
/**
* @param multipleActiveResultSets When true, an application can maintain multiple active result sets (MARS). When false, an application must process or cancel all result sets from one batch before it can execute any other batch on that connection, used by recommended version. Type: Boolean (or Expression with resultType boolean).
*
* @return builder
*
*/
public Builder multipleActiveResultSets(Object multipleActiveResultSets) {
return multipleActiveResultSets(Output.of(multipleActiveResultSets));
}
/**
* @param packetSize The size in bytes of the network packets used to communicate with an instance of server, used by recommended version. Type: integer (or Expression with resultType integer).
*
* @return builder
*
*/
public Builder packetSize(@Nullable Output packetSize) {
$.packetSize = packetSize;
return this;
}
/**
* @param packetSize The size in bytes of the network packets used to communicate with an instance of server, used by recommended version. Type: integer (or Expression with resultType integer).
*
* @return builder
*
*/
public Builder packetSize(Object packetSize) {
return packetSize(Output.of(packetSize));
}
/**
* @param parameters Parameters for linked service.
*
* @return builder
*
*/
public Builder parameters(@Nullable Output> parameters) {
$.parameters = parameters;
return this;
}
/**
* @param parameters Parameters for linked service.
*
* @return builder
*
*/
public Builder parameters(Map parameters) {
return parameters(Output.of(parameters));
}
/**
* @param password The Azure key vault secret reference of password in connection string.
*
* @return builder
*
*/
public Builder password(@Nullable Output password) {
$.password = password;
return this;
}
/**
* @param password The Azure key vault secret reference of password in connection string.
*
* @return builder
*
*/
public Builder password(AzureKeyVaultSecretReferenceArgs password) {
return password(Output.of(password));
}
/**
* @param pooling Indicate whether the connection will be pooled or explicitly opened every time that the connection is requested, used by recommended version. Type: Boolean (or Expression with resultType boolean).
*
* @return builder
*
*/
public Builder pooling(@Nullable Output pooling) {
$.pooling = pooling;
return this;
}
/**
* @param pooling Indicate whether the connection will be pooled or explicitly opened every time that the connection is requested, used by recommended version. Type: Boolean (or Expression with resultType boolean).
*
* @return builder
*
*/
public Builder pooling(Object pooling) {
return pooling(Output.of(pooling));
}
/**
* @param server The name or network address of the instance of SQL Server to which to connect, used by recommended version. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder server(@Nullable Output server) {
$.server = server;
return this;
}
/**
* @param server The name or network address of the instance of SQL Server to which to connect, used by recommended version. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder server(Object server) {
return server(Output.of(server));
}
/**
* @param servicePrincipalCredential The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.
*
* @return builder
*
*/
public Builder servicePrincipalCredential(@Nullable Output> servicePrincipalCredential) {
$.servicePrincipalCredential = servicePrincipalCredential;
return this;
}
/**
* @param servicePrincipalCredential The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.
*
* @return builder
*
*/
public Builder servicePrincipalCredential(Either servicePrincipalCredential) {
return servicePrincipalCredential(Output.of(servicePrincipalCredential));
}
/**
* @param servicePrincipalCredential The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.
*
* @return builder
*
*/
public Builder servicePrincipalCredential(AzureKeyVaultSecretReferenceArgs servicePrincipalCredential) {
return servicePrincipalCredential(Either.ofLeft(servicePrincipalCredential));
}
/**
* @param servicePrincipalCredential The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.
*
* @return builder
*
*/
public Builder servicePrincipalCredential(SecureStringArgs servicePrincipalCredential) {
return servicePrincipalCredential(Either.ofRight(servicePrincipalCredential));
}
/**
* @param servicePrincipalCredentialType The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder servicePrincipalCredentialType(@Nullable Output servicePrincipalCredentialType) {
$.servicePrincipalCredentialType = servicePrincipalCredentialType;
return this;
}
/**
* @param servicePrincipalCredentialType The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder servicePrincipalCredentialType(Object servicePrincipalCredentialType) {
return servicePrincipalCredentialType(Output.of(servicePrincipalCredentialType));
}
/**
* @param servicePrincipalId The ID of the service principal used to authenticate against Azure SQL Database. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder servicePrincipalId(@Nullable Output servicePrincipalId) {
$.servicePrincipalId = servicePrincipalId;
return this;
}
/**
* @param servicePrincipalId The ID of the service principal used to authenticate against Azure SQL Database. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder servicePrincipalId(Object servicePrincipalId) {
return servicePrincipalId(Output.of(servicePrincipalId));
}
/**
* @param servicePrincipalKey The key of the service principal used to authenticate against Azure SQL Database.
*
* @return builder
*
*/
public Builder servicePrincipalKey(@Nullable Output> servicePrincipalKey) {
$.servicePrincipalKey = servicePrincipalKey;
return this;
}
/**
* @param servicePrincipalKey The key of the service principal used to authenticate against Azure SQL Database.
*
* @return builder
*
*/
public Builder servicePrincipalKey(Either servicePrincipalKey) {
return servicePrincipalKey(Output.of(servicePrincipalKey));
}
/**
* @param servicePrincipalKey The key of the service principal used to authenticate against Azure SQL Database.
*
* @return builder
*
*/
public Builder servicePrincipalKey(AzureKeyVaultSecretReferenceArgs servicePrincipalKey) {
return servicePrincipalKey(Either.ofLeft(servicePrincipalKey));
}
/**
* @param servicePrincipalKey The key of the service principal used to authenticate against Azure SQL Database.
*
* @return builder
*
*/
public Builder servicePrincipalKey(SecureStringArgs servicePrincipalKey) {
return servicePrincipalKey(Either.ofRight(servicePrincipalKey));
}
/**
* @param tenant The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder tenant(@Nullable Output tenant) {
$.tenant = tenant;
return this;
}
/**
* @param tenant The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder tenant(Object tenant) {
return tenant(Output.of(tenant));
}
/**
* @param trustServerCertificate Indicate whether the channel will be encrypted while bypassing walking the certificate chain to validate trust, used by recommended version. Type: Boolean (or Expression with resultType boolean).
*
* @return builder
*
*/
public Builder trustServerCertificate(@Nullable Output trustServerCertificate) {
$.trustServerCertificate = trustServerCertificate;
return this;
}
/**
* @param trustServerCertificate Indicate whether the channel will be encrypted while bypassing walking the certificate chain to validate trust, used by recommended version. Type: Boolean (or Expression with resultType boolean).
*
* @return builder
*
*/
public Builder trustServerCertificate(Object trustServerCertificate) {
return trustServerCertificate(Output.of(trustServerCertificate));
}
/**
* @param type Type of linked service.
* Expected value is 'AzureSqlDatabase'.
*
* @return builder
*
*/
public Builder type(Output type) {
$.type = type;
return this;
}
/**
* @param type Type of linked service.
* Expected value is 'AzureSqlDatabase'.
*
* @return builder
*
*/
public Builder type(String type) {
return type(Output.of(type));
}
/**
* @param userName The user name to be used when connecting to server. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder userName(@Nullable Output userName) {
$.userName = userName;
return this;
}
/**
* @param userName The user name to be used when connecting to server. Type: string (or Expression with resultType string).
*
* @return builder
*
*/
public Builder userName(Object userName) {
return userName(Output.of(userName));
}
/**
* @param version Version of the linked service.
*
* @return builder
*
*/
public Builder version(@Nullable Output version) {
$.version = version;
return this;
}
/**
* @param version Version of the linked service.
*
* @return builder
*
*/
public Builder version(String version) {
return version(Output.of(version));
}
public AzureSqlDatabaseLinkedServiceArgs build() {
$.type = Codegen.stringProp("type").output().arg($.type).require();
return $;
}
}
}