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

com.pulumi.gcp.container.kotlin.inputs.ClusterNodeConfigSoleTenantConfigArgs.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.container.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.ClusterNodeConfigSoleTenantConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property nodeAffinities .
 */
public data class ClusterNodeConfigSoleTenantConfigArgs(
    public val nodeAffinities: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.ClusterNodeConfigSoleTenantConfigArgs =
        com.pulumi.gcp.container.inputs.ClusterNodeConfigSoleTenantConfigArgs.builder()
            .nodeAffinities(
                nodeAffinities.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value .
     */
    @JvmName("dbltyxpfeavgxqxo")
    public suspend fun nodeAffinities(`value`: Output>) {
        this.nodeAffinities = value
    }

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

    /**
     * @param values .
     */
    @JvmName("imyyyrlrppsootoh")
    public suspend fun nodeAffinities(values: List>) {
        this.nodeAffinities = Output.all(values)
    }

    /**
     * @param value .
     */
    @JvmName("keiftpglqnrihdxs")
    public suspend fun nodeAffinities(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nodeAffinities = mapped
    }

    /**
     * @param argument .
     */
    @JvmName("tgaxavdaseynbinl")
    public suspend fun nodeAffinities(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ClusterNodeConfigSoleTenantConfigNodeAffinityArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.nodeAffinities = mapped
    }

    /**
     * @param argument .
     */
    @JvmName("wnqvhsqmvhrwnhnh")
    public suspend fun nodeAffinities(vararg argument: suspend ClusterNodeConfigSoleTenantConfigNodeAffinityArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ClusterNodeConfigSoleTenantConfigNodeAffinityArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.nodeAffinities = mapped
    }

    /**
     * @param argument .
     */
    @JvmName("spcyjamyqbhkjcyv")
    public suspend fun nodeAffinities(argument: suspend ClusterNodeConfigSoleTenantConfigNodeAffinityArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ClusterNodeConfigSoleTenantConfigNodeAffinityArgsBuilder().applySuspend
                { argument() }.build(),
        )
        val mapped = of(toBeMapped)
        this.nodeAffinities = mapped
    }

    /**
     * @param values .
     */
    @JvmName("pvwxodxtmkxndljf")
    public suspend fun nodeAffinities(vararg values: ClusterNodeConfigSoleTenantConfigNodeAffinityArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nodeAffinities = mapped
    }

    internal fun build(): ClusterNodeConfigSoleTenantConfigArgs =
        ClusterNodeConfigSoleTenantConfigArgs(
            nodeAffinities = nodeAffinities ?: throw PulumiNullFieldException("nodeAffinities"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy