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 includeImportRanges IP ranges allowed to be included during import from hub (does not control transit connectivity).
 * The only allowed value for now is "ALL_IPV4_RANGES".
 * @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 includeImportRanges: Output>? = null,
    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()
            .includeImportRanges(includeImportRanges?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .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 includeImportRanges: Output>? = null

    private var siteToSiteDataTransfer: Output? = null

    private var uris: Output>? = null

    /**
     * @param value IP ranges allowed to be included during import from hub (does not control transit connectivity).
     * The only allowed value for now is "ALL_IPV4_RANGES".
     */
    @JvmName("lytswmvugxkvybkp")
    public suspend fun includeImportRanges(`value`: Output>) {
        this.includeImportRanges = value
    }

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

    /**
     * @param values IP ranges allowed to be included during import from hub (does not control transit connectivity).
     * The only allowed value for now is "ALL_IPV4_RANGES".
     */
    @JvmName("qcyyooeqkmsnaemh")
    public suspend fun includeImportRanges(values: List>) {
        this.includeImportRanges = 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("xmsilehtnvxlvxrh")
    public suspend fun siteToSiteDataTransfer(`value`: Output) {
        this.siteToSiteDataTransfer = value
    }

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

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

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

    /**
     * @param value IP ranges allowed to be included during import from hub (does not control transit connectivity).
     * The only allowed value for now is "ALL_IPV4_RANGES".
     */
    @JvmName("dtoskmsvqsaximnq")
    public suspend fun includeImportRanges(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includeImportRanges = mapped
    }

    /**
     * @param values IP ranges allowed to be included during import from hub (does not control transit connectivity).
     * The only allowed value for now is "ALL_IPV4_RANGES".
     */
    @JvmName("hvuyshocfqpjogta")
    public suspend fun includeImportRanges(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.includeImportRanges = mapped
    }

    /**
     * @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("pqrpitlaicvpmftf")
    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("dvuolevdvklaiqcl")
    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("ojjpsvnxybavrbga")
    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(
        includeImportRanges = includeImportRanges,
        siteToSiteDataTransfer = siteToSiteDataTransfer ?: throw
            PulumiNullFieldException("siteToSiteDataTransfer"),
        uris = uris ?: throw PulumiNullFieldException("uris"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy