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