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

com.pulumi.azurenative.network.kotlin.inputs.HubRouteArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.network.kotlin.inputs

import com.pulumi.azurenative.network.inputs.HubRouteArgs.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

/**
 * RouteTable route.
 * @property destinationType The type of destinations (eg: CIDR, ResourceId, Service).
 * @property destinations List of all destinations.
 * @property name The name of the Route that is unique within a RouteTable. This name can be used to access this route.
 * @property nextHop NextHop resource ID.
 * @property nextHopType The type of next hop (eg: ResourceId).
 */
public data class HubRouteArgs(
    public val destinationType: Output,
    public val destinations: Output>,
    public val name: Output,
    public val nextHop: Output,
    public val nextHopType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.inputs.HubRouteArgs =
        com.pulumi.azurenative.network.inputs.HubRouteArgs.builder()
            .destinationType(destinationType.applyValue({ args0 -> args0 }))
            .destinations(destinations.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name.applyValue({ args0 -> args0 }))
            .nextHop(nextHop.applyValue({ args0 -> args0 }))
            .nextHopType(nextHopType.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [HubRouteArgs].
 */
@PulumiTagMarker
public class HubRouteArgsBuilder internal constructor() {
    private var destinationType: Output? = null

    private var destinations: Output>? = null

    private var name: Output? = null

    private var nextHop: Output? = null

    private var nextHopType: Output? = null

    /**
     * @param value The type of destinations (eg: CIDR, ResourceId, Service).
     */
    @JvmName("jabhqgmkmjlerhix")
    public suspend fun destinationType(`value`: Output) {
        this.destinationType = value
    }

    /**
     * @param value List of all destinations.
     */
    @JvmName("npomxyqxngjdbvbw")
    public suspend fun destinations(`value`: Output>) {
        this.destinations = value
    }

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

    /**
     * @param values List of all destinations.
     */
    @JvmName("fkhsjrdggkahbmxy")
    public suspend fun destinations(values: List>) {
        this.destinations = Output.all(values)
    }

    /**
     * @param value The name of the Route that is unique within a RouteTable. This name can be used to access this route.
     */
    @JvmName("rxgotnvjhsirnhaq")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value NextHop resource ID.
     */
    @JvmName("gjcqfhdmqiimvvgr")
    public suspend fun nextHop(`value`: Output) {
        this.nextHop = value
    }

    /**
     * @param value The type of next hop (eg: ResourceId).
     */
    @JvmName("tgqatcxgqfqoxvph")
    public suspend fun nextHopType(`value`: Output) {
        this.nextHopType = value
    }

    /**
     * @param value The type of destinations (eg: CIDR, ResourceId, Service).
     */
    @JvmName("khrqndjuybuurtkk")
    public suspend fun destinationType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destinationType = mapped
    }

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

    /**
     * @param values List of all destinations.
     */
    @JvmName("nrtfucbwwvxqyyhp")
    public suspend fun destinations(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destinations = mapped
    }

    /**
     * @param value The name of the Route that is unique within a RouteTable. This name can be used to access this route.
     */
    @JvmName("mfahgbrkqjoqeirj")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value NextHop resource ID.
     */
    @JvmName("swietmijlkjtscuw")
    public suspend fun nextHop(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nextHop = mapped
    }

    /**
     * @param value The type of next hop (eg: ResourceId).
     */
    @JvmName("jhnwencpugrnwxyo")
    public suspend fun nextHopType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nextHopType = mapped
    }

    internal fun build(): HubRouteArgs = HubRouteArgs(
        destinationType = destinationType ?: throw PulumiNullFieldException("destinationType"),
        destinations = destinations ?: throw PulumiNullFieldException("destinations"),
        name = name ?: throw PulumiNullFieldException("name"),
        nextHop = nextHop ?: throw PulumiNullFieldException("nextHop"),
        nextHopType = nextHopType ?: throw PulumiNullFieldException("nextHopType"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy