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

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>) {
        this.addressPrefixes = Output.all(values)
    }

    /**
     * @param value The name of the StaticRoute that is unique within a VnetRoute.
     */
    @JvmName("jpeiqnrsdoejkbek")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The ip address of the next hop.
     */
    @JvmName("egqdsovqewnnstwf")
    public suspend fun nextHopIpAddress(`value`: Output) {
        this.nextHopIpAddress = value
    }

    /**
     * @param value List of all address prefixes.
     */
    @JvmName("vnxvvquekrmmoyyb")
    public suspend fun addressPrefixes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.addressPrefixes = mapped
    }

    /**
     * @param values List of all address prefixes.
     */
    @JvmName("ixtkhiwweiugprla")
    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 of the StaticRoute that is unique within a VnetRoute.
     */
    @JvmName("uyddbnmfrnhvjfgs")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The ip address of the next hop.
     */
    @JvmName("fxxqcotqswwfwfpv")
    public suspend fun nextHopIpAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nextHopIpAddress = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy