com.pulumi.azurenative.network.kotlin.inputs.StaticRouteArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.network.kotlin.inputs
import com.pulumi.azurenative.network.inputs.StaticRouteArgs.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
/**
* List of all Static Routes.
* @property addressPrefixes List of all address prefixes.
* @property name The name of the StaticRoute that is unique within a VnetRoute.
* @property nextHopIpAddress The ip address of the next hop.
*/
public data class StaticRouteArgs(
public val addressPrefixes: Output>? = null,
public val name: Output? = null,
public val nextHopIpAddress: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.network.inputs.StaticRouteArgs =
com.pulumi.azurenative.network.inputs.StaticRouteArgs.builder()
.addressPrefixes(addressPrefixes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.name(name?.applyValue({ args0 -> args0 }))
.nextHopIpAddress(nextHopIpAddress?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [StaticRouteArgs].
*/
@PulumiTagMarker
public class StaticRouteArgsBuilder internal constructor() {
private var addressPrefixes: Output>? = null
private var name: Output? = null
private var nextHopIpAddress: Output? = null
/**
* @param value List of all address prefixes.
*/
@JvmName("aaurakgvtcsjrtrf")
public suspend fun addressPrefixes(`value`: Output>) {
this.addressPrefixes = value
}
@JvmName("cojayruupypiakny")
public suspend fun addressPrefixes(vararg values: Output) {
this.addressPrefixes = Output.all(values.asList())
}
/**
* @param values List of all address prefixes.
*/
@JvmName("cehyqvtcbbemhryq")
public suspend fun addressPrefixes(values: List