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

com.pulumi.azurenative.network.kotlin.inputs.GetDnsResourceReferenceByTarResourcesPlainArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.network.kotlin.inputs

import com.pulumi.azurenative.network.inputs.GetDnsResourceReferenceByTarResourcesPlainArgs.builder
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 targetResources A list of references to azure resources for which referencing dns records need to be queried.
 */
public data class GetDnsResourceReferenceByTarResourcesPlainArgs(
    public val targetResources: List? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.inputs.GetDnsResourceReferenceByTarResourcesPlainArgs =
        com.pulumi.azurenative.network.inputs.GetDnsResourceReferenceByTarResourcesPlainArgs.builder()
            .targetResources(
                targetResources?.let({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [GetDnsResourceReferenceByTarResourcesPlainArgs].
 */
@PulumiTagMarker
public class GetDnsResourceReferenceByTarResourcesPlainArgsBuilder internal constructor() {
    private var targetResources: List? = null

    /**
     * @param value A list of references to azure resources for which referencing dns records need to be queried.
     */
    @JvmName("riqeyauhgnsvpxmu")
    public suspend fun targetResources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.targetResources = mapped
    }

    /**
     * @param argument A list of references to azure resources for which referencing dns records need to be queried.
     */
    @JvmName("epyqwpgyfadagotb")
    public suspend fun targetResources(argument: List Unit>) {
        val toBeMapped = argument.toList().map { SubResourceBuilder().applySuspend { it() }.build() }
        val mapped = toBeMapped
        this.targetResources = mapped
    }

    /**
     * @param argument A list of references to azure resources for which referencing dns records need to be queried.
     */
    @JvmName("imigulymaxxwnyko")
    public suspend fun targetResources(vararg argument: suspend SubResourceBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { SubResourceBuilder().applySuspend { it() }.build() }
        val mapped = toBeMapped
        this.targetResources = mapped
    }

    /**
     * @param argument A list of references to azure resources for which referencing dns records need to be queried.
     */
    @JvmName("gtowwxurqkfuiglj")
    public suspend fun targetResources(argument: suspend SubResourceBuilder.() -> Unit) {
        val toBeMapped = listOf(SubResourceBuilder().applySuspend { argument() }.build())
        val mapped = toBeMapped
        this.targetResources = mapped
    }

    /**
     * @param values A list of references to azure resources for which referencing dns records need to be queried.
     */
    @JvmName("ilbndrbqfnqtjdnc")
    public suspend fun targetResources(vararg values: SubResource) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.targetResources = mapped
    }

    internal fun build(): GetDnsResourceReferenceByTarResourcesPlainArgs =
        GetDnsResourceReferenceByTarResourcesPlainArgs(
            targetResources = targetResources,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy