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

com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterRolesWorkerNodeAutoscaleCapacityArgs.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.hdinsight.kotlin.inputs

import com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterRolesWorkerNodeAutoscaleCapacityArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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 maxInstanceCount
 * @property minInstanceCount
 */
public data class InteractiveQueryClusterRolesWorkerNodeAutoscaleCapacityArgs(
    public val maxInstanceCount: Output,
    public val minInstanceCount: Output,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterRolesWorkerNodeAutoscaleCapacityArgs =
        com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterRolesWorkerNodeAutoscaleCapacityArgs.builder()
            .maxInstanceCount(maxInstanceCount.applyValue({ args0 -> args0 }))
            .minInstanceCount(minInstanceCount.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InteractiveQueryClusterRolesWorkerNodeAutoscaleCapacityArgs].
 */
@PulumiTagMarker
public class InteractiveQueryClusterRolesWorkerNodeAutoscaleCapacityArgsBuilder internal
constructor() {
    private var maxInstanceCount: Output? = null

    private var minInstanceCount: Output? = null

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

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

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

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

    internal fun build(): InteractiveQueryClusterRolesWorkerNodeAutoscaleCapacityArgs =
        InteractiveQueryClusterRolesWorkerNodeAutoscaleCapacityArgs(
            maxInstanceCount = maxInstanceCount ?: throw PulumiNullFieldException("maxInstanceCount"),
            minInstanceCount = minInstanceCount ?: throw PulumiNullFieldException("minInstanceCount"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy