
com.pulumi.azurenative.app.kotlin.inputs.DynamicPoolConfigurationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.app.kotlin.inputs
import com.pulumi.azurenative.app.inputs.DynamicPoolConfigurationArgs.builder
import com.pulumi.azurenative.app.kotlin.enums.ExecutionType
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Dynamic pool configuration.
* @property cooldownPeriodInSeconds The cooldown period of a session in seconds.
* @property executionType The execution type of the session pool.
*/
public data class DynamicPoolConfigurationArgs(
public val cooldownPeriodInSeconds: Output? = null,
public val executionType: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.app.inputs.DynamicPoolConfigurationArgs =
com.pulumi.azurenative.app.inputs.DynamicPoolConfigurationArgs.builder()
.cooldownPeriodInSeconds(cooldownPeriodInSeconds?.applyValue({ args0 -> args0 }))
.executionType(
executionType?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [DynamicPoolConfigurationArgs].
*/
@PulumiTagMarker
public class DynamicPoolConfigurationArgsBuilder internal constructor() {
private var cooldownPeriodInSeconds: Output? = null
private var executionType: Output>? = null
/**
* @param value The cooldown period of a session in seconds.
*/
@JvmName("povbhtibkwltffuq")
public suspend fun cooldownPeriodInSeconds(`value`: Output) {
this.cooldownPeriodInSeconds = value
}
/**
* @param value The execution type of the session pool.
*/
@JvmName("egnvtaifxhisvqdm")
public suspend fun executionType(`value`: Output>) {
this.executionType = value
}
/**
* @param value The cooldown period of a session in seconds.
*/
@JvmName("lqxlmmxxgpyagmgc")
public suspend fun cooldownPeriodInSeconds(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cooldownPeriodInSeconds = mapped
}
/**
* @param value The execution type of the session pool.
*/
@JvmName("iippferhulksdpnn")
public suspend fun executionType(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.executionType = mapped
}
/**
* @param value The execution type of the session pool.
*/
@JvmName("xbfroohdodsxdtoj")
public fun executionType(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.executionType = mapped
}
/**
* @param value The execution type of the session pool.
*/
@JvmName("tlnmafvnmmxhpkyq")
public fun executionType(`value`: ExecutionType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.executionType = mapped
}
internal fun build(): DynamicPoolConfigurationArgs = DynamicPoolConfigurationArgs(
cooldownPeriodInSeconds = cooldownPeriodInSeconds,
executionType = executionType,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy