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

com.pulumi.azure.containerservice.kotlin.inputs.GroupDnsConfigArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.containerservice.kotlin.inputs

import com.pulumi.azure.containerservice.inputs.GroupDnsConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property nameservers A list of nameservers the containers will search out to resolve requests. Changing this forces a new resource to be created.
 * @property options A list of [resolver configuration options](https://man7.org/linux/man-pages/man5/resolv.conf.5.html). Changing this forces a new resource to be created.
 * @property searchDomains A list of search domains that DNS requests will search along. Changing this forces a new resource to be created.
 */
public data class GroupDnsConfigArgs(
    public val nameservers: Output>,
    public val options: Output>? = null,
    public val searchDomains: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.containerservice.inputs.GroupDnsConfigArgs =
        com.pulumi.azure.containerservice.inputs.GroupDnsConfigArgs.builder()
            .nameservers(nameservers.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .options(options?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .searchDomains(searchDomains?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var options: Output>? = null

    private var searchDomains: Output>? = null

    /**
     * @param value A list of nameservers the containers will search out to resolve requests. Changing this forces a new resource to be created.
     */
    @JvmName("sknscnupvuurggff")
    public suspend fun nameservers(`value`: Output>) {
        this.nameservers = value
    }

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

    /**
     * @param values A list of nameservers the containers will search out to resolve requests. Changing this forces a new resource to be created.
     */
    @JvmName("wgysyttwytgjkwvh")
    public suspend fun nameservers(values: List>) {
        this.nameservers = Output.all(values)
    }

    /**
     * @param value A list of [resolver configuration options](https://man7.org/linux/man-pages/man5/resolv.conf.5.html). Changing this forces a new resource to be created.
     */
    @JvmName("gihksrtifscbqwgv")
    public suspend fun options(`value`: Output>) {
        this.options = value
    }

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

    /**
     * @param values A list of [resolver configuration options](https://man7.org/linux/man-pages/man5/resolv.conf.5.html). Changing this forces a new resource to be created.
     */
    @JvmName("abkpulmqbgbjwvej")
    public suspend fun options(values: List>) {
        this.options = Output.all(values)
    }

    /**
     * @param value A list of search domains that DNS requests will search along. Changing this forces a new resource to be created.
     */
    @JvmName("vyvkooigpiejrwhm")
    public suspend fun searchDomains(`value`: Output>) {
        this.searchDomains = value
    }

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

    /**
     * @param values A list of search domains that DNS requests will search along. Changing this forces a new resource to be created.
     */
    @JvmName("dhmefenehiehdelo")
    public suspend fun searchDomains(values: List>) {
        this.searchDomains = Output.all(values)
    }

    /**
     * @param value A list of nameservers the containers will search out to resolve requests. Changing this forces a new resource to be created.
     */
    @JvmName("wxamkrqywderdbde")
    public suspend fun nameservers(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nameservers = mapped
    }

    /**
     * @param values A list of nameservers the containers will search out to resolve requests. Changing this forces a new resource to be created.
     */
    @JvmName("ihdbslkagytjtabg")
    public suspend fun nameservers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nameservers = mapped
    }

    /**
     * @param value A list of [resolver configuration options](https://man7.org/linux/man-pages/man5/resolv.conf.5.html). Changing this forces a new resource to be created.
     */
    @JvmName("nhcypxpvwkyfuwdb")
    public suspend fun options(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.options = mapped
    }

    /**
     * @param values A list of [resolver configuration options](https://man7.org/linux/man-pages/man5/resolv.conf.5.html). Changing this forces a new resource to be created.
     */
    @JvmName("uxeultukmyjridbv")
    public suspend fun options(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.options = mapped
    }

    /**
     * @param value A list of search domains that DNS requests will search along. Changing this forces a new resource to be created.
     */
    @JvmName("lcmopcngxvqwhaxi")
    public suspend fun searchDomains(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.searchDomains = mapped
    }

    /**
     * @param values A list of search domains that DNS requests will search along. Changing this forces a new resource to be created.
     */
    @JvmName("bkqybgwshgbjpvci")
    public suspend fun searchDomains(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.searchDomains = mapped
    }

    internal fun build(): GroupDnsConfigArgs = GroupDnsConfigArgs(
        nameservers = nameservers ?: throw PulumiNullFieldException("nameservers"),
        options = options,
        searchDomains = searchDomains,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy