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

com.pulumi.aws.appmesh.kotlin.inputs.VirtualNodeSpecServiceDiscoveryArgs.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.VirtualNodeSpecServiceDiscoveryArgs.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.jvm.JvmName

/**
 *
 * @property awsCloudMap Any AWS Cloud Map information for the virtual node.
 * @property dns DNS service name for the virtual node.
 */
public data class VirtualNodeSpecServiceDiscoveryArgs(
    public val awsCloudMap: Output? = null,
    public val dns: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.appmesh.inputs.VirtualNodeSpecServiceDiscoveryArgs =
        com.pulumi.aws.appmesh.inputs.VirtualNodeSpecServiceDiscoveryArgs.builder()
            .awsCloudMap(awsCloudMap?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .dns(dns?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [VirtualNodeSpecServiceDiscoveryArgs].
 */
@PulumiTagMarker
public class VirtualNodeSpecServiceDiscoveryArgsBuilder internal constructor() {
    private var awsCloudMap: Output? = null

    private var dns: Output? = null

    /**
     * @param value Any AWS Cloud Map information for the virtual node.
     */
    @JvmName("sxevogffdtimqlew")
    public suspend fun awsCloudMap(`value`: Output) {
        this.awsCloudMap = value
    }

    /**
     * @param value DNS service name for the virtual node.
     */
    @JvmName("wdtpikoabrflpthv")
    public suspend fun dns(`value`: Output) {
        this.dns = value
    }

    /**
     * @param value Any AWS Cloud Map information for the virtual node.
     */
    @JvmName("kbopunbehoufphvt")
    public suspend fun awsCloudMap(`value`: VirtualNodeSpecServiceDiscoveryAwsCloudMapArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.awsCloudMap = mapped
    }

    /**
     * @param argument Any AWS Cloud Map information for the virtual node.
     */
    @JvmName("ouxbprxsbcgpmcos")
    public suspend fun awsCloudMap(argument: suspend VirtualNodeSpecServiceDiscoveryAwsCloudMapArgsBuilder.() -> Unit) {
        val toBeMapped = VirtualNodeSpecServiceDiscoveryAwsCloudMapArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.awsCloudMap = mapped
    }

    /**
     * @param value DNS service name for the virtual node.
     */
    @JvmName("omtcmshqhxkyiesm")
    public suspend fun dns(`value`: VirtualNodeSpecServiceDiscoveryDnsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dns = mapped
    }

    /**
     * @param argument DNS service name for the virtual node.
     */
    @JvmName("liocqyscogvwumax")
    public suspend fun dns(argument: suspend VirtualNodeSpecServiceDiscoveryDnsArgsBuilder.() -> Unit) {
        val toBeMapped = VirtualNodeSpecServiceDiscoveryDnsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.dns = mapped
    }

    internal fun build(): VirtualNodeSpecServiceDiscoveryArgs = VirtualNodeSpecServiceDiscoveryArgs(
        awsCloudMap = awsCloudMap,
        dns = dns,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy