![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.containerinstance.kotlin.inputs.ResourceLimitsArgs.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.containerinstance.kotlin.inputs
import com.pulumi.azurenative.containerinstance.inputs.ResourceLimitsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Double
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* The resource limits.
* @property cpu The CPU limit of this container instance.
* @property gpu The GPU limit of this container instance.
* @property memoryInGB The memory limit in GB of this container instance.
*/
public data class ResourceLimitsArgs(
public val cpu: Output? = null,
public val gpu: Output? = null,
public val memoryInGB: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.containerinstance.inputs.ResourceLimitsArgs =
com.pulumi.azurenative.containerinstance.inputs.ResourceLimitsArgs.builder()
.cpu(cpu?.applyValue({ args0 -> args0 }))
.gpu(gpu?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.memoryInGB(memoryInGB?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ResourceLimitsArgs].
*/
@PulumiTagMarker
public class ResourceLimitsArgsBuilder internal constructor() {
private var cpu: Output? = null
private var gpu: Output? = null
private var memoryInGB: Output? = null
/**
* @param value The CPU limit of this container instance.
*/
@JvmName("khntoxeyssxvcqyw")
public suspend fun cpu(`value`: Output) {
this.cpu = value
}
/**
* @param value The GPU limit of this container instance.
*/
@JvmName("rimqftafikqeyrcw")
public suspend fun gpu(`value`: Output) {
this.gpu = value
}
/**
* @param value The memory limit in GB of this container instance.
*/
@JvmName("mlqxhxcaqtympxpi")
public suspend fun memoryInGB(`value`: Output) {
this.memoryInGB = value
}
/**
* @param value The CPU limit of this container instance.
*/
@JvmName("kuxigoqigmqourme")
public suspend fun cpu(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cpu = mapped
}
/**
* @param value The GPU limit of this container instance.
*/
@JvmName("rtuyqsqagjeegrjr")
public suspend fun gpu(`value`: GpuResourceArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.gpu = mapped
}
/**
* @param argument The GPU limit of this container instance.
*/
@JvmName("mcuiqvgfonlbuyip")
public suspend fun gpu(argument: suspend GpuResourceArgsBuilder.() -> Unit) {
val toBeMapped = GpuResourceArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.gpu = mapped
}
/**
* @param value The memory limit in GB of this container instance.
*/
@JvmName("rtubcgccoixeysvu")
public suspend fun memoryInGB(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.memoryInGB = mapped
}
internal fun build(): ResourceLimitsArgs = ResourceLimitsArgs(
cpu = cpu,
gpu = gpu,
memoryInGB = memoryInGB,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy