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

com.pulumi.azure.network.kotlin.outputs.RouteTableRoute.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.network.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 RouteTableRoute(
    public val addressPrefix: String,
    public val name: String,
    public val nextHopInIpAddress: String? = null,
    public val nextHopType: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.network.outputs.RouteTableRoute): RouteTableRoute =
            RouteTableRoute(
                addressPrefix = javaType.addressPrefix(),
                name = javaType.name(),
                nextHopInIpAddress = javaType.nextHopInIpAddress().map({ args0 -> args0 }).orElse(null),
                nextHopType = javaType.nextHopType(),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy