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

com.pulumi.azure.network.kotlin.inputs.FirewallPolicyDnsArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.network.kotlin.inputs

import com.pulumi.azure.network.inputs.FirewallPolicyDnsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property proxyEnabled Whether to enable DNS proxy on Firewalls attached to this Firewall Policy? Defaults to `false`.
 * @property servers A list of custom DNS servers' IP addresses.
 */
public data class FirewallPolicyDnsArgs(
    public val proxyEnabled: Output? = null,
    public val servers: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.inputs.FirewallPolicyDnsArgs =
        com.pulumi.azure.network.inputs.FirewallPolicyDnsArgs.builder()
            .proxyEnabled(proxyEnabled?.applyValue({ args0 -> args0 }))
            .servers(servers?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [FirewallPolicyDnsArgs].
 */
@PulumiTagMarker
public class FirewallPolicyDnsArgsBuilder internal constructor() {
    private var proxyEnabled: Output? = null

    private var servers: Output>? = null

    /**
     * @param value Whether to enable DNS proxy on Firewalls attached to this Firewall Policy? Defaults to `false`.
     */
    @JvmName("hykpygubrvlkmfun")
    public suspend fun proxyEnabled(`value`: Output) {
        this.proxyEnabled = value
    }

    /**
     * @param value A list of custom DNS servers' IP addresses.
     */
    @JvmName("psvamscopckdywqa")
    public suspend fun servers(`value`: Output>) {
        this.servers = value
    }

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

    /**
     * @param values A list of custom DNS servers' IP addresses.
     */
    @JvmName("qjystmttbxftwoeo")
    public suspend fun servers(values: List>) {
        this.servers = Output.all(values)
    }

    /**
     * @param value Whether to enable DNS proxy on Firewalls attached to this Firewall Policy? Defaults to `false`.
     */
    @JvmName("fttgcdgjfceqwpyu")
    public suspend fun proxyEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.proxyEnabled = mapped
    }

    /**
     * @param value A list of custom DNS servers' IP addresses.
     */
    @JvmName("bslsqohmhkmevhwi")
    public suspend fun servers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.servers = mapped
    }

    /**
     * @param values A list of custom DNS servers' IP addresses.
     */
    @JvmName("gcfyjmjrtanmcqgh")
    public suspend fun servers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.servers = mapped
    }

    internal fun build(): FirewallPolicyDnsArgs = FirewallPolicyDnsArgs(
        proxyEnabled = proxyEnabled,
        servers = servers,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy