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

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

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

import com.pulumi.azure.network.inputs.RouteMapRuleMatchCriterionArgs.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.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property asPaths A list of AS paths which this criterion matches.
 * @property communities A list of BGP communities which this criterion matches.
 * @property matchCondition The match condition to apply the rule of the Route Map. Possible values are `Contains`, `Equals`, `NotContains`, `NotEquals` and `Unknown`.
 * @property routePrefixes A list of route prefixes which this criterion matches.
 */
public data class RouteMapRuleMatchCriterionArgs(
    public val asPaths: Output>? = null,
    public val communities: Output>? = null,
    public val matchCondition: Output,
    public val routePrefixes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.inputs.RouteMapRuleMatchCriterionArgs =
        com.pulumi.azure.network.inputs.RouteMapRuleMatchCriterionArgs.builder()
            .asPaths(asPaths?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .communities(communities?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .matchCondition(matchCondition.applyValue({ args0 -> args0 }))
            .routePrefixes(routePrefixes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var communities: Output>? = null

    private var matchCondition: Output? = null

    private var routePrefixes: Output>? = null

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

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

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

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

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

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

    /**
     * @param value The match condition to apply the rule of the Route Map. Possible values are `Contains`, `Equals`, `NotContains`, `NotEquals` and `Unknown`.
     */
    @JvmName("uyymemwuaydiqjtj")
    public suspend fun matchCondition(`value`: Output) {
        this.matchCondition = value
    }

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

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

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

    /**
     * @param value A list of AS paths which this criterion matches.
     */
    @JvmName("veqsgjdfvxhnxhyb")
    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 which this criterion matches.
     */
    @JvmName("lyvghadeunnhhtyf")
    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 which this criterion matches.
     */
    @JvmName("aufnptuvfuimpeps")
    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 which this criterion matches.
     */
    @JvmName("txvpnwkqdoroanfq")
    public suspend fun communities(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.communities = mapped
    }

    /**
     * @param value The match condition to apply the rule of the Route Map. Possible values are `Contains`, `Equals`, `NotContains`, `NotEquals` and `Unknown`.
     */
    @JvmName("hrbvqkeitkvdmkde")
    public suspend fun matchCondition(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.matchCondition = mapped
    }

    /**
     * @param value A list of route prefixes which this criterion matches.
     */
    @JvmName("byvninpdkbxaosoi")
    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 which this criterion matches.
     */
    @JvmName("ghgcrywsanjxxxcp")
    public suspend fun routePrefixes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.routePrefixes = mapped
    }

    internal fun build(): RouteMapRuleMatchCriterionArgs = RouteMapRuleMatchCriterionArgs(
        asPaths = asPaths,
        communities = communities,
        matchCondition = matchCondition ?: throw PulumiNullFieldException("matchCondition"),
        routePrefixes = routePrefixes,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy