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

com.pulumi.aws.appmesh.kotlin.inputs.VirtualNodeSpecArgs.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.VirtualNodeSpecArgs.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 backendDefaults Defaults for backends.
 * @property backends Backends to which the virtual node is expected to send outbound traffic.
 * @property listeners Listeners from which the virtual node is expected to receive inbound traffic.
 * @property logging Inbound and outbound access logging information for the virtual node.
 * @property serviceDiscovery Service discovery information for the virtual node.
 */
public data class VirtualNodeSpecArgs(
    public val backendDefaults: Output? = null,
    public val backends: Output>? = null,
    public val listeners: Output>? = null,
    public val logging: Output? = null,
    public val serviceDiscovery: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.appmesh.inputs.VirtualNodeSpecArgs =
        com.pulumi.aws.appmesh.inputs.VirtualNodeSpecArgs.builder()
            .backendDefaults(backendDefaults?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .backends(
                backends?.applyValue({ args0 ->
                    args0.map({ 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() }) }))
            .serviceDiscovery(
                serviceDiscovery?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

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

    private var backends: Output>? = null

    private var listeners: Output>? = null

    private var logging: Output? = null

    private var serviceDiscovery: Output? = null

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

    /**
     * @param value Backends to which the virtual node is expected to send outbound traffic.
     */
    @JvmName("uiutrhokfqphhlbb")
    public suspend fun backends(`value`: Output>) {
        this.backends = value
    }

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

    /**
     * @param values Backends to which the virtual node is expected to send outbound traffic.
     */
    @JvmName("rjdbmtigrmcuvdco")
    public suspend fun backends(values: List>) {
        this.backends = Output.all(values)
    }

    /**
     * @param value Listeners from which the virtual node is expected to receive inbound traffic.
     */
    @JvmName("wfdraaxhhepwcnje")
    public suspend fun listeners(`value`: Output>) {
        this.listeners = value
    }

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

    /**
     * @param values Listeners from which the virtual node is expected to receive inbound traffic.
     */
    @JvmName("vvhispampdxntmoi")
    public suspend fun listeners(values: List>) {
        this.listeners = Output.all(values)
    }

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

    /**
     * @param value Service discovery information for the virtual node.
     */
    @JvmName("uyqtylbjhafoxlsb")
    public suspend fun serviceDiscovery(`value`: Output) {
        this.serviceDiscovery = value
    }

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

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

    /**
     * @param value Backends to which the virtual node is expected to send outbound traffic.
     */
    @JvmName("gyktkspyifjeowey")
    public suspend fun backends(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backends = mapped
    }

    /**
     * @param argument Backends to which the virtual node is expected to send outbound traffic.
     */
    @JvmName("iwmgrwlnxupugftj")
    public suspend fun backends(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VirtualNodeSpecBackendArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.backends = mapped
    }

    /**
     * @param argument Backends to which the virtual node is expected to send outbound traffic.
     */
    @JvmName("jpfkahnllhbddbbm")
    public suspend fun backends(vararg argument: suspend VirtualNodeSpecBackendArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            VirtualNodeSpecBackendArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.backends = mapped
    }

    /**
     * @param argument Backends to which the virtual node is expected to send outbound traffic.
     */
    @JvmName("yrwmmiriqnvlvcuy")
    public suspend fun backends(argument: suspend VirtualNodeSpecBackendArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(VirtualNodeSpecBackendArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.backends = mapped
    }

    /**
     * @param values Backends to which the virtual node is expected to send outbound traffic.
     */
    @JvmName("eccvvlxuwxgpubyr")
    public suspend fun backends(vararg values: VirtualNodeSpecBackendArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.backends = mapped
    }

    /**
     * @param value Listeners from which the virtual node is expected to receive inbound traffic.
     */
    @JvmName("ldrsollckxopsjru")
    public suspend fun listeners(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.listeners = mapped
    }

    /**
     * @param argument Listeners from which the virtual node is expected to receive inbound traffic.
     */
    @JvmName("rqyaftmmfbhrxfua")
    public suspend fun listeners(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VirtualNodeSpecListenerArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.listeners = mapped
    }

    /**
     * @param argument Listeners from which the virtual node is expected to receive inbound traffic.
     */
    @JvmName("eahwvqwyrnrkjhbf")
    public suspend fun listeners(vararg argument: suspend VirtualNodeSpecListenerArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            VirtualNodeSpecListenerArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.listeners = mapped
    }

    /**
     * @param argument Listeners from which the virtual node is expected to receive inbound traffic.
     */
    @JvmName("exxtrlkytcirmcrh")
    public suspend fun listeners(argument: suspend VirtualNodeSpecListenerArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            VirtualNodeSpecListenerArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.listeners = mapped
    }

    /**
     * @param values Listeners from which the virtual node is expected to receive inbound traffic.
     */
    @JvmName("lobsjpifsikwxfhp")
    public suspend fun listeners(vararg values: VirtualNodeSpecListenerArgs) {
        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 node.
     */
    @JvmName("hygydjprbxjpserh")
    public suspend fun logging(`value`: VirtualNodeSpecLoggingArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logging = mapped
    }

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

    /**
     * @param value Service discovery information for the virtual node.
     */
    @JvmName("bpasahpoepyafhvh")
    public suspend fun serviceDiscovery(`value`: VirtualNodeSpecServiceDiscoveryArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceDiscovery = mapped
    }

    /**
     * @param argument Service discovery information for the virtual node.
     */
    @JvmName("qxscxuaxyqsonjgn")
    public suspend fun serviceDiscovery(argument: suspend VirtualNodeSpecServiceDiscoveryArgsBuilder.() -> Unit) {
        val toBeMapped = VirtualNodeSpecServiceDiscoveryArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.serviceDiscovery = mapped
    }

    internal fun build(): VirtualNodeSpecArgs = VirtualNodeSpecArgs(
        backendDefaults = backendDefaults,
        backends = backends,
        listeners = listeners,
        logging = logging,
        serviceDiscovery = serviceDiscovery,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy