com.pulumi.cloudflare.kotlin.inputs.ZeroTrustGatewayPolicyRuleSettingsDnsResolversIpv4Args.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.ZeroTrustGatewayPolicyRuleSettingsDnsResolversIpv4Args.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.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property ip The IPv4 or IPv6 address of the upstream resolver.
* @property port A port number to use for the upstream resolver. Defaults to `53`.
* @property routeThroughPrivateNetwork Whether to connect to this resolver over a private network. Must be set when `vnet_id` is set.
* @property vnetId specify a virtual network for this resolver. Uses default virtual network id if omitted.
*/
public data class ZeroTrustGatewayPolicyRuleSettingsDnsResolversIpv4Args(
public val ip: Output,
public val port: Output? = null,
public val routeThroughPrivateNetwork: Output? = null,
public val vnetId: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.ZeroTrustGatewayPolicyRuleSettingsDnsResolversIpv4Args =
com.pulumi.cloudflare.inputs.ZeroTrustGatewayPolicyRuleSettingsDnsResolversIpv4Args.builder()
.ip(ip.applyValue({ args0 -> args0 }))
.port(port?.applyValue({ args0 -> args0 }))
.routeThroughPrivateNetwork(routeThroughPrivateNetwork?.applyValue({ args0 -> args0 }))
.vnetId(vnetId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ZeroTrustGatewayPolicyRuleSettingsDnsResolversIpv4Args].
*/
@PulumiTagMarker
public class ZeroTrustGatewayPolicyRuleSettingsDnsResolversIpv4ArgsBuilder internal constructor() {
private var ip: Output? = null
private var port: Output? = null
private var routeThroughPrivateNetwork: Output? = null
private var vnetId: Output? = null
/**
* @param value The IPv4 or IPv6 address of the upstream resolver.
*/
@JvmName("jqpusjvmkfqxtsor")
public suspend fun ip(`value`: Output) {
this.ip = value
}
/**
* @param value A port number to use for the upstream resolver. Defaults to `53`.
*/
@JvmName("ckusigfndnanvdbt")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value Whether to connect to this resolver over a private network. Must be set when `vnet_id` is set.
*/
@JvmName("steuslevksoiifaa")
public suspend fun routeThroughPrivateNetwork(`value`: Output) {
this.routeThroughPrivateNetwork = value
}
/**
* @param value specify a virtual network for this resolver. Uses default virtual network id if omitted.
*/
@JvmName("xeionaewalwviyjj")
public suspend fun vnetId(`value`: Output) {
this.vnetId = value
}
/**
* @param value The IPv4 or IPv6 address of the upstream resolver.
*/
@JvmName("elbgdinhsmifmksl")
public suspend fun ip(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.ip = mapped
}
/**
* @param value A port number to use for the upstream resolver. Defaults to `53`.
*/
@JvmName("vqnoewcbxiusuygr")
public suspend fun port(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.port = mapped
}
/**
* @param value Whether to connect to this resolver over a private network. Must be set when `vnet_id` is set.
*/
@JvmName("hygtmevgawjxcgfh")
public suspend fun routeThroughPrivateNetwork(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.routeThroughPrivateNetwork = mapped
}
/**
* @param value specify a virtual network for this resolver. Uses default virtual network id if omitted.
*/
@JvmName("dqilvswjdrrriwoq")
public suspend fun vnetId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.vnetId = mapped
}
internal fun build(): ZeroTrustGatewayPolicyRuleSettingsDnsResolversIpv4Args =
ZeroTrustGatewayPolicyRuleSettingsDnsResolversIpv4Args(
ip = ip ?: throw PulumiNullFieldException("ip"),
port = port,
routeThroughPrivateNetwork = routeThroughPrivateNetwork,
vnetId = vnetId,
)
}