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

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

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

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

import com.pulumi.azurenative.network.inputs.GatewayLoadBalancerTunnelInterfaceArgs.builder
import com.pulumi.azurenative.network.kotlin.enums.GatewayLoadBalancerTunnelInterfaceType
import com.pulumi.azurenative.network.kotlin.enums.GatewayLoadBalancerTunnelProtocol
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Gateway load balancer tunnel interface of a load balancer backend address pool.
 * @property identifier Identifier of gateway load balancer tunnel interface.
 * @property port Port of gateway load balancer tunnel interface.
 * @property protocol Protocol of gateway load balancer tunnel interface.
 * @property type Traffic type of gateway load balancer tunnel interface.
 */
public data class GatewayLoadBalancerTunnelInterfaceArgs(
    public val identifier: Output? = null,
    public val port: Output? = null,
    public val protocol: Output>? = null,
    public val type: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.inputs.GatewayLoadBalancerTunnelInterfaceArgs =
        com.pulumi.azurenative.network.inputs.GatewayLoadBalancerTunnelInterfaceArgs.builder()
            .identifier(identifier?.applyValue({ args0 -> args0 }))
            .port(port?.applyValue({ args0 -> args0 }))
            .protocol(
                protocol?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .type(
                type?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [GatewayLoadBalancerTunnelInterfaceArgs].
 */
@PulumiTagMarker
public class GatewayLoadBalancerTunnelInterfaceArgsBuilder internal constructor() {
    private var identifier: Output? = null

    private var port: Output? = null

    private var protocol: Output>? = null

    private var type: Output>? = null

    /**
     * @param value Identifier of gateway load balancer tunnel interface.
     */
    @JvmName("ceqbqvritqdvukhk")
    public suspend fun identifier(`value`: Output) {
        this.identifier = value
    }

    /**
     * @param value Port of gateway load balancer tunnel interface.
     */
    @JvmName("nyxowseqpxwghqla")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value Protocol of gateway load balancer tunnel interface.
     */
    @JvmName("jtvsfgmjyjeyonuv")
    public suspend fun protocol(`value`: Output>) {
        this.protocol = value
    }

    /**
     * @param value Traffic type of gateway load balancer tunnel interface.
     */
    @JvmName("ieucadfxhumqevba")
    public suspend fun type(`value`: Output>) {
        this.type = value
    }

    /**
     * @param value Identifier of gateway load balancer tunnel interface.
     */
    @JvmName("dxxnmtdmbfdixlou")
    public suspend fun identifier(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identifier = mapped
    }

    /**
     * @param value Port of gateway load balancer tunnel interface.
     */
    @JvmName("fxqmgeanvwfvivwb")
    public suspend fun port(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.port = mapped
    }

    /**
     * @param value Protocol of gateway load balancer tunnel interface.
     */
    @JvmName("ioifxghkhvdtxjke")
    public suspend fun protocol(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.protocol = mapped
    }

    /**
     * @param value Protocol of gateway load balancer tunnel interface.
     */
    @JvmName("dlwdwpwerworqxjw")
    public fun protocol(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.protocol = mapped
    }

    /**
     * @param value Protocol of gateway load balancer tunnel interface.
     */
    @JvmName("tkmrotbgkbmiqbeq")
    public fun protocol(`value`: GatewayLoadBalancerTunnelProtocol) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.protocol = mapped
    }

    /**
     * @param value Traffic type of gateway load balancer tunnel interface.
     */
    @JvmName("hkjsugdgbdpjxxxg")
    public suspend fun type(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Traffic type of gateway load balancer tunnel interface.
     */
    @JvmName("qmvobeftpjssxjlt")
    public fun type(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Traffic type of gateway load balancer tunnel interface.
     */
    @JvmName("njhkkppcubgeyivd")
    public fun type(`value`: GatewayLoadBalancerTunnelInterfaceType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): GatewayLoadBalancerTunnelInterfaceArgs =
        GatewayLoadBalancerTunnelInterfaceArgs(
            identifier = identifier,
            port = port,
            protocol = protocol,
            type = type,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy