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

com.pulumi.azure.network.kotlin.inputs.RouteTableRouteArgs.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.RouteTableRouteArgs.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.jvm.JvmName

/**
 *
 * @property addressPrefix The destination to which the route applies. Can be CIDR (such as `10.1.0.0/16`) or [Azure Service Tag](https://docs.microsoft.com/azure/virtual-network/service-tags-overview) (such as `ApiManagement`, `AzureBackup` or `AzureMonitor`) format.
 * @property name The name of the route.
 * @property nextHopInIpAddress Contains the IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is `VirtualAppliance`.
 * @property nextHopType The type of Azure hop the packet should be sent to. Possible values are `VirtualNetworkGateway`, `VnetLocal`, `Internet`, `VirtualAppliance` and `None`.
 */
public data class RouteTableRouteArgs(
    public val addressPrefix: Output,
    public val name: Output,
    public val nextHopInIpAddress: Output? = null,
    public val nextHopType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.inputs.RouteTableRouteArgs =
        com.pulumi.azure.network.inputs.RouteTableRouteArgs.builder()
            .addressPrefix(addressPrefix.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .nextHopInIpAddress(nextHopInIpAddress?.applyValue({ args0 -> args0 }))
            .nextHopType(nextHopType.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RouteTableRouteArgs].
 */
@PulumiTagMarker
public class RouteTableRouteArgsBuilder internal constructor() {
    private var addressPrefix: Output? = null

    private var name: Output? = null

    private var nextHopInIpAddress: Output? = null

    private var nextHopType: Output? = null

    /**
     * @param value The destination to which the route applies. Can be CIDR (such as `10.1.0.0/16`) or [Azure Service Tag](https://docs.microsoft.com/azure/virtual-network/service-tags-overview) (such as `ApiManagement`, `AzureBackup` or `AzureMonitor`) format.
     */
    @JvmName("gefgrdkcbnqahjfk")
    public suspend fun addressPrefix(`value`: Output) {
        this.addressPrefix = value
    }

    /**
     * @param value The name of the route.
     */
    @JvmName("yfssrarylvotphpq")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Contains the IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is `VirtualAppliance`.
     */
    @JvmName("mkvvtjhqnvaospgn")
    public suspend fun nextHopInIpAddress(`value`: Output) {
        this.nextHopInIpAddress = value
    }

    /**
     * @param value The type of Azure hop the packet should be sent to. Possible values are `VirtualNetworkGateway`, `VnetLocal`, `Internet`, `VirtualAppliance` and `None`.
     */
    @JvmName("qevdpxqbifsewfta")
    public suspend fun nextHopType(`value`: Output) {
        this.nextHopType = value
    }

    /**
     * @param value The destination to which the route applies. Can be CIDR (such as `10.1.0.0/16`) or [Azure Service Tag](https://docs.microsoft.com/azure/virtual-network/service-tags-overview) (such as `ApiManagement`, `AzureBackup` or `AzureMonitor`) format.
     */
    @JvmName("pdvndrlfgqxsgvsj")
    public suspend fun addressPrefix(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.addressPrefix = mapped
    }

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

    /**
     * @param value Contains the IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is `VirtualAppliance`.
     */
    @JvmName("bwumdwxfswldexyx")
    public suspend fun nextHopInIpAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nextHopInIpAddress = mapped
    }

    /**
     * @param value The type of Azure hop the packet should be sent to. Possible values are `VirtualNetworkGateway`, `VnetLocal`, `Internet`, `VirtualAppliance` and `None`.
     */
    @JvmName("fdpdcnocbcfrxunf")
    public suspend fun nextHopType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nextHopType = mapped
    }

    internal fun build(): RouteTableRouteArgs = RouteTableRouteArgs(
        addressPrefix = addressPrefix ?: throw PulumiNullFieldException("addressPrefix"),
        name = name ?: throw PulumiNullFieldException("name"),
        nextHopInIpAddress = nextHopInIpAddress,
        nextHopType = nextHopType ?: throw PulumiNullFieldException("nextHopType"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy