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

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

import com.pulumi.cloudflare.ZeroTrustLocalFallbackDomainArgs.builder
import com.pulumi.cloudflare.kotlin.inputs.ZeroTrustLocalFallbackDomainDomainArgs
import com.pulumi.cloudflare.kotlin.inputs.ZeroTrustLocalFallbackDomainDomainArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Provides a Cloudflare Fallback Domain resource. Fallback domains are
 * used to ignore DNS requests to a given list of domains. These DNS
 * requests will be passed back to other DNS servers configured on
 * existing network interfaces on the device.
 * @property accountId The account identifier to target for the resource.
 * @property domains
 * @property policyId The settings policy for which to configure this fallback domain policy.
 */
public data class ZeroTrustLocalFallbackDomainArgs(
    public val accountId: Output? = null,
    public val domains: Output>? = null,
    public val policyId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.ZeroTrustLocalFallbackDomainArgs =
        com.pulumi.cloudflare.ZeroTrustLocalFallbackDomainArgs.builder()
            .accountId(accountId?.applyValue({ args0 -> args0 }))
            .domains(
                domains?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .policyId(policyId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ZeroTrustLocalFallbackDomainArgs].
 */
@PulumiTagMarker
public class ZeroTrustLocalFallbackDomainArgsBuilder internal constructor() {
    private var accountId: Output? = null

    private var domains: Output>? = null

    private var policyId: Output? = null

    /**
     * @param value The account identifier to target for the resource.
     */
    @JvmName("lxttdcphftabmpou")
    public suspend fun accountId(`value`: Output) {
        this.accountId = value
    }

    /**
     * @param value
     */
    @JvmName("mtojetsvchjacedf")
    public suspend fun domains(`value`: Output>) {
        this.domains = value
    }

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

    /**
     * @param values
     */
    @JvmName("oylwcmjvgfrhkglj")
    public suspend fun domains(values: List>) {
        this.domains = Output.all(values)
    }

    /**
     * @param value The settings policy for which to configure this fallback domain policy.
     */
    @JvmName("ryblemduxntjyssm")
    public suspend fun policyId(`value`: Output) {
        this.policyId = value
    }

    /**
     * @param value The account identifier to target for the resource.
     */
    @JvmName("qwpsxmstxsdjckxs")
    public suspend fun accountId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountId = mapped
    }

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

    /**
     * @param argument
     */
    @JvmName("xuvbewbhwwmmyoiw")
    public suspend fun domains(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ZeroTrustLocalFallbackDomainDomainArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.domains = mapped
    }

    /**
     * @param argument
     */
    @JvmName("juodvgoxggetpghr")
    public suspend fun domains(vararg argument: suspend ZeroTrustLocalFallbackDomainDomainArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ZeroTrustLocalFallbackDomainDomainArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.domains = mapped
    }

    /**
     * @param argument
     */
    @JvmName("prynqkigdgpmefwh")
    public suspend fun domains(argument: suspend ZeroTrustLocalFallbackDomainDomainArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ZeroTrustLocalFallbackDomainDomainArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.domains = mapped
    }

    /**
     * @param values
     */
    @JvmName("bogtgqipfpsegoqa")
    public suspend fun domains(vararg values: ZeroTrustLocalFallbackDomainDomainArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.domains = mapped
    }

    /**
     * @param value The settings policy for which to configure this fallback domain policy.
     */
    @JvmName("cbqfvdkklyugxbqi")
    public suspend fun policyId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policyId = mapped
    }

    internal fun build(): ZeroTrustLocalFallbackDomainArgs = ZeroTrustLocalFallbackDomainArgs(
        accountId = accountId,
        domains = domains,
        policyId = policyId,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy