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

com.pulumi.gcp.container.kotlin.inputs.AzureNodePoolAutoscalingArgs.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.AzureNodePoolAutoscalingArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property maxNodeCount Maximum number of nodes in the node pool. Must be >= min_node_count.
 * @property minNodeCount Minimum number of nodes in the node pool. Must be >= 1 and <= max_node_count.
 */
public data class AzureNodePoolAutoscalingArgs(
    public val maxNodeCount: Output,
    public val minNodeCount: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.AzureNodePoolAutoscalingArgs =
        com.pulumi.gcp.container.inputs.AzureNodePoolAutoscalingArgs.builder()
            .maxNodeCount(maxNodeCount.applyValue({ args0 -> args0 }))
            .minNodeCount(minNodeCount.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AzureNodePoolAutoscalingArgs].
 */
@PulumiTagMarker
public class AzureNodePoolAutoscalingArgsBuilder internal constructor() {
    private var maxNodeCount: Output? = null

    private var minNodeCount: Output? = null

    /**
     * @param value Maximum number of nodes in the node pool. Must be >= min_node_count.
     */
    @JvmName("sjcajviygxgimgbo")
    public suspend fun maxNodeCount(`value`: Output) {
        this.maxNodeCount = value
    }

    /**
     * @param value Minimum number of nodes in the node pool. Must be >= 1 and <= max_node_count.
     */
    @JvmName("jrkfaxfrosvwwrjv")
    public suspend fun minNodeCount(`value`: Output) {
        this.minNodeCount = value
    }

    /**
     * @param value Maximum number of nodes in the node pool. Must be >= min_node_count.
     */
    @JvmName("rocwfqlberwqawog")
    public suspend fun maxNodeCount(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.maxNodeCount = mapped
    }

    /**
     * @param value Minimum number of nodes in the node pool. Must be >= 1 and <= max_node_count.
     */
    @JvmName("sffknmvayytiphbi")
    public suspend fun minNodeCount(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.minNodeCount = mapped
    }

    internal fun build(): AzureNodePoolAutoscalingArgs = AzureNodePoolAutoscalingArgs(
        maxNodeCount = maxNodeCount ?: throw PulumiNullFieldException("maxNodeCount"),
        minNodeCount = minNodeCount ?: throw PulumiNullFieldException("minNodeCount"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy