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

com.pulumi.azure.network.kotlin.inputs.RouteMapRuleActionParameterArgs.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.RouteMapRuleActionParameterArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property asPaths A list of AS paths.
 * @property communities A list of BGP communities.
 * @property routePrefixes A list of route prefixes.
 */
public data class RouteMapRuleActionParameterArgs(
    public val asPaths: Output>? = null,
    public val communities: Output>? = null,
    public val routePrefixes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.inputs.RouteMapRuleActionParameterArgs =
        com.pulumi.azure.network.inputs.RouteMapRuleActionParameterArgs.builder()
            .asPaths(asPaths?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .communities(communities?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .routePrefixes(routePrefixes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var communities: Output>? = null

    private var routePrefixes: Output>? = null

    /**
     * @param value A list of AS paths.
     */
    @JvmName("lvuwatgexgkdcwfc")
    public suspend fun asPaths(`value`: Output>) {
        this.asPaths = value
    }

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

    /**
     * @param values A list of AS paths.
     */
    @JvmName("nqemncobtdhdioka")
    public suspend fun asPaths(values: List>) {
        this.asPaths = Output.all(values)
    }

    /**
     * @param value A list of BGP communities.
     */
    @JvmName("upsmyfnrxsjlmtfx")
    public suspend fun communities(`value`: Output>) {
        this.communities = value
    }

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

    /**
     * @param values A list of BGP communities.
     */
    @JvmName("kjufxedxydrkbhck")
    public suspend fun communities(values: List>) {
        this.communities = Output.all(values)
    }

    /**
     * @param value A list of route prefixes.
     */
    @JvmName("vhwiqxavkujyhifv")
    public suspend fun routePrefixes(`value`: Output>) {
        this.routePrefixes = value
    }

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

    /**
     * @param values A list of route prefixes.
     */
    @JvmName("qjtkashrfairjabw")
    public suspend fun routePrefixes(values: List>) {
        this.routePrefixes = Output.all(values)
    }

    /**
     * @param value A list of AS paths.
     */
    @JvmName("udpdodeopujekoge")
    public suspend fun asPaths(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.asPaths = mapped
    }

    /**
     * @param values A list of AS paths.
     */
    @JvmName("wtvhqiapmyaoxcug")
    public suspend fun asPaths(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.asPaths = mapped
    }

    /**
     * @param value A list of BGP communities.
     */
    @JvmName("jefrqlvimxtaubks")
    public suspend fun communities(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.communities = mapped
    }

    /**
     * @param values A list of BGP communities.
     */
    @JvmName("swrqrgdkfhsilomr")
    public suspend fun communities(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.communities = mapped
    }

    /**
     * @param value A list of route prefixes.
     */
    @JvmName("xeujfpscdvsosvoa")
    public suspend fun routePrefixes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.routePrefixes = mapped
    }

    /**
     * @param values A list of route prefixes.
     */
    @JvmName("fabamgoecmsshvdx")
    public suspend fun routePrefixes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.routePrefixes = mapped
    }

    internal fun build(): RouteMapRuleActionParameterArgs = RouteMapRuleActionParameterArgs(
        asPaths = asPaths,
        communities = communities,
        routePrefixes = routePrefixes,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy