![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.web.kotlin.inputs.SiteLimitsArgs.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.web.kotlin.inputs
import com.pulumi.azurenative.web.inputs.SiteLimitsArgs.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.Suppress
import kotlin.jvm.JvmName
/**
* Metric limits set on an app.
* @property maxDiskSizeInMb Maximum allowed disk size usage in MB.
* @property maxMemoryInMb Maximum allowed memory usage in MB.
* @property maxPercentageCpu Maximum allowed CPU usage percentage.
*/
public data class SiteLimitsArgs(
public val maxDiskSizeInMb: Output? = null,
public val maxMemoryInMb: Output? = null,
public val maxPercentageCpu: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.web.inputs.SiteLimitsArgs =
com.pulumi.azurenative.web.inputs.SiteLimitsArgs.builder()
.maxDiskSizeInMb(maxDiskSizeInMb?.applyValue({ args0 -> args0 }))
.maxMemoryInMb(maxMemoryInMb?.applyValue({ args0 -> args0 }))
.maxPercentageCpu(maxPercentageCpu?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SiteLimitsArgs].
*/
@PulumiTagMarker
public class SiteLimitsArgsBuilder internal constructor() {
private var maxDiskSizeInMb: Output? = null
private var maxMemoryInMb: Output? = null
private var maxPercentageCpu: Output? = null
/**
* @param value Maximum allowed disk size usage in MB.
*/
@JvmName("egxyveblvsriyopg")
public suspend fun maxDiskSizeInMb(`value`: Output) {
this.maxDiskSizeInMb = value
}
/**
* @param value Maximum allowed memory usage in MB.
*/
@JvmName("fmcjdyhhjtwegqld")
public suspend fun maxMemoryInMb(`value`: Output) {
this.maxMemoryInMb = value
}
/**
* @param value Maximum allowed CPU usage percentage.
*/
@JvmName("mkbafdncixcnetox")
public suspend fun maxPercentageCpu(`value`: Output) {
this.maxPercentageCpu = value
}
/**
* @param value Maximum allowed disk size usage in MB.
*/
@JvmName("qhsackgcpbnwdjtp")
public suspend fun maxDiskSizeInMb(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxDiskSizeInMb = mapped
}
/**
* @param value Maximum allowed memory usage in MB.
*/
@JvmName("jylqsyeagxbysniq")
public suspend fun maxMemoryInMb(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxMemoryInMb = mapped
}
/**
* @param value Maximum allowed CPU usage percentage.
*/
@JvmName("cnfpcppiwtrsifjg")
public suspend fun maxPercentageCpu(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxPercentageCpu = mapped
}
internal fun build(): SiteLimitsArgs = SiteLimitsArgs(
maxDiskSizeInMb = maxDiskSizeInMb,
maxMemoryInMb = maxMemoryInMb,
maxPercentageCpu = maxPercentageCpu,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy