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

com.pulumi.kubernetes.resource.v1alpha2.kotlin.inputs.NamedResourcesResourcesPatchArgs.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.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.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesResourcesPatchArgs.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 NamedResourcesResourcesPatchArgs(
    public val instances: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesResourcesPatchArgs =
        com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesResourcesPatchArgs.builder()
            .instances(
                instances?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

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

    @JvmName("klvggjwxmaapihte")
    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("bxrdhsqyxngfwsap")
    public suspend fun instances(values: List>) {
        this.instances = Output.all(values)
    }

    /**
     * @param value The list of all individual resources instances currently available.
     */
    @JvmName("xtiyrwaormtimiou")
    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("snpquescqqektmrr")
    public suspend fun instances(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            NamedResourcesInstancePatchArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.instances = mapped
    }

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

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

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

    internal fun build(): NamedResourcesResourcesPatchArgs = NamedResourcesResourcesPatchArgs(
        instances = instances,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy