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

com.pulumi.gcp.dns.kotlin.inputs.ManagedZoneForwardingConfigArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.dns.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dns.inputs.ManagedZoneForwardingConfigArgs.builder
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 targetNameServers List of target name servers to forward to. Cloud DNS will
 * select the best available name server if more than
 * one target is given.
 * Structure is documented below.
 */
public data class ManagedZoneForwardingConfigArgs(
    public val targetNameServers: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dns.inputs.ManagedZoneForwardingConfigArgs =
        com.pulumi.gcp.dns.inputs.ManagedZoneForwardingConfigArgs.builder()
            .targetNameServers(
                targetNameServers.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value List of target name servers to forward to. Cloud DNS will
     * select the best available name server if more than
     * one target is given.
     * Structure is documented below.
     */
    @JvmName("cguglutccgmnagud")
    public suspend fun targetNameServers(`value`: Output>) {
        this.targetNameServers = value
    }

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

    /**
     * @param values List of target name servers to forward to. Cloud DNS will
     * select the best available name server if more than
     * one target is given.
     * Structure is documented below.
     */
    @JvmName("diuyxlabbehussur")
    public suspend fun targetNameServers(values: List>) {
        this.targetNameServers = Output.all(values)
    }

    /**
     * @param value List of target name servers to forward to. Cloud DNS will
     * select the best available name server if more than
     * one target is given.
     * Structure is documented below.
     */
    @JvmName("tkrremcstdxwnbud")
    public suspend fun targetNameServers(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetNameServers = mapped
    }

    /**
     * @param argument List of target name servers to forward to. Cloud DNS will
     * select the best available name server if more than
     * one target is given.
     * Structure is documented below.
     */
    @JvmName("qkrfahapqdtkwsoi")
    public suspend fun targetNameServers(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ManagedZoneForwardingConfigTargetNameServerArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.targetNameServers = mapped
    }

    /**
     * @param argument List of target name servers to forward to. Cloud DNS will
     * select the best available name server if more than
     * one target is given.
     * Structure is documented below.
     */
    @JvmName("ojfqsypnrriybcyy")
    public suspend fun targetNameServers(vararg argument: suspend ManagedZoneForwardingConfigTargetNameServerArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ManagedZoneForwardingConfigTargetNameServerArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.targetNameServers = mapped
    }

    /**
     * @param argument List of target name servers to forward to. Cloud DNS will
     * select the best available name server if more than
     * one target is given.
     * Structure is documented below.
     */
    @JvmName("txhkhkwfdmwknjml")
    public suspend fun targetNameServers(argument: suspend ManagedZoneForwardingConfigTargetNameServerArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ManagedZoneForwardingConfigTargetNameServerArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.targetNameServers = mapped
    }

    /**
     * @param values List of target name servers to forward to. Cloud DNS will
     * select the best available name server if more than
     * one target is given.
     * Structure is documented below.
     */
    @JvmName("twctbqhkyaclwixh")
    public suspend fun targetNameServers(vararg values: ManagedZoneForwardingConfigTargetNameServerArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetNameServers = mapped
    }

    internal fun build(): ManagedZoneForwardingConfigArgs = ManagedZoneForwardingConfigArgs(
        targetNameServers = targetNameServers ?: throw PulumiNullFieldException("targetNameServers"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy