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

com.pulumi.gcp.integrationconnectors.kotlin.inputs.ConnectionEventingConfigRegistrationDestinationConfigArgs.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.ConnectionEventingConfigRegistrationDestinationConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
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 destinations destinations for the connection
 * Structure is documented below.
 * @property key Key for the connection
 */
public data class ConnectionEventingConfigRegistrationDestinationConfigArgs(
    public val destinations: Output>? = null,
    public val key: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.integrationconnectors.inputs.ConnectionEventingConfigRegistrationDestinationConfigArgs =
        com.pulumi.gcp.integrationconnectors.inputs.ConnectionEventingConfigRegistrationDestinationConfigArgs.builder()
            .destinations(
                destinations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .key(key?.applyValue({ args0 -> args0 })).build()
}

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

    private var key: Output? = null

    /**
     * @param value destinations for the connection
     * Structure is documented below.
     */
    @JvmName("ymhvjbudwqrtxuwl")
    public suspend fun destinations(`value`: Output>) {
        this.destinations = value
    }

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

    /**
     * @param values destinations for the connection
     * Structure is documented below.
     */
    @JvmName("smnmqooafxncddnd")
    public suspend fun destinations(values: List>) {
        this.destinations = Output.all(values)
    }

    /**
     * @param value Key for the connection
     */
    @JvmName("tenwtgygvpfagcay")
    public suspend fun key(`value`: Output) {
        this.key = value
    }

    /**
     * @param value destinations for the connection
     * Structure is documented below.
     */
    @JvmName("bnfbnurrfrlpujjs")
    public suspend fun destinations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.destinations = mapped
    }

    /**
     * @param argument destinations for the connection
     * Structure is documented below.
     */
    @JvmName("vnqrraccubcphgtc")
    public suspend fun destinations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ConnectionEventingConfigRegistrationDestinationConfigDestinationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.destinations = mapped
    }

    /**
     * @param argument destinations for the connection
     * Structure is documented below.
     */
    @JvmName("vfmxqijakvhanhlh")
    public suspend fun destinations(vararg argument: suspend ConnectionEventingConfigRegistrationDestinationConfigDestinationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ConnectionEventingConfigRegistrationDestinationConfigDestinationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.destinations = mapped
    }

    /**
     * @param argument destinations for the connection
     * Structure is documented below.
     */
    @JvmName("cmtmijmtwpkmsxtm")
    public suspend fun destinations(argument: suspend ConnectionEventingConfigRegistrationDestinationConfigDestinationArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ConnectionEventingConfigRegistrationDestinationConfigDestinationArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.destinations = mapped
    }

    /**
     * @param values destinations for the connection
     * Structure is documented below.
     */
    @JvmName("lruybuuustjdwsbq")
    public suspend fun destinations(vararg values: ConnectionEventingConfigRegistrationDestinationConfigDestinationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destinations = mapped
    }

    /**
     * @param value Key for the connection
     */
    @JvmName("bopyblxgehsbcvjv")
    public suspend fun key(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.key = mapped
    }

    internal fun build(): ConnectionEventingConfigRegistrationDestinationConfigArgs =
        ConnectionEventingConfigRegistrationDestinationConfigArgs(
            destinations = destinations,
            key = key,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy