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

com.pulumi.gcp.networkconnectivity.kotlin.inputs.SpokeLinkedInterconnectAttachmentsArgs.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.networkconnectivity.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networkconnectivity.inputs.SpokeLinkedInterconnectAttachmentsArgs.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 interconnect attachment resources
 */
public data class SpokeLinkedInterconnectAttachmentsArgs(
    public val siteToSiteDataTransfer: Output,
    public val uris: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networkconnectivity.inputs.SpokeLinkedInterconnectAttachmentsArgs =
        com.pulumi.gcp.networkconnectivity.inputs.SpokeLinkedInterconnectAttachmentsArgs.builder()
            .siteToSiteDataTransfer(siteToSiteDataTransfer.applyValue({ args0 -> args0 }))
            .uris(uris.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [SpokeLinkedInterconnectAttachmentsArgs].
 */
@PulumiTagMarker
public class SpokeLinkedInterconnectAttachmentsArgsBuilder 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("yidpmntishfkmudr")
    public suspend fun siteToSiteDataTransfer(`value`: Output) {
        this.siteToSiteDataTransfer = value
    }

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

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

    /**
     * @param values The URIs of linked interconnect attachment resources
     */
    @JvmName("gadsubodndwixsat")
    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("lefrstwgkebrnsui")
    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 interconnect attachment resources
     */
    @JvmName("emwphxkqfmawnnad")
    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 interconnect attachment resources
     */
    @JvmName("frrlmkqlovtdbhdm")
    public suspend fun uris(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.uris = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy