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

com.pulumi.aws.emrcontainers.kotlin.inputs.GetVirtualClusterPlainArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.emrcontainers.kotlin.inputs

import com.pulumi.aws.emrcontainers.inputs.GetVirtualClusterPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getVirtualCluster.
 * @property tags Key-value mapping of resource tags.
 * @property virtualClusterId ID of the cluster.
 */
public data class GetVirtualClusterPlainArgs(
    public val tags: Map? = null,
    public val virtualClusterId: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.emrcontainers.inputs.GetVirtualClusterPlainArgs =
        com.pulumi.aws.emrcontainers.inputs.GetVirtualClusterPlainArgs.builder()
            .tags(tags?.let({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .virtualClusterId(virtualClusterId.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetVirtualClusterPlainArgs].
 */
@PulumiTagMarker
public class GetVirtualClusterPlainArgsBuilder internal constructor() {
    private var tags: Map? = null

    private var virtualClusterId: String? = null

    /**
     * @param value Key-value mapping of resource tags.
     */
    @JvmName("knanyocwyswnknmj")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.tags = mapped
    }

    /**
     * @param values Key-value mapping of resource tags.
     */
    @JvmName("exaehyedaucbdefi")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.tags = mapped
    }

    /**
     * @param value ID of the cluster.
     */
    @JvmName("tnhqukxqcbjcegkr")
    public suspend fun virtualClusterId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.virtualClusterId = mapped
    }

    internal fun build(): GetVirtualClusterPlainArgs = GetVirtualClusterPlainArgs(
        tags = tags,
        virtualClusterId = virtualClusterId ?: throw PulumiNullFieldException("virtualClusterId"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy