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

com.pulumi.gcp.dataproc.kotlin.inputs.ClusterClusterConfigGceClusterConfigReservationAffinityArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.dataproc.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigGceClusterConfigReservationAffinityArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property consumeReservationType Corresponds to the type of reservation consumption.
 * @property key Corresponds to the label key of reservation resource.
 * @property values Corresponds to the label values of reservation resource.
 */
public data class ClusterClusterConfigGceClusterConfigReservationAffinityArgs(
    public val consumeReservationType: Output? = null,
    public val key: Output? = null,
    public val values: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigGceClusterConfigReservationAffinityArgs =
        com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigGceClusterConfigReservationAffinityArgs.builder()
            .consumeReservationType(consumeReservationType?.applyValue({ args0 -> args0 }))
            .key(key?.applyValue({ args0 -> args0 }))
            .values(values?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ClusterClusterConfigGceClusterConfigReservationAffinityArgs].
 */
@PulumiTagMarker
public class ClusterClusterConfigGceClusterConfigReservationAffinityArgsBuilder internal constructor() {
    private var consumeReservationType: Output? = null

    private var key: Output? = null

    private var values: Output>? = null

    /**
     * @param value Corresponds to the type of reservation consumption.
     */
    @JvmName("hukvfwrfosfiacum")
    public suspend fun consumeReservationType(`value`: Output) {
        this.consumeReservationType = value
    }

    /**
     * @param value Corresponds to the label key of reservation resource.
     */
    @JvmName("shrdgvmkfucppcbf")
    public suspend fun key(`value`: Output) {
        this.key = value
    }

    /**
     * @param value Corresponds to the label values of reservation resource.
     */
    @JvmName("mumsnwsnlviaoprw")
    public suspend fun values(`value`: Output>) {
        this.values = value
    }

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

    /**
     * @param values Corresponds to the label values of reservation resource.
     */
    @JvmName("clfiuwhrgurnjpit")
    public suspend fun values(values: List>) {
        this.values = Output.all(values)
    }

    /**
     * @param value Corresponds to the type of reservation consumption.
     */
    @JvmName("clrfsarnmkwmsqct")
    public suspend fun consumeReservationType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.consumeReservationType = mapped
    }

    /**
     * @param value Corresponds to the label key of reservation resource.
     */
    @JvmName("qixbmattsqmmchak")
    public suspend fun key(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.key = mapped
    }

    /**
     * @param value Corresponds to the label values of reservation resource.
     */
    @JvmName("tbiloalapsahdmlj")
    public suspend fun values(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.values = mapped
    }

    /**
     * @param values Corresponds to the label values of reservation resource.
     */
    @JvmName("bcylfcmahsptsxro")
    public suspend fun values(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.values = mapped
    }

    internal fun build(): ClusterClusterConfigGceClusterConfigReservationAffinityArgs =
        ClusterClusterConfigGceClusterConfigReservationAffinityArgs(
            consumeReservationType = consumeReservationType,
            key = key,
            values = values,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy