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

com.pulumi.gcp.dataproc.kotlin.inputs.ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigArgs.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.ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigArgs.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 autoscaling The autoscaler configuration for this node pool.
 * The autoscaler is enabled only when a valid configuration is present.
 * @property config The node pool configuration.
 * @property locations The list of Compute Engine zones where node pool nodes associated
 * with a Dataproc on GKE virtual cluster will be located.
 * - - -
 */
public data class
ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigArgs(
    public val autoscaling: Output? =
        null,
    public val config: Output? =
        null,
    public val locations: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigArgs =
        com.pulumi.gcp.dataproc.inputs.ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigArgs.builder()
            .autoscaling(autoscaling?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .config(config?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .locations(locations.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigArgs].
 */
@PulumiTagMarker
public class
ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigArgsBuilder
internal constructor() {
    private var autoscaling:
        Output? =
        null

    private var config:
        Output? =
        null

    private var locations: Output>? = null

    /**
     * @param value The autoscaler configuration for this node pool.
     * The autoscaler is enabled only when a valid configuration is present.
     */
    @JvmName("ybqvkknqxdgsjkux")
    public suspend fun autoscaling(`value`: Output) {
        this.autoscaling = value
    }

    /**
     * @param value The node pool configuration.
     */
    @JvmName("tnebepmostgjpoes")
    public suspend fun config(`value`: Output) {
        this.config = value
    }

    /**
     * @param value The list of Compute Engine zones where node pool nodes associated
     * with a Dataproc on GKE virtual cluster will be located.
     * - - -
     */
    @JvmName("qlxamopogoaufflo")
    public suspend fun locations(`value`: Output>) {
        this.locations = value
    }

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

    /**
     * @param values The list of Compute Engine zones where node pool nodes associated
     * with a Dataproc on GKE virtual cluster will be located.
     * - - -
     */
    @JvmName("vkfgcsyknfccljdn")
    public suspend fun locations(values: List>) {
        this.locations = Output.all(values)
    }

    /**
     * @param value The autoscaler configuration for this node pool.
     * The autoscaler is enabled only when a valid configuration is present.
     */
    @JvmName("yqugmacjctbpheer")
    public suspend fun autoscaling(`value`: ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigAutoscalingArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoscaling = mapped
    }

    /**
     * @param argument The autoscaler configuration for this node pool.
     * The autoscaler is enabled only when a valid configuration is present.
     */
    @JvmName("dimrwcexaeokqttu")
    public suspend fun autoscaling(argument: suspend ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigAutoscalingArgsBuilder.() -> Unit) {
        val toBeMapped =
            ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigAutoscalingArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.autoscaling = mapped
    }

    /**
     * @param value The node pool configuration.
     */
    @JvmName("xrqhrifmasdwgyli")
    public suspend fun config(`value`: ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.config = mapped
    }

    /**
     * @param argument The node pool configuration.
     */
    @JvmName("ryufgrlcektoafjo")
    public suspend fun config(argument: suspend ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.config = mapped
    }

    /**
     * @param value The list of Compute Engine zones where node pool nodes associated
     * with a Dataproc on GKE virtual cluster will be located.
     * - - -
     */
    @JvmName("ornpinfymnxkhkwt")
    public suspend fun locations(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.locations = mapped
    }

    /**
     * @param values The list of Compute Engine zones where node pool nodes associated
     * with a Dataproc on GKE virtual cluster will be located.
     * - - -
     */
    @JvmName("urggikmnqqflyblc")
    public suspend fun locations(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.locations = mapped
    }

    internal fun build(): ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigArgs =
        ClusterVirtualClusterConfigKubernetesClusterConfigGkeClusterConfigNodePoolTargetNodePoolConfigArgs(
            autoscaling = autoscaling,
            config = config,
            locations = locations ?: throw PulumiNullFieldException("locations"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy