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

com.pulumi.azure.network.kotlin.inputs.RoutingIntentRoutingPolicyArgs.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.RoutingIntentRoutingPolicyArgs.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 destinations A list of destinations which this routing policy is applicable to. Possible values are `Internet` and `PrivateTraffic`.
 * @property name The unique name for the routing policy.
 * @property nextHop The resource ID of the next hop on which this routing policy is applicable to.
 */
public data class RoutingIntentRoutingPolicyArgs(
    public val destinations: Output>,
    public val name: Output,
    public val nextHop: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.inputs.RoutingIntentRoutingPolicyArgs =
        com.pulumi.azure.network.inputs.RoutingIntentRoutingPolicyArgs.builder()
            .destinations(destinations.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name.applyValue({ args0 -> args0 }))
            .nextHop(nextHop.applyValue({ args0 -> args0 })).build()
}

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

    private var name: Output? = null

    private var nextHop: Output? = null

    /**
     * @param value A list of destinations which this routing policy is applicable to. Possible values are `Internet` and `PrivateTraffic`.
     */
    @JvmName("tteheoevngbthnop")
    public suspend fun destinations(`value`: Output>) {
        this.destinations = value
    }

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

    /**
     * @param values A list of destinations which this routing policy is applicable to. Possible values are `Internet` and `PrivateTraffic`.
     */
    @JvmName("ygsnmmnoqmprfybi")
    public suspend fun destinations(values: List>) {
        this.destinations = Output.all(values)
    }

    /**
     * @param value The unique name for the routing policy.
     */
    @JvmName("vshrhsqpqtbnuiig")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The resource ID of the next hop on which this routing policy is applicable to.
     */
    @JvmName("hetcssmhqdtpvnpd")
    public suspend fun nextHop(`value`: Output) {
        this.nextHop = value
    }

    /**
     * @param value A list of destinations which this routing policy is applicable to. Possible values are `Internet` and `PrivateTraffic`.
     */
    @JvmName("bcqcfkwanwbojpjo")
    public suspend fun destinations(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destinations = mapped
    }

    /**
     * @param values A list of destinations which this routing policy is applicable to. Possible values are `Internet` and `PrivateTraffic`.
     */
    @JvmName("gicedfclssgijmtd")
    public suspend fun destinations(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destinations = mapped
    }

    /**
     * @param value The unique name for the routing policy.
     */
    @JvmName("ygjribhddacqhlpu")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The resource ID of the next hop on which this routing policy is applicable to.
     */
    @JvmName("ltduqybwdxxcjhwq")
    public suspend fun nextHop(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nextHop = mapped
    }

    internal fun build(): RoutingIntentRoutingPolicyArgs = RoutingIntentRoutingPolicyArgs(
        destinations = destinations ?: throw PulumiNullFieldException("destinations"),
        name = name ?: throw PulumiNullFieldException("name"),
        nextHop = nextHop ?: throw PulumiNullFieldException("nextHop"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy