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

com.pulumi.azurenative.devcenter.kotlin.inputs.StopOnDisconnectConfigurationArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.devcenter.kotlin.inputs

import com.pulumi.azurenative.devcenter.inputs.StopOnDisconnectConfigurationArgs.builder
import com.pulumi.azurenative.devcenter.kotlin.enums.StopOnDisconnectEnableStatus
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

/**
 * Stop on disconnect configuration settings for Dev Boxes created in this pool.
 * @property gracePeriodMinutes The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.
 * @property status Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.
 */
public data class StopOnDisconnectConfigurationArgs(
    public val gracePeriodMinutes: Output? = null,
    public val status: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.devcenter.inputs.StopOnDisconnectConfigurationArgs =
        com.pulumi.azurenative.devcenter.inputs.StopOnDisconnectConfigurationArgs.builder()
            .gracePeriodMinutes(gracePeriodMinutes?.applyValue({ args0 -> args0 }))
            .status(
                status?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [StopOnDisconnectConfigurationArgs].
 */
@PulumiTagMarker
public class StopOnDisconnectConfigurationArgsBuilder internal constructor() {
    private var gracePeriodMinutes: Output? = null

    private var status: Output>? = null

    /**
     * @param value The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.
     */
    @JvmName("honghfccraihpfgn")
    public suspend fun gracePeriodMinutes(`value`: Output) {
        this.gracePeriodMinutes = value
    }

    /**
     * @param value Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.
     */
    @JvmName("qnfjryrbyndsoojy")
    public suspend fun status(`value`: Output>) {
        this.status = value
    }

    /**
     * @param value The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.
     */
    @JvmName("ageikowrykcnlhhm")
    public suspend fun gracePeriodMinutes(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.gracePeriodMinutes = mapped
    }

    /**
     * @param value Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.
     */
    @JvmName("bodfbgnkngrleysy")
    public suspend fun status(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.
     */
    @JvmName("vusjcwbxtlhifily")
    public fun status(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.
     */
    @JvmName("cwbxcbnomiswkexr")
    public fun status(`value`: StopOnDisconnectEnableStatus) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.status = mapped
    }

    internal fun build(): StopOnDisconnectConfigurationArgs = StopOnDisconnectConfigurationArgs(
        gracePeriodMinutes = gracePeriodMinutes,
        status = status,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy