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

com.pulumi.gcp.eventarc.kotlin.inputs.TriggerDestinationNetworkConfigArgs.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.eventarc.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.eventarc.inputs.TriggerDestinationNetworkConfigArgs.builder
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

/**
 *
 * @property networkAttachment Required. Name of the NetworkAttachment that allows access to the destination VPC. Format: `projects/{PROJECT_ID}/regions/{REGION}/networkAttachments/{NETWORK_ATTACHMENT_NAME}`
 */
public data class TriggerDestinationNetworkConfigArgs(
    public val networkAttachment: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.eventarc.inputs.TriggerDestinationNetworkConfigArgs =
        com.pulumi.gcp.eventarc.inputs.TriggerDestinationNetworkConfigArgs.builder()
            .networkAttachment(networkAttachment.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TriggerDestinationNetworkConfigArgs].
 */
@PulumiTagMarker
public class TriggerDestinationNetworkConfigArgsBuilder internal constructor() {
    private var networkAttachment: Output? = null

    /**
     * @param value Required. Name of the NetworkAttachment that allows access to the destination VPC. Format: `projects/{PROJECT_ID}/regions/{REGION}/networkAttachments/{NETWORK_ATTACHMENT_NAME}`
     */
    @JvmName("hdxeqvcvnbxglqwb")
    public suspend fun networkAttachment(`value`: Output) {
        this.networkAttachment = value
    }

    /**
     * @param value Required. Name of the NetworkAttachment that allows access to the destination VPC. Format: `projects/{PROJECT_ID}/regions/{REGION}/networkAttachments/{NETWORK_ATTACHMENT_NAME}`
     */
    @JvmName("vbixdwuhhkgbiuaj")
    public suspend fun networkAttachment(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.networkAttachment = mapped
    }

    internal fun build(): TriggerDestinationNetworkConfigArgs = TriggerDestinationNetworkConfigArgs(
        networkAttachment = networkAttachment ?: throw PulumiNullFieldException("networkAttachment"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy