![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.app.kotlin.inputs.WorkloadProfileArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.app.kotlin.inputs
import com.pulumi.azurenative.app.inputs.WorkloadProfileArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Workload profile to scope container app execution.
* @property maximumCount The maximum capacity.
* @property minimumCount The minimum capacity.
* @property workloadProfileType Workload profile type for the workloads to run on.
*/
public data class WorkloadProfileArgs(
public val maximumCount: Output,
public val minimumCount: Output,
public val workloadProfileType: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.app.inputs.WorkloadProfileArgs =
com.pulumi.azurenative.app.inputs.WorkloadProfileArgs.builder()
.maximumCount(maximumCount.applyValue({ args0 -> args0 }))
.minimumCount(minimumCount.applyValue({ args0 -> args0 }))
.workloadProfileType(workloadProfileType.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WorkloadProfileArgs].
*/
@PulumiTagMarker
public class WorkloadProfileArgsBuilder internal constructor() {
private var maximumCount: Output? = null
private var minimumCount: Output? = null
private var workloadProfileType: Output? = null
/**
* @param value The maximum capacity.
*/
@JvmName("vjinlttjtvnywygp")
public suspend fun maximumCount(`value`: Output) {
this.maximumCount = value
}
/**
* @param value The minimum capacity.
*/
@JvmName("lqsxexybpviakikl")
public suspend fun minimumCount(`value`: Output) {
this.minimumCount = value
}
/**
* @param value Workload profile type for the workloads to run on.
*/
@JvmName("sojkxyuksalhigdl")
public suspend fun workloadProfileType(`value`: Output) {
this.workloadProfileType = value
}
/**
* @param value The maximum capacity.
*/
@JvmName("ciihajheultevpvo")
public suspend fun maximumCount(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.maximumCount = mapped
}
/**
* @param value The minimum capacity.
*/
@JvmName("wimcbhloruxbgxok")
public suspend fun minimumCount(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.minimumCount = mapped
}
/**
* @param value Workload profile type for the workloads to run on.
*/
@JvmName("yfqjhriswuhpnrqc")
public suspend fun workloadProfileType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.workloadProfileType = mapped
}
internal fun build(): WorkloadProfileArgs = WorkloadProfileArgs(
maximumCount = maximumCount ?: throw PulumiNullFieldException("maximumCount"),
minimumCount = minimumCount ?: throw PulumiNullFieldException("minimumCount"),
workloadProfileType = workloadProfileType ?: throw PulumiNullFieldException("workloadProfileType"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy