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

com.pulumi.azure.datafactory.kotlin.inputs.LinkedServiceAzureDatabricksInstancePoolArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.datafactory.kotlin.inputs

import com.pulumi.azure.datafactory.inputs.LinkedServiceAzureDatabricksInstancePoolArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property clusterVersion Spark version of a the cluster.
 * @property instancePoolId Identifier of the instance pool within the linked ADB instance.
 * @property maxNumberOfWorkers The max number of worker nodes. Set this value if you want to enable autoscaling between the `min_number_of_workers` and this value. Omit this value to use a fixed number of workers defined in the `min_number_of_workers` property.
 * @property minNumberOfWorkers The minimum number of worker nodes. Defaults to `1`.
 */
public data class LinkedServiceAzureDatabricksInstancePoolArgs(
    public val clusterVersion: Output,
    public val instancePoolId: Output,
    public val maxNumberOfWorkers: Output? = null,
    public val minNumberOfWorkers: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.datafactory.inputs.LinkedServiceAzureDatabricksInstancePoolArgs =
        com.pulumi.azure.datafactory.inputs.LinkedServiceAzureDatabricksInstancePoolArgs.builder()
            .clusterVersion(clusterVersion.applyValue({ args0 -> args0 }))
            .instancePoolId(instancePoolId.applyValue({ args0 -> args0 }))
            .maxNumberOfWorkers(maxNumberOfWorkers?.applyValue({ args0 -> args0 }))
            .minNumberOfWorkers(minNumberOfWorkers?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LinkedServiceAzureDatabricksInstancePoolArgs].
 */
@PulumiTagMarker
public class LinkedServiceAzureDatabricksInstancePoolArgsBuilder internal constructor() {
    private var clusterVersion: Output? = null

    private var instancePoolId: Output? = null

    private var maxNumberOfWorkers: Output? = null

    private var minNumberOfWorkers: Output? = null

    /**
     * @param value Spark version of a the cluster.
     */
    @JvmName("mupoprrovqdeylcx")
    public suspend fun clusterVersion(`value`: Output) {
        this.clusterVersion = value
    }

    /**
     * @param value Identifier of the instance pool within the linked ADB instance.
     */
    @JvmName("frukrumjqhgrycxt")
    public suspend fun instancePoolId(`value`: Output) {
        this.instancePoolId = value
    }

    /**
     * @param value The max number of worker nodes. Set this value if you want to enable autoscaling between the `min_number_of_workers` and this value. Omit this value to use a fixed number of workers defined in the `min_number_of_workers` property.
     */
    @JvmName("xdnhtvtimamcfaca")
    public suspend fun maxNumberOfWorkers(`value`: Output) {
        this.maxNumberOfWorkers = value
    }

    /**
     * @param value The minimum number of worker nodes. Defaults to `1`.
     */
    @JvmName("jbyksrasnmxjvcdi")
    public suspend fun minNumberOfWorkers(`value`: Output) {
        this.minNumberOfWorkers = value
    }

    /**
     * @param value Spark version of a the cluster.
     */
    @JvmName("jupweffgjyecpqid")
    public suspend fun clusterVersion(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clusterVersion = mapped
    }

    /**
     * @param value Identifier of the instance pool within the linked ADB instance.
     */
    @JvmName("bjgcpslyparbgvuy")
    public suspend fun instancePoolId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.instancePoolId = mapped
    }

    /**
     * @param value The max number of worker nodes. Set this value if you want to enable autoscaling between the `min_number_of_workers` and this value. Omit this value to use a fixed number of workers defined in the `min_number_of_workers` property.
     */
    @JvmName("cjcosqngffdnamyd")
    public suspend fun maxNumberOfWorkers(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxNumberOfWorkers = mapped
    }

    /**
     * @param value The minimum number of worker nodes. Defaults to `1`.
     */
    @JvmName("arqfqpapvduxykkr")
    public suspend fun minNumberOfWorkers(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minNumberOfWorkers = mapped
    }

    internal fun build(): LinkedServiceAzureDatabricksInstancePoolArgs =
        LinkedServiceAzureDatabricksInstancePoolArgs(
            clusterVersion = clusterVersion ?: throw PulumiNullFieldException("clusterVersion"),
            instancePoolId = instancePoolId ?: throw PulumiNullFieldException("instancePoolId"),
            maxNumberOfWorkers = maxNumberOfWorkers,
            minNumberOfWorkers = minNumberOfWorkers,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy