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

com.pulumi.gcp.dataproc.kotlin.inputs.ClusterClusterConfigAuxiliaryNodeGroupArgs.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.ClusterClusterConfigAuxiliaryNodeGroupArgs.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 nodeGroupId A node group ID. Generated if not specified. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 characters.
 * @property nodeGroups Node group configuration.
 */
public data class ClusterClusterConfigAuxiliaryNodeGroupArgs(
    public val nodeGroupId: Output? = null,
    public val nodeGroups: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigAuxiliaryNodeGroupArgs =
        com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigAuxiliaryNodeGroupArgs.builder()
            .nodeGroupId(nodeGroupId?.applyValue({ args0 -> args0 }))
            .nodeGroups(
                nodeGroups.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ClusterClusterConfigAuxiliaryNodeGroupArgs].
 */
@PulumiTagMarker
public class ClusterClusterConfigAuxiliaryNodeGroupArgsBuilder internal constructor() {
    private var nodeGroupId: Output? = null

    private var nodeGroups: Output>? = null

    /**
     * @param value A node group ID. Generated if not specified. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 characters.
     */
    @JvmName("nayojcukmdsqdefo")
    public suspend fun nodeGroupId(`value`: Output) {
        this.nodeGroupId = value
    }

    /**
     * @param value Node group configuration.
     */
    @JvmName("wdmbrwfvmdgxlgjd")
    public suspend fun nodeGroups(`value`: Output>) {
        this.nodeGroups = value
    }

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

    /**
     * @param values Node group configuration.
     */
    @JvmName("sbhlpipinqjgxomc")
    public suspend fun nodeGroups(values: List>) {
        this.nodeGroups = Output.all(values)
    }

    /**
     * @param value A node group ID. Generated if not specified. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 characters.
     */
    @JvmName("lyuvkdglwbagaghu")
    public suspend fun nodeGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeGroupId = mapped
    }

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

    /**
     * @param argument Node group configuration.
     */
    @JvmName("cxmyfxtiqmfnmfvm")
    public suspend fun nodeGroups(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ClusterClusterConfigAuxiliaryNodeGroupNodeGroupArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.nodeGroups = mapped
    }

    /**
     * @param argument Node group configuration.
     */
    @JvmName("necsocovxlrfpnoi")
    public suspend fun nodeGroups(vararg argument: suspend ClusterClusterConfigAuxiliaryNodeGroupNodeGroupArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ClusterClusterConfigAuxiliaryNodeGroupNodeGroupArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.nodeGroups = mapped
    }

    /**
     * @param argument Node group configuration.
     */
    @JvmName("qpthfkyhrfomlaxw")
    public suspend fun nodeGroups(argument: suspend ClusterClusterConfigAuxiliaryNodeGroupNodeGroupArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ClusterClusterConfigAuxiliaryNodeGroupNodeGroupArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.nodeGroups = mapped
    }

    /**
     * @param values Node group configuration.
     */
    @JvmName("mhvyecvcprhqxflu")
    public suspend fun nodeGroups(vararg values: ClusterClusterConfigAuxiliaryNodeGroupNodeGroupArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nodeGroups = mapped
    }

    internal fun build(): ClusterClusterConfigAuxiliaryNodeGroupArgs =
        ClusterClusterConfigAuxiliaryNodeGroupArgs(
            nodeGroupId = nodeGroupId,
            nodeGroups = nodeGroups ?: throw PulumiNullFieldException("nodeGroups"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy