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

com.pulumi.gcp.clouddomains.kotlin.inputs.RegistrationDnsSettingsCustomDnsArgs.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.clouddomains.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.clouddomains.inputs.RegistrationDnsSettingsCustomDnsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property dsRecords The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide
 * the values to set here. If this field is empty, DNSSEC is disabled.
 * Structure is documented below.
 * @property nameServers Required. A list of name servers that store the DNS zone for this domain. Each name server is a domain
 * name, with Unicode domain names expressed in Punycode format.
 */
public data class RegistrationDnsSettingsCustomDnsArgs(
    public val dsRecords: Output>? = null,
    public val nameServers: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.clouddomains.inputs.RegistrationDnsSettingsCustomDnsArgs =
        com.pulumi.gcp.clouddomains.inputs.RegistrationDnsSettingsCustomDnsArgs.builder()
            .dsRecords(
                dsRecords?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .nameServers(nameServers.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var nameServers: Output>? = null

    /**
     * @param value The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide
     * the values to set here. If this field is empty, DNSSEC is disabled.
     * Structure is documented below.
     */
    @JvmName("pyisktdkgmkenett")
    public suspend fun dsRecords(`value`: Output>) {
        this.dsRecords = value
    }

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

    /**
     * @param values The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide
     * the values to set here. If this field is empty, DNSSEC is disabled.
     * Structure is documented below.
     */
    @JvmName("sqvcqaclqmcdjmyr")
    public suspend fun dsRecords(values: List>) {
        this.dsRecords = Output.all(values)
    }

    /**
     * @param value Required. A list of name servers that store the DNS zone for this domain. Each name server is a domain
     * name, with Unicode domain names expressed in Punycode format.
     */
    @JvmName("xqtwjuqqjcqellpc")
    public suspend fun nameServers(`value`: Output>) {
        this.nameServers = value
    }

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

    /**
     * @param values Required. A list of name servers that store the DNS zone for this domain. Each name server is a domain
     * name, with Unicode domain names expressed in Punycode format.
     */
    @JvmName("huhryxprqpaeunlc")
    public suspend fun nameServers(values: List>) {
        this.nameServers = Output.all(values)
    }

    /**
     * @param value The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide
     * the values to set here. If this field is empty, DNSSEC is disabled.
     * Structure is documented below.
     */
    @JvmName("jveeterxvckuoepu")
    public suspend fun dsRecords(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dsRecords = mapped
    }

    /**
     * @param argument The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide
     * the values to set here. If this field is empty, DNSSEC is disabled.
     * Structure is documented below.
     */
    @JvmName("pqyytasriqdfesea")
    public suspend fun dsRecords(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RegistrationDnsSettingsCustomDnsDsRecordArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.dsRecords = mapped
    }

    /**
     * @param argument The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide
     * the values to set here. If this field is empty, DNSSEC is disabled.
     * Structure is documented below.
     */
    @JvmName("xhahlqhicjvlfftn")
    public suspend fun dsRecords(vararg argument: suspend RegistrationDnsSettingsCustomDnsDsRecordArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            RegistrationDnsSettingsCustomDnsDsRecordArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.dsRecords = mapped
    }

    /**
     * @param argument The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide
     * the values to set here. If this field is empty, DNSSEC is disabled.
     * Structure is documented below.
     */
    @JvmName("fphdsdlfwoxonprd")
    public suspend fun dsRecords(argument: suspend RegistrationDnsSettingsCustomDnsDsRecordArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            RegistrationDnsSettingsCustomDnsDsRecordArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.dsRecords = mapped
    }

    /**
     * @param values The list of DS records for this domain, which are used to enable DNSSEC. The domain's DNS provider can provide
     * the values to set here. If this field is empty, DNSSEC is disabled.
     * Structure is documented below.
     */
    @JvmName("imxdapeayswhfdyq")
    public suspend fun dsRecords(vararg values: RegistrationDnsSettingsCustomDnsDsRecordArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dsRecords = mapped
    }

    /**
     * @param value Required. A list of name servers that store the DNS zone for this domain. Each name server is a domain
     * name, with Unicode domain names expressed in Punycode format.
     */
    @JvmName("lwafngloealyjgjc")
    public suspend fun nameServers(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nameServers = mapped
    }

    /**
     * @param values Required. A list of name servers that store the DNS zone for this domain. Each name server is a domain
     * name, with Unicode domain names expressed in Punycode format.
     */
    @JvmName("ptlgqhsbuhesnapo")
    public suspend fun nameServers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nameServers = mapped
    }

    internal fun build(): RegistrationDnsSettingsCustomDnsArgs = RegistrationDnsSettingsCustomDnsArgs(
        dsRecords = dsRecords,
        nameServers = nameServers ?: throw PulumiNullFieldException("nameServers"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy