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

com.pulumi.gcp.dataproc.kotlin.inputs.ClusterClusterConfigAuxiliaryNodeGroupNodeGroupArgs.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.ClusterClusterConfigAuxiliaryNodeGroupNodeGroupArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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

/**
 *
 * @property name The Node group resource name.
 * @property nodeGroupConfig The node group instance group configuration.
 * @property roles Node group roles.
 * One of `"DRIVER"`.
 */
public data class ClusterClusterConfigAuxiliaryNodeGroupNodeGroupArgs(
    public val name: Output? = null,
    public val nodeGroupConfig: Output? = null,
    public val roles: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigAuxiliaryNodeGroupNodeGroupArgs =
        com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigAuxiliaryNodeGroupNodeGroupArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .nodeGroupConfig(nodeGroupConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .roles(roles.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ClusterClusterConfigAuxiliaryNodeGroupNodeGroupArgs].
 */
@PulumiTagMarker
public class ClusterClusterConfigAuxiliaryNodeGroupNodeGroupArgsBuilder internal constructor() {
    private var name: Output? = null

    private var nodeGroupConfig:
        Output? = null

    private var roles: Output>? = null

    /**
     * @param value The Node group resource name.
     */
    @JvmName("rilnhibdgawhgbey")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The node group instance group configuration.
     */
    @JvmName("pxfrysutggegcybd")
    public suspend fun nodeGroupConfig(`value`: Output) {
        this.nodeGroupConfig = value
    }

    /**
     * @param value Node group roles.
     * One of `"DRIVER"`.
     */
    @JvmName("tqdexpevqbusynro")
    public suspend fun roles(`value`: Output>) {
        this.roles = value
    }

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

    /**
     * @param values Node group roles.
     * One of `"DRIVER"`.
     */
    @JvmName("lyxiwnyolwhkmwhg")
    public suspend fun roles(values: List>) {
        this.roles = Output.all(values)
    }

    /**
     * @param value The Node group resource name.
     */
    @JvmName("msycobxklqvqnwsi")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The node group instance group configuration.
     */
    @JvmName("fafbexdtlxldqdib")
    public suspend fun nodeGroupConfig(`value`: ClusterClusterConfigAuxiliaryNodeGroupNodeGroupNodeGroupConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeGroupConfig = mapped
    }

    /**
     * @param argument The node group instance group configuration.
     */
    @JvmName("uqxniagvebcmmxbc")
    public suspend fun nodeGroupConfig(argument: suspend ClusterClusterConfigAuxiliaryNodeGroupNodeGroupNodeGroupConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            ClusterClusterConfigAuxiliaryNodeGroupNodeGroupNodeGroupConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.nodeGroupConfig = mapped
    }

    /**
     * @param value Node group roles.
     * One of `"DRIVER"`.
     */
    @JvmName("onpqrgqfntshydcl")
    public suspend fun roles(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roles = mapped
    }

    /**
     * @param values Node group roles.
     * One of `"DRIVER"`.
     */
    @JvmName("ijgxdahpwndlbtgc")
    public suspend fun roles(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roles = mapped
    }

    internal fun build(): ClusterClusterConfigAuxiliaryNodeGroupNodeGroupArgs =
        ClusterClusterConfigAuxiliaryNodeGroupNodeGroupArgs(
            name = name,
            nodeGroupConfig = nodeGroupConfig,
            roles = roles ?: throw PulumiNullFieldException("roles"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy