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

com.pulumi.gcp.integrationconnectors.kotlin.inputs.ConnectionEventingConfigAuthConfigArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.integrationconnectors.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.integrationconnectors.inputs.ConnectionEventingConfigAuthConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property additionalVariables List containing additional auth configs.
 * Structure is documented below.
 * @property authKey The type of authentication configured.
 * @property authType authType of the Connection
 * Possible values are: `USER_PASSWORD`.
 * @property userPassword User password for Authentication.
 * Structure is documented below.
 */
public data class ConnectionEventingConfigAuthConfigArgs(
    public val additionalVariables: Output>? = null,
    public val authKey: Output? = null,
    public val authType: Output,
    public val userPassword: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.integrationconnectors.inputs.ConnectionEventingConfigAuthConfigArgs =
        com.pulumi.gcp.integrationconnectors.inputs.ConnectionEventingConfigAuthConfigArgs.builder()
            .additionalVariables(
                additionalVariables?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .authKey(authKey?.applyValue({ args0 -> args0 }))
            .authType(authType.applyValue({ args0 -> args0 }))
            .userPassword(userPassword.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var authKey: Output? = null

    private var authType: Output? = null

    private var userPassword: Output? = null

    /**
     * @param value List containing additional auth configs.
     * Structure is documented below.
     */
    @JvmName("dwjeroajpbwcavbk")
    public suspend fun additionalVariables(`value`: Output>) {
        this.additionalVariables = value
    }

    @JvmName("ycgnmhyhrnupgtmb")
    public suspend fun additionalVariables(vararg values: Output) {
        this.additionalVariables = Output.all(values.asList())
    }

    /**
     * @param values List containing additional auth configs.
     * Structure is documented below.
     */
    @JvmName("hxhmyicijorttusb")
    public suspend fun additionalVariables(values: List>) {
        this.additionalVariables = Output.all(values)
    }

    /**
     * @param value The type of authentication configured.
     */
    @JvmName("njrqmvdavjughkry")
    public suspend fun authKey(`value`: Output) {
        this.authKey = value
    }

    /**
     * @param value authType of the Connection
     * Possible values are: `USER_PASSWORD`.
     */
    @JvmName("hemjtmdfypqtxmrk")
    public suspend fun authType(`value`: Output) {
        this.authType = value
    }

    /**
     * @param value User password for Authentication.
     * Structure is documented below.
     */
    @JvmName("ynntnpwflwptylel")
    public suspend fun userPassword(`value`: Output) {
        this.userPassword = value
    }

    /**
     * @param value List containing additional auth configs.
     * Structure is documented below.
     */
    @JvmName("glidgolonuntrufr")
    public suspend fun additionalVariables(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalVariables = mapped
    }

    /**
     * @param argument List containing additional auth configs.
     * Structure is documented below.
     */
    @JvmName("dspwieureawfcmyo")
    public suspend fun additionalVariables(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ConnectionEventingConfigAuthConfigAdditionalVariableArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.additionalVariables = mapped
    }

    /**
     * @param argument List containing additional auth configs.
     * Structure is documented below.
     */
    @JvmName("yqcpxqkcfnniicka")
    public suspend fun additionalVariables(vararg argument: suspend ConnectionEventingConfigAuthConfigAdditionalVariableArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ConnectionEventingConfigAuthConfigAdditionalVariableArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.additionalVariables = mapped
    }

    /**
     * @param argument List containing additional auth configs.
     * Structure is documented below.
     */
    @JvmName("dusxcerrqbkswnhc")
    public suspend fun additionalVariables(argument: suspend ConnectionEventingConfigAuthConfigAdditionalVariableArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ConnectionEventingConfigAuthConfigAdditionalVariableArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.additionalVariables = mapped
    }

    /**
     * @param values List containing additional auth configs.
     * Structure is documented below.
     */
    @JvmName("knydtfjbndjibxyq")
    public suspend fun additionalVariables(vararg values: ConnectionEventingConfigAuthConfigAdditionalVariableArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.additionalVariables = mapped
    }

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

    /**
     * @param value authType of the Connection
     * Possible values are: `USER_PASSWORD`.
     */
    @JvmName("egqjilvgybutiwds")
    public suspend fun authType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.authType = mapped
    }

    /**
     * @param value User password for Authentication.
     * Structure is documented below.
     */
    @JvmName("jfyxbmyvrnoccnwc")
    public suspend fun userPassword(`value`: ConnectionEventingConfigAuthConfigUserPasswordArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.userPassword = mapped
    }

    /**
     * @param argument User password for Authentication.
     * Structure is documented below.
     */
    @JvmName("vvhrvyiidyendspw")
    public suspend fun userPassword(argument: suspend ConnectionEventingConfigAuthConfigUserPasswordArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectionEventingConfigAuthConfigUserPasswordArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.userPassword = mapped
    }

    internal fun build(): ConnectionEventingConfigAuthConfigArgs =
        ConnectionEventingConfigAuthConfigArgs(
            additionalVariables = additionalVariables,
            authKey = authKey,
            authType = authType ?: throw PulumiNullFieldException("authType"),
            userPassword = userPassword ?: throw PulumiNullFieldException("userPassword"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy