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

com.pulumi.azurenative.app.kotlin.inputs.SessionContainerResourcesArgs.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.app.kotlin.inputs

import com.pulumi.azurenative.app.inputs.SessionContainerResourcesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Container resource requirements for sessions of the session pool.
 * @property cpu Required CPU in cores, e.g. 0.5
 * @property memory Required memory, e.g. "250Mb"
 */
public data class SessionContainerResourcesArgs(
    public val cpu: Output? = null,
    public val memory: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.app.inputs.SessionContainerResourcesArgs =
        com.pulumi.azurenative.app.inputs.SessionContainerResourcesArgs.builder()
            .cpu(cpu?.applyValue({ args0 -> args0 }))
            .memory(memory?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SessionContainerResourcesArgs].
 */
@PulumiTagMarker
public class SessionContainerResourcesArgsBuilder internal constructor() {
    private var cpu: Output? = null

    private var memory: Output? = null

    /**
     * @param value Required CPU in cores, e.g. 0.5
     */
    @JvmName("jbgoanqgmxkosraw")
    public suspend fun cpu(`value`: Output) {
        this.cpu = value
    }

    /**
     * @param value Required memory, e.g. "250Mb"
     */
    @JvmName("kijtsomuxjyorqfr")
    public suspend fun memory(`value`: Output) {
        this.memory = value
    }

    /**
     * @param value Required CPU in cores, e.g. 0.5
     */
    @JvmName("hhewpbduvftltbmm")
    public suspend fun cpu(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cpu = mapped
    }

    /**
     * @param value Required memory, e.g. "250Mb"
     */
    @JvmName("dfbnnvruyrlxysbi")
    public suspend fun memory(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.memory = mapped
    }

    internal fun build(): SessionContainerResourcesArgs = SessionContainerResourcesArgs(
        cpu = cpu,
        memory = memory,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy