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

com.pulumi.gcp.clouddomains.kotlin.inputs.RegistrationDnsSettingsArgs.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.12.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.RegistrationDnsSettingsArgs.builder
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 customDns Configuration for an arbitrary DNS provider.
 * Structure is documented below.
 * @property glueRecords The list of glue records for this Registration. Commonly empty.
 * Structure is documented below.
 */
public data class RegistrationDnsSettingsArgs(
    public val customDns: Output? = null,
    public val glueRecords: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.clouddomains.inputs.RegistrationDnsSettingsArgs =
        com.pulumi.gcp.clouddomains.inputs.RegistrationDnsSettingsArgs.builder()
            .customDns(customDns?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .glueRecords(
                glueRecords?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [RegistrationDnsSettingsArgs].
 */
@PulumiTagMarker
public class RegistrationDnsSettingsArgsBuilder internal constructor() {
    private var customDns: Output? = null

    private var glueRecords: Output>? = null

    /**
     * @param value Configuration for an arbitrary DNS provider.
     * Structure is documented below.
     */
    @JvmName("wblsjajcpclkqftv")
    public suspend fun customDns(`value`: Output) {
        this.customDns = value
    }

    /**
     * @param value The list of glue records for this Registration. Commonly empty.
     * Structure is documented below.
     */
    @JvmName("txldxioacotvhron")
    public suspend fun glueRecords(`value`: Output>) {
        this.glueRecords = value
    }

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

    /**
     * @param values The list of glue records for this Registration. Commonly empty.
     * Structure is documented below.
     */
    @JvmName("kcweupunjjbryvqf")
    public suspend fun glueRecords(values: List>) {
        this.glueRecords = Output.all(values)
    }

    /**
     * @param value Configuration for an arbitrary DNS provider.
     * Structure is documented below.
     */
    @JvmName("kycsvgkaymobhowa")
    public suspend fun customDns(`value`: RegistrationDnsSettingsCustomDnsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customDns = mapped
    }

    /**
     * @param argument Configuration for an arbitrary DNS provider.
     * Structure is documented below.
     */
    @JvmName("ydlqwpjmqioskboh")
    public suspend fun customDns(argument: suspend RegistrationDnsSettingsCustomDnsArgsBuilder.() -> Unit) {
        val toBeMapped = RegistrationDnsSettingsCustomDnsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.customDns = mapped
    }

    /**
     * @param value The list of glue records for this Registration. Commonly empty.
     * Structure is documented below.
     */
    @JvmName("yjsltqhgyyharfhx")
    public suspend fun glueRecords(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.glueRecords = mapped
    }

    /**
     * @param argument The list of glue records for this Registration. Commonly empty.
     * Structure is documented below.
     */
    @JvmName("qvuuqkyajnfujqkg")
    public suspend fun glueRecords(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RegistrationDnsSettingsGlueRecordArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.glueRecords = mapped
    }

    /**
     * @param argument The list of glue records for this Registration. Commonly empty.
     * Structure is documented below.
     */
    @JvmName("povumxtdmmbaflds")
    public suspend fun glueRecords(vararg argument: suspend RegistrationDnsSettingsGlueRecordArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            RegistrationDnsSettingsGlueRecordArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.glueRecords = mapped
    }

    /**
     * @param argument The list of glue records for this Registration. Commonly empty.
     * Structure is documented below.
     */
    @JvmName("jspcwkgacbhckpfv")
    public suspend fun glueRecords(argument: suspend RegistrationDnsSettingsGlueRecordArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            RegistrationDnsSettingsGlueRecordArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.glueRecords = mapped
    }

    /**
     * @param values The list of glue records for this Registration. Commonly empty.
     * Structure is documented below.
     */
    @JvmName("yisxxyuqsqsqhexv")
    public suspend fun glueRecords(vararg values: RegistrationDnsSettingsGlueRecordArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.glueRecords = mapped
    }

    internal fun build(): RegistrationDnsSettingsArgs = RegistrationDnsSettingsArgs(
        customDns = customDns,
        glueRecords = glueRecords,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy