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

com.pulumi.azurenative.cloudngfw.kotlin.inputs.DNSSettingsArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.cloudngfw.kotlin.inputs

import com.pulumi.azurenative.cloudngfw.inputs.DNSSettingsArgs.builder
import com.pulumi.azurenative.cloudngfw.kotlin.enums.DNSProxy
import com.pulumi.azurenative.cloudngfw.kotlin.enums.EnabledDNSType
import com.pulumi.core.Either
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * DNS Proxy settings for Firewall
 * @property dnsServers List of IPs associated with the Firewall
 * @property enableDnsProxy Enable DNS proxy, disabled by default
 * @property enabledDnsType Enabled DNS proxy type, disabled by default
 */
public data class DNSSettingsArgs(
    public val dnsServers: Output>? = null,
    public val enableDnsProxy: Output>? = null,
    public val enabledDnsType: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.cloudngfw.inputs.DNSSettingsArgs =
        com.pulumi.azurenative.cloudngfw.inputs.DNSSettingsArgs.builder()
            .dnsServers(
                dnsServers?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .enableDnsProxy(
                enableDnsProxy?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .enabledDnsType(
                enabledDnsType?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

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

    private var enableDnsProxy: Output>? = null

    private var enabledDnsType: Output>? = null

    /**
     * @param value List of IPs associated with the Firewall
     */
    @JvmName("obwvfqtjjrdxlgqq")
    public suspend fun dnsServers(`value`: Output>) {
        this.dnsServers = value
    }

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

    /**
     * @param values List of IPs associated with the Firewall
     */
    @JvmName("sdfhtkkydwivsyxg")
    public suspend fun dnsServers(values: List>) {
        this.dnsServers = Output.all(values)
    }

    /**
     * @param value Enable DNS proxy, disabled by default
     */
    @JvmName("jyvcuvfyuwsumhut")
    public suspend fun enableDnsProxy(`value`: Output>) {
        this.enableDnsProxy = value
    }

    /**
     * @param value Enabled DNS proxy type, disabled by default
     */
    @JvmName("kdcawxltyqjqkkqa")
    public suspend fun enabledDnsType(`value`: Output>) {
        this.enabledDnsType = value
    }

    /**
     * @param value List of IPs associated with the Firewall
     */
    @JvmName("gjppflwsfauqwjvm")
    public suspend fun dnsServers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dnsServers = mapped
    }

    /**
     * @param argument List of IPs associated with the Firewall
     */
    @JvmName("vugvrcluuqfdjguo")
    public suspend fun dnsServers(argument: List Unit>) {
        val toBeMapped = argument.toList().map { IPAddressArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.dnsServers = mapped
    }

    /**
     * @param argument List of IPs associated with the Firewall
     */
    @JvmName("kvpggpoiiljkelgo")
    public suspend fun dnsServers(vararg argument: suspend IPAddressArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { IPAddressArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.dnsServers = mapped
    }

    /**
     * @param argument List of IPs associated with the Firewall
     */
    @JvmName("vhticotfoidvmaia")
    public suspend fun dnsServers(argument: suspend IPAddressArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(IPAddressArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.dnsServers = mapped
    }

    /**
     * @param values List of IPs associated with the Firewall
     */
    @JvmName("ronuxcjhomnjrrmb")
    public suspend fun dnsServers(vararg values: IPAddressArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dnsServers = mapped
    }

    /**
     * @param value Enable DNS proxy, disabled by default
     */
    @JvmName("pjuvhjbdtqspdesi")
    public suspend fun enableDnsProxy(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableDnsProxy = mapped
    }

    /**
     * @param value Enable DNS proxy, disabled by default
     */
    @JvmName("fslshsimllsdwqtn")
    public fun enableDnsProxy(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enableDnsProxy = mapped
    }

    /**
     * @param value Enable DNS proxy, disabled by default
     */
    @JvmName("iypmfdbcuwanxmly")
    public fun enableDnsProxy(`value`: DNSProxy) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enableDnsProxy = mapped
    }

    /**
     * @param value Enabled DNS proxy type, disabled by default
     */
    @JvmName("iljmabyvpwlktucr")
    public suspend fun enabledDnsType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabledDnsType = mapped
    }

    /**
     * @param value Enabled DNS proxy type, disabled by default
     */
    @JvmName("gnulhkmnbixjlpli")
    public fun enabledDnsType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enabledDnsType = mapped
    }

    /**
     * @param value Enabled DNS proxy type, disabled by default
     */
    @JvmName("kdkhsjxyfdfatbtm")
    public fun enabledDnsType(`value`: EnabledDNSType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enabledDnsType = mapped
    }

    internal fun build(): DNSSettingsArgs = DNSSettingsArgs(
        dnsServers = dnsServers,
        enableDnsProxy = enableDnsProxy,
        enabledDnsType = enabledDnsType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy