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

com.pulumi.azurenative.synapse.kotlin.inputs.CmdkeySetupArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.synapse.kotlin.inputs

import com.pulumi.azurenative.synapse.inputs.CmdkeySetupArgs.builder
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 com.pulumi.kotlin.applySuspend
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The custom setup of running cmdkey commands.
 * @property password The password of data source access.
 * @property targetName The server name of data source access.
 * @property type The type of custom setup.
 * Expected value is 'CmdkeySetup'.
 * @property userName The user name of data source access.
 */
public data class CmdkeySetupArgs(
    public val password: Output,
    public val targetName: Output,
    public val type: Output,
    public val userName: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.synapse.inputs.CmdkeySetupArgs =
        com.pulumi.azurenative.synapse.inputs.CmdkeySetupArgs.builder()
            .password(password.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .targetName(targetName.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 }))
            .userName(userName.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CmdkeySetupArgs].
 */
@PulumiTagMarker
public class CmdkeySetupArgsBuilder internal constructor() {
    private var password: Output? = null

    private var targetName: Output? = null

    private var type: Output? = null

    private var userName: Output? = null

    /**
     * @param value The password of data source access.
     */
    @JvmName("tsdrmgvwnphdttht")
    public suspend fun password(`value`: Output) {
        this.password = value
    }

    /**
     * @param value The server name of data source access.
     */
    @JvmName("ooviilvadltevnpj")
    public suspend fun targetName(`value`: Output) {
        this.targetName = value
    }

    /**
     * @param value The type of custom setup.
     * Expected value is 'CmdkeySetup'.
     */
    @JvmName("dnxxjvjscyblicpu")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The user name of data source access.
     */
    @JvmName("ckjrmpovowskcftl")
    public suspend fun userName(`value`: Output) {
        this.userName = value
    }

    /**
     * @param value The password of data source access.
     */
    @JvmName("ykptxwuxgolxslsy")
    public suspend fun password(`value`: SecureStringArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.password = mapped
    }

    /**
     * @param argument The password of data source access.
     */
    @JvmName("smggwlwjoykhmgbt")
    public suspend fun password(argument: suspend SecureStringArgsBuilder.() -> Unit) {
        val toBeMapped = SecureStringArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.password = mapped
    }

    /**
     * @param value The server name of data source access.
     */
    @JvmName("bsrmyahybbfxcgva")
    public suspend fun targetName(`value`: Any) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetName = mapped
    }

    /**
     * @param value The type of custom setup.
     * Expected value is 'CmdkeySetup'.
     */
    @JvmName("amumdwcssqwwokmo")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value The user name of data source access.
     */
    @JvmName("seqakgibmcgkosoc")
    public suspend fun userName(`value`: Any) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.userName = mapped
    }

    internal fun build(): CmdkeySetupArgs = CmdkeySetupArgs(
        password = password ?: throw PulumiNullFieldException("password"),
        targetName = targetName ?: throw PulumiNullFieldException("targetName"),
        type = type ?: throw PulumiNullFieldException("type"),
        userName = userName ?: throw PulumiNullFieldException("userName"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy