com.pulumi.azure.synapse.kotlin.inputs.SparkPoolAutoPauseArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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