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

com.pulumi.azure.synapse.kotlin.inputs.SparkPoolAutoPauseArgs.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.synapse.kotlin.inputs

import com.pulumi.azure.synapse.inputs.SparkPoolAutoPauseArgs.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 delayInMinutes Number of minutes of idle time before the Spark Pool is automatically paused. Must be between `5` and `10080`.
 */
public data class SparkPoolAutoPauseArgs(
    public val delayInMinutes: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.synapse.inputs.SparkPoolAutoPauseArgs =
        com.pulumi.azure.synapse.inputs.SparkPoolAutoPauseArgs.builder()
            .delayInMinutes(delayInMinutes.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SparkPoolAutoPauseArgs].
 */
@PulumiTagMarker
public class SparkPoolAutoPauseArgsBuilder internal constructor() {
    private var delayInMinutes: Output? = null

    /**
     * @param value Number of minutes of idle time before the Spark Pool is automatically paused. Must be between `5` and `10080`.
     */
    @JvmName("jsuoqrlewtosqfiy")
    public suspend fun delayInMinutes(`value`: Output) {
        this.delayInMinutes = value
    }

    /**
     * @param value Number of minutes of idle time before the Spark Pool is automatically paused. Must be between `5` and `10080`.
     */
    @JvmName("xoswsouocctqfxlp")
    public suspend fun delayInMinutes(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.delayInMinutes = mapped
    }

    internal fun build(): SparkPoolAutoPauseArgs = SparkPoolAutoPauseArgs(
        delayInMinutes = delayInMinutes ?: throw PulumiNullFieldException("delayInMinutes"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy