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

com.pulumi.azurenative.workloads.kotlin.inputs.MsSqlServerProviderInstancePropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.workloads.kotlin.inputs

import com.pulumi.azurenative.workloads.inputs.MsSqlServerProviderInstancePropertiesArgs.builder
import com.pulumi.azurenative.workloads.kotlin.enums.SslPreference
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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Gets or sets the SQL server provider properties.
 * @property dbPassword Gets or sets the database password.
 * @property dbPasswordUri Gets or sets the key vault URI to secret with the database password.
 * @property dbPort Gets or sets the database sql port.
 * @property dbUsername Gets or sets the database user name.
 * @property hostname Gets or sets the SQL server host name.
 * @property providerType The provider type. For example, the value can be SapHana.
 * Expected value is 'MsSqlServer'.
 * @property sapSid Gets or sets the SAP System Identifier
 * @property sslCertificateUri Gets or sets the blob URI to SSL certificate for the SQL Database.
 * @property sslPreference Gets or sets certificate preference if secure communication is enabled.
 */
public data class MsSqlServerProviderInstancePropertiesArgs(
    public val dbPassword: Output? = null,
    public val dbPasswordUri: Output? = null,
    public val dbPort: Output? = null,
    public val dbUsername: Output? = null,
    public val hostname: Output? = null,
    public val providerType: Output,
    public val sapSid: Output? = null,
    public val sslCertificateUri: Output? = null,
    public val sslPreference: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.workloads.inputs.MsSqlServerProviderInstancePropertiesArgs =
        com.pulumi.azurenative.workloads.inputs.MsSqlServerProviderInstancePropertiesArgs.builder()
            .dbPassword(dbPassword?.applyValue({ args0 -> args0 }))
            .dbPasswordUri(dbPasswordUri?.applyValue({ args0 -> args0 }))
            .dbPort(dbPort?.applyValue({ args0 -> args0 }))
            .dbUsername(dbUsername?.applyValue({ args0 -> args0 }))
            .hostname(hostname?.applyValue({ args0 -> args0 }))
            .providerType(providerType.applyValue({ args0 -> args0 }))
            .sapSid(sapSid?.applyValue({ args0 -> args0 }))
            .sslCertificateUri(sslCertificateUri?.applyValue({ args0 -> args0 }))
            .sslPreference(
                sslPreference?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [MsSqlServerProviderInstancePropertiesArgs].
 */
@PulumiTagMarker
public class MsSqlServerProviderInstancePropertiesArgsBuilder internal constructor() {
    private var dbPassword: Output? = null

    private var dbPasswordUri: Output? = null

    private var dbPort: Output? = null

    private var dbUsername: Output? = null

    private var hostname: Output? = null

    private var providerType: Output? = null

    private var sapSid: Output? = null

    private var sslCertificateUri: Output? = null

    private var sslPreference: Output>? = null

    /**
     * @param value Gets or sets the database password.
     */
    @JvmName("abeqwfgmanfhjons")
    public suspend fun dbPassword(`value`: Output) {
        this.dbPassword = value
    }

    /**
     * @param value Gets or sets the key vault URI to secret with the database password.
     */
    @JvmName("pdjndopcjrtshqfe")
    public suspend fun dbPasswordUri(`value`: Output) {
        this.dbPasswordUri = value
    }

    /**
     * @param value Gets or sets the database sql port.
     */
    @JvmName("dbbaoxhuqepbbtpr")
    public suspend fun dbPort(`value`: Output) {
        this.dbPort = value
    }

    /**
     * @param value Gets or sets the database user name.
     */
    @JvmName("tenbnfdrmeuseetq")
    public suspend fun dbUsername(`value`: Output) {
        this.dbUsername = value
    }

    /**
     * @param value Gets or sets the SQL server host name.
     */
    @JvmName("todlevhrjiarmpmv")
    public suspend fun hostname(`value`: Output) {
        this.hostname = value
    }

    /**
     * @param value The provider type. For example, the value can be SapHana.
     * Expected value is 'MsSqlServer'.
     */
    @JvmName("mibkqvavynufwoam")
    public suspend fun providerType(`value`: Output) {
        this.providerType = value
    }

    /**
     * @param value Gets or sets the SAP System Identifier
     */
    @JvmName("lncauiqupkctxxrc")
    public suspend fun sapSid(`value`: Output) {
        this.sapSid = value
    }

    /**
     * @param value Gets or sets the blob URI to SSL certificate for the SQL Database.
     */
    @JvmName("qvcppqblnihelpoe")
    public suspend fun sslCertificateUri(`value`: Output) {
        this.sslCertificateUri = value
    }

    /**
     * @param value Gets or sets certificate preference if secure communication is enabled.
     */
    @JvmName("asaegdslvumqeahl")
    public suspend fun sslPreference(`value`: Output>) {
        this.sslPreference = value
    }

    /**
     * @param value Gets or sets the database password.
     */
    @JvmName("sjpnnyvpriuxkvie")
    public suspend fun dbPassword(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dbPassword = mapped
    }

    /**
     * @param value Gets or sets the key vault URI to secret with the database password.
     */
    @JvmName("xsmwwqyiytadlsye")
    public suspend fun dbPasswordUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dbPasswordUri = mapped
    }

    /**
     * @param value Gets or sets the database sql port.
     */
    @JvmName("axucqfdcanoeamrd")
    public suspend fun dbPort(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dbPort = mapped
    }

    /**
     * @param value Gets or sets the database user name.
     */
    @JvmName("tbmayibmvtptnvru")
    public suspend fun dbUsername(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dbUsername = mapped
    }

    /**
     * @param value Gets or sets the SQL server host name.
     */
    @JvmName("equrcjviyctikrap")
    public suspend fun hostname(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hostname = mapped
    }

    /**
     * @param value The provider type. For example, the value can be SapHana.
     * Expected value is 'MsSqlServer'.
     */
    @JvmName("rhsilevoxmrlhmto")
    public suspend fun providerType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.providerType = mapped
    }

    /**
     * @param value Gets or sets the SAP System Identifier
     */
    @JvmName("sfejveyvuuybproq")
    public suspend fun sapSid(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sapSid = mapped
    }

    /**
     * @param value Gets or sets the blob URI to SSL certificate for the SQL Database.
     */
    @JvmName("rcjidskelofyteqs")
    public suspend fun sslCertificateUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sslCertificateUri = mapped
    }

    /**
     * @param value Gets or sets certificate preference if secure communication is enabled.
     */
    @JvmName("cfqydsanqfivqlfx")
    public suspend fun sslPreference(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sslPreference = mapped
    }

    /**
     * @param value Gets or sets certificate preference if secure communication is enabled.
     */
    @JvmName("jxwffbisocpnhgrk")
    public fun sslPreference(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sslPreference = mapped
    }

    /**
     * @param value Gets or sets certificate preference if secure communication is enabled.
     */
    @JvmName("qijatalxqppqkwbq")
    public fun sslPreference(`value`: SslPreference) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sslPreference = mapped
    }

    internal fun build(): MsSqlServerProviderInstancePropertiesArgs =
        MsSqlServerProviderInstancePropertiesArgs(
            dbPassword = dbPassword,
            dbPasswordUri = dbPasswordUri,
            dbPort = dbPort,
            dbUsername = dbUsername,
            hostname = hostname,
            providerType = providerType ?: throw PulumiNullFieldException("providerType"),
            sapSid = sapSid,
            sslCertificateUri = sslCertificateUri,
            sslPreference = sslPreference,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy