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

com.pulumi.azurenative.managednetworkfabric.kotlin.inputs.StaticRoutePropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.managednetworkfabric.kotlin.inputs

import com.pulumi.azurenative.managednetworkfabric.inputs.StaticRoutePropertiesArgs.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

/**
 * Static Route properties.
 * @property nextHop List of next hop IPv4 | IPv6 addresses.
 * @property prefix IPv4 | IPv6 Prefix.
 */
public data class StaticRoutePropertiesArgs(
    public val nextHop: Output>,
    public val prefix: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.managednetworkfabric.inputs.StaticRoutePropertiesArgs =
        com.pulumi.azurenative.managednetworkfabric.inputs.StaticRoutePropertiesArgs.builder()
            .nextHop(nextHop.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .prefix(prefix.applyValue({ args0 -> args0 })).build()
}

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

    private var prefix: Output? = null

    /**
     * @param value List of next hop IPv4 | IPv6 addresses.
     */
    @JvmName("qrsfnnauyqycyhnv")
    public suspend fun nextHop(`value`: Output>) {
        this.nextHop = value
    }

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

    /**
     * @param values List of next hop IPv4 | IPv6 addresses.
     */
    @JvmName("elvkhduquhxbngay")
    public suspend fun nextHop(values: List>) {
        this.nextHop = Output.all(values)
    }

    /**
     * @param value IPv4 | IPv6 Prefix.
     */
    @JvmName("pvgaqciqatlwkscx")
    public suspend fun prefix(`value`: Output) {
        this.prefix = value
    }

    /**
     * @param value List of next hop IPv4 | IPv6 addresses.
     */
    @JvmName("hmahgytypnukvbeu")
    public suspend fun nextHop(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nextHop = mapped
    }

    /**
     * @param values List of next hop IPv4 | IPv6 addresses.
     */
    @JvmName("xpmudqyclthueqcx")
    public suspend fun nextHop(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nextHop = mapped
    }

    /**
     * @param value IPv4 | IPv6 Prefix.
     */
    @JvmName("gimpsgfknqvnxvwx")
    public suspend fun prefix(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.prefix = mapped
    }

    internal fun build(): StaticRoutePropertiesArgs = StaticRoutePropertiesArgs(
        nextHop = nextHop ?: throw PulumiNullFieldException("nextHop"),
        prefix = prefix ?: throw PulumiNullFieldException("prefix"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy