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

com.pulumi.cloudflare.kotlin.inputs.ZeroTrustGatewayPolicyRuleSettingsDnsResolversArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.ZeroTrustGatewayPolicyRuleSettingsDnsResolversArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property ipv4s IPv4 resolvers.
 * @property ipv6s IPv6 resolvers.
 */
public data class ZeroTrustGatewayPolicyRuleSettingsDnsResolversArgs(
    public val ipv4s: Output>? = null,
    public val ipv6s: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.ZeroTrustGatewayPolicyRuleSettingsDnsResolversArgs =
        com.pulumi.cloudflare.inputs.ZeroTrustGatewayPolicyRuleSettingsDnsResolversArgs.builder()
            .ipv4s(ipv4s?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .ipv6s(
                ipv6s?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ZeroTrustGatewayPolicyRuleSettingsDnsResolversArgs].
 */
@PulumiTagMarker
public class ZeroTrustGatewayPolicyRuleSettingsDnsResolversArgsBuilder internal constructor() {
    private var ipv4s: Output>? = null

    private var ipv6s: Output>? = null

    /**
     * @param value IPv4 resolvers.
     */
    @JvmName("penmfpybobymjfhs")
    public suspend fun ipv4s(`value`: Output>) {
        this.ipv4s = value
    }

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

    /**
     * @param values IPv4 resolvers.
     */
    @JvmName("wuqfufjvsllvislt")
    public suspend fun ipv4s(values: List>) {
        this.ipv4s = Output.all(values)
    }

    /**
     * @param value IPv6 resolvers.
     */
    @JvmName("eubktwxfflddbuni")
    public suspend fun ipv6s(`value`: Output>) {
        this.ipv6s = value
    }

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

    /**
     * @param values IPv6 resolvers.
     */
    @JvmName("dvnylxcfqotjvxbh")
    public suspend fun ipv6s(values: List>) {
        this.ipv6s = Output.all(values)
    }

    /**
     * @param value IPv4 resolvers.
     */
    @JvmName("vcivbbrdbuthcdnp")
    public suspend fun ipv4s(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipv4s = mapped
    }

    /**
     * @param argument IPv4 resolvers.
     */
    @JvmName("giuvyhorwcuarkeh")
    public suspend fun ipv4s(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ZeroTrustGatewayPolicyRuleSettingsDnsResolversIpv4ArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipv4s = mapped
    }

    /**
     * @param argument IPv4 resolvers.
     */
    @JvmName("tqxtkymicsuklxql")
    public suspend fun ipv4s(vararg argument: suspend ZeroTrustGatewayPolicyRuleSettingsDnsResolversIpv4ArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ZeroTrustGatewayPolicyRuleSettingsDnsResolversIpv4ArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipv4s = mapped
    }

    /**
     * @param argument IPv4 resolvers.
     */
    @JvmName("scythuhyvsxkvtye")
    public suspend fun ipv4s(argument: suspend ZeroTrustGatewayPolicyRuleSettingsDnsResolversIpv4ArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ZeroTrustGatewayPolicyRuleSettingsDnsResolversIpv4ArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.ipv4s = mapped
    }

    /**
     * @param values IPv4 resolvers.
     */
    @JvmName("yqndygpevepvjgph")
    public suspend fun ipv4s(vararg values: ZeroTrustGatewayPolicyRuleSettingsDnsResolversIpv4Args) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipv4s = mapped
    }

    /**
     * @param value IPv6 resolvers.
     */
    @JvmName("bclghplctfjdyqsc")
    public suspend fun ipv6s(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipv6s = mapped
    }

    /**
     * @param argument IPv6 resolvers.
     */
    @JvmName("yqcbxkmrdncmudjy")
    public suspend fun ipv6s(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ZeroTrustGatewayPolicyRuleSettingsDnsResolversIpv6ArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipv6s = mapped
    }

    /**
     * @param argument IPv6 resolvers.
     */
    @JvmName("xaxolpuaavaadyyr")
    public suspend fun ipv6s(vararg argument: suspend ZeroTrustGatewayPolicyRuleSettingsDnsResolversIpv6ArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ZeroTrustGatewayPolicyRuleSettingsDnsResolversIpv6ArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipv6s = mapped
    }

    /**
     * @param argument IPv6 resolvers.
     */
    @JvmName("xqgpmlofkhvetfta")
    public suspend fun ipv6s(argument: suspend ZeroTrustGatewayPolicyRuleSettingsDnsResolversIpv6ArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ZeroTrustGatewayPolicyRuleSettingsDnsResolversIpv6ArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.ipv6s = mapped
    }

    /**
     * @param values IPv6 resolvers.
     */
    @JvmName("tobvuyfulpabdpmm")
    public suspend fun ipv6s(vararg values: ZeroTrustGatewayPolicyRuleSettingsDnsResolversIpv6Args) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipv6s = mapped
    }

    internal fun build(): ZeroTrustGatewayPolicyRuleSettingsDnsResolversArgs =
        ZeroTrustGatewayPolicyRuleSettingsDnsResolversArgs(
            ipv4s = ipv4s,
            ipv6s = ipv6s,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy