![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.azurestackhci.kotlin.inputs.RouteArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.azurestackhci.kotlin.inputs
import com.pulumi.azurenative.azurestackhci.inputs.RouteArgs.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.jvm.JvmName
/**
* Route - Route resource.
* @property addressPrefix The destination CIDR to which the route applies.
* @property name Name - name of the subnet
* @property nextHopIpAddress The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.
*/
public data class RouteArgs(
public val addressPrefix: Output? = null,
public val name: Output? = null,
public val nextHopIpAddress: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.azurestackhci.inputs.RouteArgs =
com.pulumi.azurenative.azurestackhci.inputs.RouteArgs.builder()
.addressPrefix(addressPrefix?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.nextHopIpAddress(nextHopIpAddress?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RouteArgs].
*/
@PulumiTagMarker
public class RouteArgsBuilder internal constructor() {
private var addressPrefix: Output? = null
private var name: Output? = null
private var nextHopIpAddress: Output? = null
/**
* @param value The destination CIDR to which the route applies.
*/
@JvmName("wpvkhdjqdpvchbup")
public suspend fun addressPrefix(`value`: Output) {
this.addressPrefix = value
}
/**
* @param value Name - name of the subnet
*/
@JvmName("fvmvuhkxslsuqsce")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.
*/
@JvmName("ebhjsgruytytxkxf")
public suspend fun nextHopIpAddress(`value`: Output) {
this.nextHopIpAddress = value
}
/**
* @param value The destination CIDR to which the route applies.
*/
@JvmName("fmexjmyjclsegvhf")
public suspend fun addressPrefix(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.addressPrefix = mapped
}
/**
* @param value Name - name of the subnet
*/
@JvmName("ugkdnhqlsrvwmoub")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.
*/
@JvmName("mravdxxdeyirbvki")
public suspend fun nextHopIpAddress(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.nextHopIpAddress = mapped
}
internal fun build(): RouteArgs = RouteArgs(
addressPrefix = addressPrefix,
name = name,
nextHopIpAddress = nextHopIpAddress,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy