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

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

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

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

import com.pulumi.azurenative.network.inputs.ParameterArgs.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

/**
 * Parameters for an Action.
 * @property asPath List of AS paths.
 * @property community List of BGP communities.
 * @property routePrefix List of route prefixes.
 */
public data class ParameterArgs(
    public val asPath: Output>? = null,
    public val community: Output>? = null,
    public val routePrefix: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.inputs.ParameterArgs =
        com.pulumi.azurenative.network.inputs.ParameterArgs.builder()
            .asPath(asPath?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .community(community?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .routePrefix(routePrefix?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var community: Output>? = null

    private var routePrefix: Output>? = null

    /**
     * @param value List of AS paths.
     */
    @JvmName("aibeytjahuhwmkif")
    public suspend fun asPath(`value`: Output>) {
        this.asPath = value
    }

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

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

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

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

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

    /**
     * @param value List of route prefixes.
     */
    @JvmName("xydqniklnslhjnta")
    public suspend fun routePrefix(`value`: Output>) {
        this.routePrefix = value
    }

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

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

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

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

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

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

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

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

    internal fun build(): ParameterArgs = ParameterArgs(
        asPath = asPath,
        community = community,
        routePrefix = routePrefix,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy