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

com.pulumi.cloudflare.kotlin.outputs.TeamsRuleRuleSettingsDnsResolversIpv4.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: 5.40.0.0
Show newest version
@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),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy