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

com.pulumi.azurenative.app.kotlin.inputs.ScaleConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.app.kotlin.inputs

import com.pulumi.azurenative.app.inputs.ScaleConfigurationArgs.builder
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.Suppress
import kotlin.jvm.JvmName

/**
 * Scale configuration.
 * @property maxConcurrentSessions The maximum count of sessions at the same time.
 * @property readySessionInstances The minimum count of ready session instances.
 */
public data class ScaleConfigurationArgs(
    public val maxConcurrentSessions: Output? = null,
    public val readySessionInstances: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.app.inputs.ScaleConfigurationArgs =
        com.pulumi.azurenative.app.inputs.ScaleConfigurationArgs.builder()
            .maxConcurrentSessions(maxConcurrentSessions?.applyValue({ args0 -> args0 }))
            .readySessionInstances(readySessionInstances?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ScaleConfigurationArgs].
 */
@PulumiTagMarker
public class ScaleConfigurationArgsBuilder internal constructor() {
    private var maxConcurrentSessions: Output? = null

    private var readySessionInstances: Output? = null

    /**
     * @param value The maximum count of sessions at the same time.
     */
    @JvmName("qokjrrykepcxmody")
    public suspend fun maxConcurrentSessions(`value`: Output) {
        this.maxConcurrentSessions = value
    }

    /**
     * @param value The minimum count of ready session instances.
     */
    @JvmName("xbqjlunlxebkmrfp")
    public suspend fun readySessionInstances(`value`: Output) {
        this.readySessionInstances = value
    }

    /**
     * @param value The maximum count of sessions at the same time.
     */
    @JvmName("dcpedxnocbqefthg")
    public suspend fun maxConcurrentSessions(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxConcurrentSessions = mapped
    }

    /**
     * @param value The minimum count of ready session instances.
     */
    @JvmName("gnhnxdbkairidojx")
    public suspend fun readySessionInstances(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.readySessionInstances = mapped
    }

    internal fun build(): ScaleConfigurationArgs = ScaleConfigurationArgs(
        maxConcurrentSessions = maxConcurrentSessions,
        readySessionInstances = readySessionInstances,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy