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

com.pulumi.gcp.dns.kotlin.inputs.ResponsePolicyRuleLocalDataArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.dns.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dns.inputs.ResponsePolicyRuleLocalDataArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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 localDatas All resource record sets for this selector, one per resource record type. The name must match the dns_name.
 * Structure is documented below.
 */
public data class ResponsePolicyRuleLocalDataArgs(
    public val localDatas: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dns.inputs.ResponsePolicyRuleLocalDataArgs =
        com.pulumi.gcp.dns.inputs.ResponsePolicyRuleLocalDataArgs.builder()
            .localDatas(
                localDatas.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value All resource record sets for this selector, one per resource record type. The name must match the dns_name.
     * Structure is documented below.
     */
    @JvmName("aohgmqfulitnwarx")
    public suspend fun localDatas(`value`: Output>) {
        this.localDatas = value
    }

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

    /**
     * @param values All resource record sets for this selector, one per resource record type. The name must match the dns_name.
     * Structure is documented below.
     */
    @JvmName("bfcfsvwkcinfhebp")
    public suspend fun localDatas(values: List>) {
        this.localDatas = Output.all(values)
    }

    /**
     * @param value All resource record sets for this selector, one per resource record type. The name must match the dns_name.
     * Structure is documented below.
     */
    @JvmName("pfcveidmwkxqvbia")
    public suspend fun localDatas(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.localDatas = mapped
    }

    /**
     * @param argument All resource record sets for this selector, one per resource record type. The name must match the dns_name.
     * Structure is documented below.
     */
    @JvmName("clwblfldasnidoil")
    public suspend fun localDatas(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ResponsePolicyRuleLocalDataLocalDataArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.localDatas = mapped
    }

    /**
     * @param argument All resource record sets for this selector, one per resource record type. The name must match the dns_name.
     * Structure is documented below.
     */
    @JvmName("wdvucndmhyyfkdfr")
    public suspend fun localDatas(vararg argument: suspend ResponsePolicyRuleLocalDataLocalDataArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ResponsePolicyRuleLocalDataLocalDataArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.localDatas = mapped
    }

    /**
     * @param argument All resource record sets for this selector, one per resource record type. The name must match the dns_name.
     * Structure is documented below.
     */
    @JvmName("viwgsureicnqllyx")
    public suspend fun localDatas(argument: suspend ResponsePolicyRuleLocalDataLocalDataArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ResponsePolicyRuleLocalDataLocalDataArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.localDatas = mapped
    }

    /**
     * @param values All resource record sets for this selector, one per resource record type. The name must match the dns_name.
     * Structure is documented below.
     */
    @JvmName("myyeymprtkbwwiul")
    public suspend fun localDatas(vararg values: ResponsePolicyRuleLocalDataLocalDataArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.localDatas = mapped
    }

    internal fun build(): ResponsePolicyRuleLocalDataArgs = ResponsePolicyRuleLocalDataArgs(
        localDatas = localDatas ?: throw PulumiNullFieldException("localDatas"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy