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

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

package com.pulumi.azurenative.network.kotlin.inputs

import com.pulumi.azurenative.network.inputs.BgpSettingsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Double
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * BGP settings details.
 * @property asn The BGP speaker's ASN.
 * @property bgpPeeringAddress The BGP peering address and BGP identifier of this BGP speaker.
 * @property bgpPeeringAddresses BGP peering address with IP configuration ID for virtual network gateway.
 * @property peerWeight The weight added to routes learned from this BGP speaker.
 */
public data class BgpSettingsArgs(
    public val asn: Output? = null,
    public val bgpPeeringAddress: Output? = null,
    public val bgpPeeringAddresses: Output>? = null,
    public val peerWeight: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.inputs.BgpSettingsArgs =
        com.pulumi.azurenative.network.inputs.BgpSettingsArgs.builder()
            .asn(asn?.applyValue({ args0 -> args0 }))
            .bgpPeeringAddress(bgpPeeringAddress?.applyValue({ args0 -> args0 }))
            .bgpPeeringAddresses(
                bgpPeeringAddresses?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .peerWeight(peerWeight?.applyValue({ args0 -> args0 })).build()
}

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

    private var bgpPeeringAddress: Output? = null

    private var bgpPeeringAddresses: Output>? = null

    private var peerWeight: Output? = null

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

    /**
     * @param value The BGP peering address and BGP identifier of this BGP speaker.
     */
    @JvmName("ignddjjdqbgfkwky")
    public suspend fun bgpPeeringAddress(`value`: Output) {
        this.bgpPeeringAddress = value
    }

    /**
     * @param value BGP peering address with IP configuration ID for virtual network gateway.
     */
    @JvmName("dfyybyvbirqhdith")
    public suspend fun bgpPeeringAddresses(`value`: Output>) {
        this.bgpPeeringAddresses = value
    }

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

    /**
     * @param values BGP peering address with IP configuration ID for virtual network gateway.
     */
    @JvmName("itirgyckrlpwtvwp")
    public suspend fun bgpPeeringAddresses(values: List>) {
        this.bgpPeeringAddresses = Output.all(values)
    }

    /**
     * @param value The weight added to routes learned from this BGP speaker.
     */
    @JvmName("isxnpoplrsdqmult")
    public suspend fun peerWeight(`value`: Output) {
        this.peerWeight = value
    }

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

    /**
     * @param value The BGP peering address and BGP identifier of this BGP speaker.
     */
    @JvmName("xtkxirjwaednbbut")
    public suspend fun bgpPeeringAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bgpPeeringAddress = mapped
    }

    /**
     * @param value BGP peering address with IP configuration ID for virtual network gateway.
     */
    @JvmName("ecdbvycdvogiqyuc")
    public suspend fun bgpPeeringAddresses(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bgpPeeringAddresses = mapped
    }

    /**
     * @param argument BGP peering address with IP configuration ID for virtual network gateway.
     */
    @JvmName("awfkjcpthfomjrvc")
    public suspend fun bgpPeeringAddresses(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            IPConfigurationBgpPeeringAddressArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.bgpPeeringAddresses = mapped
    }

    /**
     * @param argument BGP peering address with IP configuration ID for virtual network gateway.
     */
    @JvmName("ftttpqlfpfctpmek")
    public suspend fun bgpPeeringAddresses(vararg argument: suspend IPConfigurationBgpPeeringAddressArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            IPConfigurationBgpPeeringAddressArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.bgpPeeringAddresses = mapped
    }

    /**
     * @param argument BGP peering address with IP configuration ID for virtual network gateway.
     */
    @JvmName("laivonakjvtsholq")
    public suspend fun bgpPeeringAddresses(argument: suspend IPConfigurationBgpPeeringAddressArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            IPConfigurationBgpPeeringAddressArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.bgpPeeringAddresses = mapped
    }

    /**
     * @param values BGP peering address with IP configuration ID for virtual network gateway.
     */
    @JvmName("qlwtjlbxjplvrsty")
    public suspend fun bgpPeeringAddresses(vararg values: IPConfigurationBgpPeeringAddressArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bgpPeeringAddresses = mapped
    }

    /**
     * @param value The weight added to routes learned from this BGP speaker.
     */
    @JvmName("mrkaedjkyajhbqyy")
    public suspend fun peerWeight(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.peerWeight = mapped
    }

    internal fun build(): BgpSettingsArgs = BgpSettingsArgs(
        asn = asn,
        bgpPeeringAddress = bgpPeeringAddress,
        bgpPeeringAddresses = bgpPeeringAddresses,
        peerWeight = peerWeight,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy