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

com.pulumi.aws.appmesh.kotlin.inputs.VirtualGatewaySpecArgs.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.VirtualGatewaySpecArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property backendDefaults Defaults for backends.
 * @property listeners Listeners that the mesh endpoint is expected to receive inbound traffic from. You can specify one listener.
 * @property logging Inbound and outbound access logging information for the virtual gateway.
 */
public data class VirtualGatewaySpecArgs(
    public val backendDefaults: Output? = null,
    public val listeners: Output>,
    public val logging: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.appmesh.inputs.VirtualGatewaySpecArgs =
        com.pulumi.aws.appmesh.inputs.VirtualGatewaySpecArgs.builder()
            .backendDefaults(backendDefaults?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .listeners(
                listeners.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .logging(logging?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [VirtualGatewaySpecArgs].
 */
@PulumiTagMarker
public class VirtualGatewaySpecArgsBuilder internal constructor() {
    private var backendDefaults: Output? = null

    private var listeners: Output>? = null

    private var logging: Output? = null

    /**
     * @param value Defaults for backends.
     */
    @JvmName("nwncdjwkhbjfjqnp")
    public suspend fun backendDefaults(`value`: Output) {
        this.backendDefaults = value
    }

    /**
     * @param value Listeners that the mesh endpoint is expected to receive inbound traffic from. You can specify one listener.
     */
    @JvmName("nbxlxlxnwujniyby")
    public suspend fun listeners(`value`: Output>) {
        this.listeners = value
    }

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

    /**
     * @param values Listeners that the mesh endpoint is expected to receive inbound traffic from. You can specify one listener.
     */
    @JvmName("osjosqggmopbxrky")
    public suspend fun listeners(values: List>) {
        this.listeners = Output.all(values)
    }

    /**
     * @param value Inbound and outbound access logging information for the virtual gateway.
     */
    @JvmName("lgvkwutttlexeugi")
    public suspend fun logging(`value`: Output) {
        this.logging = value
    }

    /**
     * @param value Defaults for backends.
     */
    @JvmName("xhrfblnrpekrmkjd")
    public suspend fun backendDefaults(`value`: VirtualGatewaySpecBackendDefaultsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backendDefaults = mapped
    }

    /**
     * @param argument Defaults for backends.
     */
    @JvmName("irkvacmnqnxvibpx")
    public suspend fun backendDefaults(argument: suspend VirtualGatewaySpecBackendDefaultsArgsBuilder.() -> Unit) {
        val toBeMapped = VirtualGatewaySpecBackendDefaultsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.backendDefaults = mapped
    }

    /**
     * @param value Listeners that the mesh endpoint is expected to receive inbound traffic from. You can specify one listener.
     */
    @JvmName("ilkirdxjeneoqcuf")
    public suspend fun listeners(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.listeners = mapped
    }

    /**
     * @param argument Listeners that the mesh endpoint is expected to receive inbound traffic from. You can specify one listener.
     */
    @JvmName("simdxpenrotdorwv")
    public suspend fun listeners(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VirtualGatewaySpecListenerArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.listeners = mapped
    }

    /**
     * @param argument Listeners that the mesh endpoint is expected to receive inbound traffic from. You can specify one listener.
     */
    @JvmName("bojsswgvgfdfskip")
    public suspend fun listeners(vararg argument: suspend VirtualGatewaySpecListenerArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            VirtualGatewaySpecListenerArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.listeners = mapped
    }

    /**
     * @param argument Listeners that the mesh endpoint is expected to receive inbound traffic from. You can specify one listener.
     */
    @JvmName("pqsqjsjrywrtkgbc")
    public suspend fun listeners(argument: suspend VirtualGatewaySpecListenerArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            VirtualGatewaySpecListenerArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.listeners = mapped
    }

    /**
     * @param values Listeners that the mesh endpoint is expected to receive inbound traffic from. You can specify one listener.
     */
    @JvmName("tuyaohfggspndxfd")
    public suspend fun listeners(vararg values: VirtualGatewaySpecListenerArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.listeners = mapped
    }

    /**
     * @param value Inbound and outbound access logging information for the virtual gateway.
     */
    @JvmName("maeyjeodhbubxjny")
    public suspend fun logging(`value`: VirtualGatewaySpecLoggingArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logging = mapped
    }

    /**
     * @param argument Inbound and outbound access logging information for the virtual gateway.
     */
    @JvmName("wtpwkjjokgnyelio")
    public suspend fun logging(argument: suspend VirtualGatewaySpecLoggingArgsBuilder.() -> Unit) {
        val toBeMapped = VirtualGatewaySpecLoggingArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.logging = mapped
    }

    internal fun build(): VirtualGatewaySpecArgs = VirtualGatewaySpecArgs(
        backendDefaults = backendDefaults,
        listeners = listeners ?: throw PulumiNullFieldException("listeners"),
        logging = logging,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy