com.pulumi.nomad.kotlin.outputs.QuoteSpecificationLimitRegionLimit.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-nomad-kotlin Show documentation
Show all versions of pulumi-nomad-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.nomad.kotlin.outputs
import kotlin.Int
import kotlin.Suppress
/**
*
* @property cpu `(int: 0)` - The amount of CPU to limit allocations to. A value of zero
* is treated as unlimited, and a negative value is treated as fully disallowed.
* @property memoryMb `(int: 0)` - The amount of memory (in megabytes) to limit
* allocations to. A value of zero is treated as unlimited, and a negative value
* is treated as fully disallowed.
*/
public data class QuoteSpecificationLimitRegionLimit(
public val cpu: Int? = null,
public val memoryMb: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.nomad.outputs.QuoteSpecificationLimitRegionLimit): QuoteSpecificationLimitRegionLimit = QuoteSpecificationLimitRegionLimit(
cpu = javaType.cpu().map({ args0 -> args0 }).orElse(null),
memoryMb = javaType.memoryMb().map({ args0 -> args0 }).orElse(null),
)
}
}