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

com.pulumi.gcp.integrationconnectors.kotlin.inputs.ConnectionEventingConfigArgs.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.12.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.ConnectionEventingConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
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 authConfig authConfig for Eventing Configuration.
 * Structure is documented below.
 * @property enrichmentEnabled Enrichment Enabled.
 * @property registrationDestinationConfig registrationDestinationConfig
 * Structure is documented below.
 */
public data class ConnectionEventingConfigArgs(
    public val additionalVariables: Output>? =
        null,
    public val authConfig: Output? = null,
    public val enrichmentEnabled: Output? = null,
    public val registrationDestinationConfig: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.integrationconnectors.inputs.ConnectionEventingConfigArgs =
        com.pulumi.gcp.integrationconnectors.inputs.ConnectionEventingConfigArgs.builder()
            .additionalVariables(
                additionalVariables?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .authConfig(authConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .enrichmentEnabled(enrichmentEnabled?.applyValue({ args0 -> args0 }))
            .registrationDestinationConfig(
                registrationDestinationConfig.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            ).build()
}

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

    private var authConfig: Output? = null

    private var enrichmentEnabled: Output? = null

    private var registrationDestinationConfig:
        Output? = null

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

    @JvmName("cfdodwmtfwprhawf")
    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("gvmgjhkefaehwrxp")
    public suspend fun additionalVariables(values: List>) {
        this.additionalVariables = Output.all(values)
    }

    /**
     * @param value authConfig for Eventing Configuration.
     * Structure is documented below.
     */
    @JvmName("snsxtlybkdnkhivm")
    public suspend fun authConfig(`value`: Output) {
        this.authConfig = value
    }

    /**
     * @param value Enrichment Enabled.
     */
    @JvmName("gpcugogctfqoukkr")
    public suspend fun enrichmentEnabled(`value`: Output) {
        this.enrichmentEnabled = value
    }

    /**
     * @param value registrationDestinationConfig
     * Structure is documented below.
     */
    @JvmName("aisuniyrsmcfwmcd")
    public suspend fun registrationDestinationConfig(`value`: Output) {
        this.registrationDestinationConfig = value
    }

    /**
     * @param value List containing additional auth configs.
     * Structure is documented below.
     */
    @JvmName("luucfatevgmvxtfy")
    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("bpysyynitxiuqpep")
    public suspend fun additionalVariables(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ConnectionEventingConfigAdditionalVariableArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.additionalVariables = mapped
    }

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

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

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

    /**
     * @param value authConfig for Eventing Configuration.
     * Structure is documented below.
     */
    @JvmName("luoassrrwfvawrsk")
    public suspend fun authConfig(`value`: ConnectionEventingConfigAuthConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authConfig = mapped
    }

    /**
     * @param argument authConfig for Eventing Configuration.
     * Structure is documented below.
     */
    @JvmName("ckbfutlybygjipyu")
    public suspend fun authConfig(argument: suspend ConnectionEventingConfigAuthConfigArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectionEventingConfigAuthConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.authConfig = mapped
    }

    /**
     * @param value Enrichment Enabled.
     */
    @JvmName("msjmfyqreupbadkx")
    public suspend fun enrichmentEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enrichmentEnabled = mapped
    }

    /**
     * @param value registrationDestinationConfig
     * Structure is documented below.
     */
    @JvmName("nmwjkcnmlhsdcfby")
    public suspend fun registrationDestinationConfig(`value`: ConnectionEventingConfigRegistrationDestinationConfigArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.registrationDestinationConfig = mapped
    }

    /**
     * @param argument registrationDestinationConfig
     * Structure is documented below.
     */
    @JvmName("yncajisdtjrsfhrg")
    public suspend fun registrationDestinationConfig(argument: suspend ConnectionEventingConfigRegistrationDestinationConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            ConnectionEventingConfigRegistrationDestinationConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.registrationDestinationConfig = mapped
    }

    internal fun build(): ConnectionEventingConfigArgs = ConnectionEventingConfigArgs(
        additionalVariables = additionalVariables,
        authConfig = authConfig,
        enrichmentEnabled = enrichmentEnabled,
        registrationDestinationConfig = registrationDestinationConfig ?: throw
            PulumiNullFieldException("registrationDestinationConfig"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy