com.pulumi.cloudflare.kotlin.outputs.TeamsRuleRuleSettingsDnsResolversIpv4.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.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @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 TeamsRuleRuleSettingsDnsResolversIpv4(
public val ip: String,
public val port: Int? = null,
public val routeThroughPrivateNetwork: Boolean? = null,
public val vnetId: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.cloudflare.outputs.TeamsRuleRuleSettingsDnsResolversIpv4): TeamsRuleRuleSettingsDnsResolversIpv4 = TeamsRuleRuleSettingsDnsResolversIpv4(
ip = javaType.ip(),
port = javaType.port().map({ args0 -> args0 }).orElse(null),
routeThroughPrivateNetwork = javaType.routeThroughPrivateNetwork().map({ args0 ->
args0
}).orElse(null),
vnetId = javaType.vnetId().map({ args0 -> args0 }).orElse(null),
)
}
}