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

com.pulumi.azure.network.kotlin.inputs.VirtualHubConnectionRoutingStaticVnetRouteArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.network.kotlin.inputs

import com.pulumi.azure.network.inputs.VirtualHubConnectionRoutingStaticVnetRouteArgs.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

/**
 *
 * @property addressPrefixes A list of CIDR Ranges which should be used as Address Prefixes.
 * @property name The name which should be used for this Static Route.
 * @property nextHopIpAddress The IP Address which should be used for the Next Hop.
 */
public data class VirtualHubConnectionRoutingStaticVnetRouteArgs(
    public val addressPrefixes: Output>? = null,
    public val name: Output? = null,
    public val nextHopIpAddress: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.inputs.VirtualHubConnectionRoutingStaticVnetRouteArgs =
        com.pulumi.azure.network.inputs.VirtualHubConnectionRoutingStaticVnetRouteArgs.builder()
            .addressPrefixes(addressPrefixes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .nextHopIpAddress(nextHopIpAddress?.applyValue({ args0 -> args0 })).build()
}

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

    private var name: Output? = null

    private var nextHopIpAddress: Output? = null

    /**
     * @param value A list of CIDR Ranges which should be used as Address Prefixes.
     */
    @JvmName("hrhlxubnbqmpxoul")
    public suspend fun addressPrefixes(`value`: Output>) {
        this.addressPrefixes = value
    }

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

    /**
     * @param values A list of CIDR Ranges which should be used as Address Prefixes.
     */
    @JvmName("ekiueyemomovqjqe")
    public suspend fun addressPrefixes(values: List>) {
        this.addressPrefixes = Output.all(values)
    }

    /**
     * @param value The name which should be used for this Static Route.
     */
    @JvmName("skawikamnewknvst")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The IP Address which should be used for the Next Hop.
     */
    @JvmName("mqyoiigtbmjesdel")
    public suspend fun nextHopIpAddress(`value`: Output) {
        this.nextHopIpAddress = value
    }

    /**
     * @param value A list of CIDR Ranges which should be used as Address Prefixes.
     */
    @JvmName("ekdyvsrokermglie")
    public suspend fun addressPrefixes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.addressPrefixes = mapped
    }

    /**
     * @param values A list of CIDR Ranges which should be used as Address Prefixes.
     */
    @JvmName("vainemxwdlexljvr")
    public suspend fun addressPrefixes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.addressPrefixes = mapped
    }

    /**
     * @param value The name which should be used for this Static Route.
     */
    @JvmName("kivielsuagshogfb")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The IP Address which should be used for the Next Hop.
     */
    @JvmName("obvgalnbrmiquuwt")
    public suspend fun nextHopIpAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nextHopIpAddress = mapped
    }

    internal fun build(): VirtualHubConnectionRoutingStaticVnetRouteArgs =
        VirtualHubConnectionRoutingStaticVnetRouteArgs(
            addressPrefixes = addressPrefixes,
            name = name,
            nextHopIpAddress = nextHopIpAddress,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy