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

com.pulumi.azure.network.kotlin.inputs.VpnSiteLinkBgpArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.network.kotlin.inputs

import com.pulumi.azure.network.inputs.VpnSiteLinkBgpArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property asn The BGP speaker's ASN.
 * @property peeringAddress The BGP peering IP address.
 */
public data class VpnSiteLinkBgpArgs(
    public val asn: Output,
    public val peeringAddress: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.inputs.VpnSiteLinkBgpArgs =
        com.pulumi.azure.network.inputs.VpnSiteLinkBgpArgs.builder()
            .asn(asn.applyValue({ args0 -> args0 }))
            .peeringAddress(peeringAddress.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VpnSiteLinkBgpArgs].
 */
@PulumiTagMarker
public class VpnSiteLinkBgpArgsBuilder internal constructor() {
    private var asn: Output? = null

    private var peeringAddress: Output? = null

    /**
     * @param value The BGP speaker's ASN.
     */
    @JvmName("akvqqkwhpfynrqkr")
    public suspend fun asn(`value`: Output) {
        this.asn = value
    }

    /**
     * @param value The BGP peering IP address.
     */
    @JvmName("gxxeboqfvhhukljd")
    public suspend fun peeringAddress(`value`: Output) {
        this.peeringAddress = value
    }

    /**
     * @param value The BGP speaker's ASN.
     */
    @JvmName("gjwgxbevulifltbb")
    public suspend fun asn(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.asn = mapped
    }

    /**
     * @param value The BGP peering IP address.
     */
    @JvmName("thiblqseyyaimbts")
    public suspend fun peeringAddress(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.peeringAddress = mapped
    }

    internal fun build(): VpnSiteLinkBgpArgs = VpnSiteLinkBgpArgs(
        asn = asn ?: throw PulumiNullFieldException("asn"),
        peeringAddress = peeringAddress ?: throw PulumiNullFieldException("peeringAddress"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy