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

com.pulumi.aws.appmesh.kotlin.inputs.VirtualRouterSpecArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.appmesh.kotlin.inputs

import com.pulumi.aws.appmesh.inputs.VirtualRouterSpecArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property listeners Listeners that the virtual router is expected to receive inbound traffic from.
 * Currently only one listener is supported per virtual router.
 */
public data class VirtualRouterSpecArgs(
    public val listeners: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.appmesh.inputs.VirtualRouterSpecArgs =
        com.pulumi.aws.appmesh.inputs.VirtualRouterSpecArgs.builder()
            .listeners(
                listeners?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value Listeners that the virtual router is expected to receive inbound traffic from.
     * Currently only one listener is supported per virtual router.
     */
    @JvmName("rwwmfovwlegjvvsk")
    public suspend fun listeners(`value`: Output>) {
        this.listeners = value
    }

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

    /**
     * @param values Listeners that the virtual router is expected to receive inbound traffic from.
     * Currently only one listener is supported per virtual router.
     */
    @JvmName("rjrcgpdvcntjidvx")
    public suspend fun listeners(values: List>) {
        this.listeners = Output.all(values)
    }

    /**
     * @param value Listeners that the virtual router is expected to receive inbound traffic from.
     * Currently only one listener is supported per virtual router.
     */
    @JvmName("yynitgvunhexjhvk")
    public suspend fun listeners(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.listeners = mapped
    }

    /**
     * @param argument Listeners that the virtual router is expected to receive inbound traffic from.
     * Currently only one listener is supported per virtual router.
     */
    @JvmName("kmbbnolhobfnyfdd")
    public suspend fun listeners(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VirtualRouterSpecListenerArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.listeners = mapped
    }

    /**
     * @param argument Listeners that the virtual router is expected to receive inbound traffic from.
     * Currently only one listener is supported per virtual router.
     */
    @JvmName("rbopbrlmvejpdwge")
    public suspend fun listeners(vararg argument: suspend VirtualRouterSpecListenerArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            VirtualRouterSpecListenerArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.listeners = mapped
    }

    /**
     * @param argument Listeners that the virtual router is expected to receive inbound traffic from.
     * Currently only one listener is supported per virtual router.
     */
    @JvmName("cubtniyounhgrtud")
    public suspend fun listeners(argument: suspend VirtualRouterSpecListenerArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            VirtualRouterSpecListenerArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.listeners = mapped
    }

    /**
     * @param values Listeners that the virtual router is expected to receive inbound traffic from.
     * Currently only one listener is supported per virtual router.
     */
    @JvmName("nmyvdwdlxixtetac")
    public suspend fun listeners(vararg values: VirtualRouterSpecListenerArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.listeners = mapped
    }

    internal fun build(): VirtualRouterSpecArgs = VirtualRouterSpecArgs(
        listeners = listeners,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy