All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.datamigration.kotlin.inputs.SqlConnectionInformationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.datamigration.kotlin.inputs

import com.pulumi.azurenative.datamigration.inputs.SqlConnectionInformationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Source SQL Connection
 * @property authentication Authentication type.
 * @property dataSource Data source.
 * @property encryptConnection Whether to encrypt connection or not.
 * @property password Password to connect to source SQL.
 * @property trustServerCertificate Whether to trust server certificate or not.
 * @property userName User name to connect to source SQL.
 */
public data class SqlConnectionInformationArgs(
    public val authentication: Output? = null,
    public val dataSource: Output? = null,
    public val encryptConnection: Output? = null,
    public val password: Output? = null,
    public val trustServerCertificate: Output? = null,
    public val userName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datamigration.inputs.SqlConnectionInformationArgs =
        com.pulumi.azurenative.datamigration.inputs.SqlConnectionInformationArgs.builder()
            .authentication(authentication?.applyValue({ args0 -> args0 }))
            .dataSource(dataSource?.applyValue({ args0 -> args0 }))
            .encryptConnection(encryptConnection?.applyValue({ args0 -> args0 }))
            .password(password?.applyValue({ args0 -> args0 }))
            .trustServerCertificate(trustServerCertificate?.applyValue({ args0 -> args0 }))
            .userName(userName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SqlConnectionInformationArgs].
 */
@PulumiTagMarker
public class SqlConnectionInformationArgsBuilder internal constructor() {
    private var authentication: Output? = null

    private var dataSource: Output? = null

    private var encryptConnection: Output? = null

    private var password: Output? = null

    private var trustServerCertificate: Output? = null

    private var userName: Output? = null

    /**
     * @param value Authentication type.
     */
    @JvmName("oaajtwtcuqqyrcht")
    public suspend fun authentication(`value`: Output) {
        this.authentication = value
    }

    /**
     * @param value Data source.
     */
    @JvmName("bkmjrhwysgrutbdr")
    public suspend fun dataSource(`value`: Output) {
        this.dataSource = value
    }

    /**
     * @param value Whether to encrypt connection or not.
     */
    @JvmName("nabmuilbwmaoshcp")
    public suspend fun encryptConnection(`value`: Output) {
        this.encryptConnection = value
    }

    /**
     * @param value Password to connect to source SQL.
     */
    @JvmName("yvfgxdutbyldremv")
    public suspend fun password(`value`: Output) {
        this.password = value
    }

    /**
     * @param value Whether to trust server certificate or not.
     */
    @JvmName("obvputndqggnqsqd")
    public suspend fun trustServerCertificate(`value`: Output) {
        this.trustServerCertificate = value
    }

    /**
     * @param value User name to connect to source SQL.
     */
    @JvmName("nkutmneiasxpjcqg")
    public suspend fun userName(`value`: Output) {
        this.userName = value
    }

    /**
     * @param value Authentication type.
     */
    @JvmName("jdyibquxmbuuvgia")
    public suspend fun authentication(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authentication = mapped
    }

    /**
     * @param value Data source.
     */
    @JvmName("yhhbtavrcgrjaumd")
    public suspend fun dataSource(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataSource = mapped
    }

    /**
     * @param value Whether to encrypt connection or not.
     */
    @JvmName("abbomqwcngldqivl")
    public suspend fun encryptConnection(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryptConnection = mapped
    }

    /**
     * @param value Password to connect to source SQL.
     */
    @JvmName("vivikohvrbsywryf")
    public suspend fun password(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.password = mapped
    }

    /**
     * @param value Whether to trust server certificate or not.
     */
    @JvmName("vwgdgqhhxocwwesx")
    public suspend fun trustServerCertificate(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trustServerCertificate = mapped
    }

    /**
     * @param value User name to connect to source SQL.
     */
    @JvmName("xipoyeshjduvodwy")
    public suspend fun userName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userName = mapped
    }

    internal fun build(): SqlConnectionInformationArgs = SqlConnectionInformationArgs(
        authentication = authentication,
        dataSource = dataSource,
        encryptConnection = encryptConnection,
        password = password,
        trustServerCertificate = trustServerCertificate,
        userName = userName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy