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

com.pulumi.azurenative.sqlvirtualmachine.kotlin.inputs.SqlConnectivityUpdateSettingsArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.sqlvirtualmachine.kotlin.inputs

import com.pulumi.azurenative.sqlvirtualmachine.inputs.SqlConnectivityUpdateSettingsArgs.builder
import com.pulumi.azurenative.sqlvirtualmachine.kotlin.enums.ConnectivityType
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Set the access level and network port settings for SQL Server.
 * @property connectivityType SQL Server connectivity option.
 * @property port SQL Server port.
 * @property sqlAuthUpdatePassword SQL Server sysadmin login password.
 * @property sqlAuthUpdateUserName SQL Server sysadmin login to create.
 */
public data class SqlConnectivityUpdateSettingsArgs(
    public val connectivityType: Output>? = null,
    public val port: Output? = null,
    public val sqlAuthUpdatePassword: Output? = null,
    public val sqlAuthUpdateUserName: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.sqlvirtualmachine.inputs.SqlConnectivityUpdateSettingsArgs =
        com.pulumi.azurenative.sqlvirtualmachine.inputs.SqlConnectivityUpdateSettingsArgs.builder()
            .connectivityType(
                connectivityType?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .port(port?.applyValue({ args0 -> args0 }))
            .sqlAuthUpdatePassword(sqlAuthUpdatePassword?.applyValue({ args0 -> args0 }))
            .sqlAuthUpdateUserName(sqlAuthUpdateUserName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SqlConnectivityUpdateSettingsArgs].
 */
@PulumiTagMarker
public class SqlConnectivityUpdateSettingsArgsBuilder internal constructor() {
    private var connectivityType: Output>? = null

    private var port: Output? = null

    private var sqlAuthUpdatePassword: Output? = null

    private var sqlAuthUpdateUserName: Output? = null

    /**
     * @param value SQL Server connectivity option.
     */
    @JvmName("wrnitgqqowrycxmf")
    public suspend fun connectivityType(`value`: Output>) {
        this.connectivityType = value
    }

    /**
     * @param value SQL Server port.
     */
    @JvmName("lmhqnuomnvkwrlut")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value SQL Server sysadmin login password.
     */
    @JvmName("qpbarsgqgsfkwcbj")
    public suspend fun sqlAuthUpdatePassword(`value`: Output) {
        this.sqlAuthUpdatePassword = value
    }

    /**
     * @param value SQL Server sysadmin login to create.
     */
    @JvmName("kakxutaitkfvyqaa")
    public suspend fun sqlAuthUpdateUserName(`value`: Output) {
        this.sqlAuthUpdateUserName = value
    }

    /**
     * @param value SQL Server connectivity option.
     */
    @JvmName("ftdwspsvjdwqjgdp")
    public suspend fun connectivityType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectivityType = mapped
    }

    /**
     * @param value SQL Server connectivity option.
     */
    @JvmName("jrtqyrltthsshays")
    public fun connectivityType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.connectivityType = mapped
    }

    /**
     * @param value SQL Server connectivity option.
     */
    @JvmName("dhjydimoauldxirj")
    public fun connectivityType(`value`: ConnectivityType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.connectivityType = mapped
    }

    /**
     * @param value SQL Server port.
     */
    @JvmName("vspwtnjqoidnteaa")
    public suspend fun port(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.port = mapped
    }

    /**
     * @param value SQL Server sysadmin login password.
     */
    @JvmName("sdyqniqmbngjnnqb")
    public suspend fun sqlAuthUpdatePassword(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sqlAuthUpdatePassword = mapped
    }

    /**
     * @param value SQL Server sysadmin login to create.
     */
    @JvmName("dhqvpkqbrbnhyqht")
    public suspend fun sqlAuthUpdateUserName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sqlAuthUpdateUserName = mapped
    }

    internal fun build(): SqlConnectivityUpdateSettingsArgs = SqlConnectivityUpdateSettingsArgs(
        connectivityType = connectivityType,
        port = port,
        sqlAuthUpdatePassword = sqlAuthUpdatePassword,
        sqlAuthUpdateUserName = sqlAuthUpdateUserName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy