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

com.pulumi.azurenative.network.kotlin.inputs.ExpressRouteCircuitPeeringConfigArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

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

/**
 * Specifies the peering configuration.
 * @property advertisedCommunities The communities of bgp peering. Specified for microsoft peering.
 * @property advertisedPublicPrefixes The reference to AdvertisedPublicPrefixes.
 * @property customerASN The CustomerASN of the peering.
 * @property legacyMode The legacy mode of the peering.
 * @property routingRegistryName The RoutingRegistryName of the configuration.
 */
public data class ExpressRouteCircuitPeeringConfigArgs(
    public val advertisedCommunities: Output>? = null,
    public val advertisedPublicPrefixes: Output>? = null,
    public val customerASN: Output? = null,
    public val legacyMode: Output? = null,
    public val routingRegistryName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.inputs.ExpressRouteCircuitPeeringConfigArgs = com.pulumi.azurenative.network.inputs.ExpressRouteCircuitPeeringConfigArgs.builder()
        .advertisedCommunities(advertisedCommunities?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
        .advertisedPublicPrefixes(
            advertisedPublicPrefixes?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0
                })
            }),
        )
        .customerASN(customerASN?.applyValue({ args0 -> args0 }))
        .legacyMode(legacyMode?.applyValue({ args0 -> args0 }))
        .routingRegistryName(routingRegistryName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ExpressRouteCircuitPeeringConfigArgs].
 */
@PulumiTagMarker
public class ExpressRouteCircuitPeeringConfigArgsBuilder internal constructor() {
    private var advertisedCommunities: Output>? = null

    private var advertisedPublicPrefixes: Output>? = null

    private var customerASN: Output? = null

    private var legacyMode: Output? = null

    private var routingRegistryName: Output? = null

    /**
     * @param value The communities of bgp peering. Specified for microsoft peering.
     */
    @JvmName("heopagebpsqirmrv")
    public suspend fun advertisedCommunities(`value`: Output>) {
        this.advertisedCommunities = value
    }

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

    /**
     * @param values The communities of bgp peering. Specified for microsoft peering.
     */
    @JvmName("agdxmblbroddndgl")
    public suspend fun advertisedCommunities(values: List>) {
        this.advertisedCommunities = Output.all(values)
    }

    /**
     * @param value The reference to AdvertisedPublicPrefixes.
     */
    @JvmName("qvvvfycxnqibugia")
    public suspend fun advertisedPublicPrefixes(`value`: Output>) {
        this.advertisedPublicPrefixes = value
    }

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

    /**
     * @param values The reference to AdvertisedPublicPrefixes.
     */
    @JvmName("yfcmlfejrkutqviq")
    public suspend fun advertisedPublicPrefixes(values: List>) {
        this.advertisedPublicPrefixes = Output.all(values)
    }

    /**
     * @param value The CustomerASN of the peering.
     */
    @JvmName("gwypdawoveguvwxq")
    public suspend fun customerASN(`value`: Output) {
        this.customerASN = value
    }

    /**
     * @param value The legacy mode of the peering.
     */
    @JvmName("inbrynoiehcgqynq")
    public suspend fun legacyMode(`value`: Output) {
        this.legacyMode = value
    }

    /**
     * @param value The RoutingRegistryName of the configuration.
     */
    @JvmName("nylsdpfyjndnnrkd")
    public suspend fun routingRegistryName(`value`: Output) {
        this.routingRegistryName = value
    }

    /**
     * @param value The communities of bgp peering. Specified for microsoft peering.
     */
    @JvmName("xhsnnxcxygwfsjxl")
    public suspend fun advertisedCommunities(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.advertisedCommunities = mapped
    }

    /**
     * @param values The communities of bgp peering. Specified for microsoft peering.
     */
    @JvmName("ipybfrvpgicntsks")
    public suspend fun advertisedCommunities(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.advertisedCommunities = mapped
    }

    /**
     * @param value The reference to AdvertisedPublicPrefixes.
     */
    @JvmName("pgmvavhcokdqlcwn")
    public suspend fun advertisedPublicPrefixes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.advertisedPublicPrefixes = mapped
    }

    /**
     * @param values The reference to AdvertisedPublicPrefixes.
     */
    @JvmName("ahyvtebphoimsqys")
    public suspend fun advertisedPublicPrefixes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.advertisedPublicPrefixes = mapped
    }

    /**
     * @param value The CustomerASN of the peering.
     */
    @JvmName("kbbpabclmosmqfor")
    public suspend fun customerASN(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customerASN = mapped
    }

    /**
     * @param value The legacy mode of the peering.
     */
    @JvmName("xvbuetykllxnxwco")
    public suspend fun legacyMode(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.legacyMode = mapped
    }

    /**
     * @param value The RoutingRegistryName of the configuration.
     */
    @JvmName("jshokedsbojdtlkd")
    public suspend fun routingRegistryName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.routingRegistryName = mapped
    }

    internal fun build(): ExpressRouteCircuitPeeringConfigArgs = ExpressRouteCircuitPeeringConfigArgs(
        advertisedCommunities = advertisedCommunities,
        advertisedPublicPrefixes = advertisedPublicPrefixes,
        customerASN = customerASN,
        legacyMode = legacyMode,
        routingRegistryName = routingRegistryName,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy