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

com.pulumi.gcp.networkconnectivity.kotlin.inputs.SpokeLinkedVpnTunnelsArgs.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.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.networkconnectivity.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networkconnectivity.inputs.SpokeLinkedVpnTunnelsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property siteToSiteDataTransfer A value that controls whether site-to-site data transfer is enabled for these resources. Note that data transfer is available only in supported locations.
 * @property uris The URIs of linked VPN tunnel resources.
 */
public data class SpokeLinkedVpnTunnelsArgs(
    public val siteToSiteDataTransfer: Output,
    public val uris: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networkconnectivity.inputs.SpokeLinkedVpnTunnelsArgs =
        com.pulumi.gcp.networkconnectivity.inputs.SpokeLinkedVpnTunnelsArgs.builder()
            .siteToSiteDataTransfer(siteToSiteDataTransfer.applyValue({ args0 -> args0 }))
            .uris(uris.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [SpokeLinkedVpnTunnelsArgs].
 */
@PulumiTagMarker
public class SpokeLinkedVpnTunnelsArgsBuilder internal constructor() {
    private var siteToSiteDataTransfer: Output? = null

    private var uris: Output>? = null

    /**
     * @param value A value that controls whether site-to-site data transfer is enabled for these resources. Note that data transfer is available only in supported locations.
     */
    @JvmName("pikafjmjgbdmnmoi")
    public suspend fun siteToSiteDataTransfer(`value`: Output) {
        this.siteToSiteDataTransfer = value
    }

    /**
     * @param value The URIs of linked VPN tunnel resources.
     */
    @JvmName("hyvxdqqeebbbfpqt")
    public suspend fun uris(`value`: Output>) {
        this.uris = value
    }

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

    /**
     * @param values The URIs of linked VPN tunnel resources.
     */
    @JvmName("whvlbmyobmjqerlk")
    public suspend fun uris(values: List>) {
        this.uris = Output.all(values)
    }

    /**
     * @param value A value that controls whether site-to-site data transfer is enabled for these resources. Note that data transfer is available only in supported locations.
     */
    @JvmName("driyvjewwunhloom")
    public suspend fun siteToSiteDataTransfer(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.siteToSiteDataTransfer = mapped
    }

    /**
     * @param value The URIs of linked VPN tunnel resources.
     */
    @JvmName("pbyqyddbjyeipscu")
    public suspend fun uris(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.uris = mapped
    }

    /**
     * @param values The URIs of linked VPN tunnel resources.
     */
    @JvmName("swyhkdtwayekqkpg")
    public suspend fun uris(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.uris = mapped
    }

    internal fun build(): SpokeLinkedVpnTunnelsArgs = SpokeLinkedVpnTunnelsArgs(
        siteToSiteDataTransfer = siteToSiteDataTransfer ?: throw
            PulumiNullFieldException("siteToSiteDataTransfer"),
        uris = uris ?: throw PulumiNullFieldException("uris"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy