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

com.pulumi.awsnative.emrcontainers.kotlin.VirtualClusterArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.emrcontainers.kotlin

import com.pulumi.awsnative.emrcontainers.VirtualClusterArgs.builder
import com.pulumi.awsnative.emrcontainers.kotlin.inputs.VirtualClusterContainerProviderArgs
import com.pulumi.awsnative.emrcontainers.kotlin.inputs.VirtualClusterContainerProviderArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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

/**
 * Resource Schema of AWS::EMRContainers::VirtualCluster Type
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property containerProvider Container provider of the virtual cluster.
 * @property name Name of the virtual cluster.
 * @property tags An array of key-value pairs to apply to this virtual cluster.
 */
public data class VirtualClusterArgs(
    public val containerProvider: Output? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.emrcontainers.VirtualClusterArgs =
        com.pulumi.awsnative.emrcontainers.VirtualClusterArgs.builder()
            .containerProvider(containerProvider?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [VirtualClusterArgs].
 */
@PulumiTagMarker
public class VirtualClusterArgsBuilder internal constructor() {
    private var containerProvider: Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Container provider of the virtual cluster.
     */
    @JvmName("sdoctjebcrgfecgl")
    public suspend fun containerProvider(`value`: Output) {
        this.containerProvider = value
    }

    /**
     * @param value Name of the virtual cluster.
     */
    @JvmName("sxrvdbitcfmfihan")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value An array of key-value pairs to apply to this virtual cluster.
     */
    @JvmName("pknnqithrdeitlmk")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An array of key-value pairs to apply to this virtual cluster.
     */
    @JvmName("hygpeppardaedflq")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Container provider of the virtual cluster.
     */
    @JvmName("taxogacxrmibrjvx")
    public suspend fun containerProvider(`value`: VirtualClusterContainerProviderArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containerProvider = mapped
    }

    /**
     * @param argument Container provider of the virtual cluster.
     */
    @JvmName("xwmnoiyyrdkwmsnm")
    public suspend fun containerProvider(argument: suspend VirtualClusterContainerProviderArgsBuilder.() -> Unit) {
        val toBeMapped = VirtualClusterContainerProviderArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.containerProvider = mapped
    }

    /**
     * @param value Name of the virtual cluster.
     */
    @JvmName("tpxbnxrxwntgmjhk")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this virtual cluster.
     */
    @JvmName("xfgykjmgbqoseuvl")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this virtual cluster.
     */
    @JvmName("lsagocscqcfruxrb")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this virtual cluster.
     */
    @JvmName("dfgukwvvodsylylo")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this virtual cluster.
     */
    @JvmName("lhhfxjetiqunbnhu")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this virtual cluster.
     */
    @JvmName("qraiaysohwpcupsg")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): VirtualClusterArgs = VirtualClusterArgs(
        containerProvider = containerProvider,
        name = name,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy