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

com.pulumi.kubernetes.resource.v1alpha2.kotlin.inputs.NamedResourcesResourcesArgs.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: 4.18.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.resource.v1alpha2.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesResourcesArgs.builder
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * NamedResourcesResources is used in ResourceModel.
 * @property instances The list of all individual resources instances currently available.
 */
public data class NamedResourcesResourcesArgs(
    public val instances: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesResourcesArgs = com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesResourcesArgs.builder()
        .instances(
            instances.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        ).build()
}

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

    /**
     * @param value The list of all individual resources instances currently available.
     */
    @JvmName("jmtdtxqjhfhrkhmj")
    public suspend fun instances(`value`: Output>) {
        this.instances = value
    }

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

    /**
     * @param values The list of all individual resources instances currently available.
     */
    @JvmName("uskgkqmagsmvqgfy")
    public suspend fun instances(values: List>) {
        this.instances = Output.all(values)
    }

    /**
     * @param value The list of all individual resources instances currently available.
     */
    @JvmName("tpjnaauwhsmdrbgf")
    public suspend fun instances(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.instances = mapped
    }

    /**
     * @param argument The list of all individual resources instances currently available.
     */
    @JvmName("gtnjetpaelsdksri")
    public suspend fun instances(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            NamedResourcesInstanceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.instances = mapped
    }

    /**
     * @param argument The list of all individual resources instances currently available.
     */
    @JvmName("qytanhyktpprngdr")
    public suspend fun instances(vararg argument: suspend NamedResourcesInstanceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            NamedResourcesInstanceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.instances = mapped
    }

    /**
     * @param argument The list of all individual resources instances currently available.
     */
    @JvmName("gfxtoltbgmkwudfk")
    public suspend fun instances(argument: suspend NamedResourcesInstanceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(NamedResourcesInstanceArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.instances = mapped
    }

    /**
     * @param values The list of all individual resources instances currently available.
     */
    @JvmName("torvlwhlkfkojuih")
    public suspend fun instances(vararg values: NamedResourcesInstanceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.instances = mapped
    }

    internal fun build(): NamedResourcesResourcesArgs = NamedResourcesResourcesArgs(
        instances = instances ?: throw PulumiNullFieldException("instances"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy