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

com.pulumi.nomad.kotlin.inputs.QuoteSpecificationLimitRegionLimitArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.nomad.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.nomad.inputs.QuoteSpecificationLimitRegionLimitArgs.builder
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @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 QuoteSpecificationLimitRegionLimitArgs(
    public val cpu: Output? = null,
    public val memoryMb: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.nomad.inputs.QuoteSpecificationLimitRegionLimitArgs =
        com.pulumi.nomad.inputs.QuoteSpecificationLimitRegionLimitArgs.builder()
            .cpu(cpu?.applyValue({ args0 -> args0 }))
            .memoryMb(memoryMb?.applyValue({ args0 -> args0 })).build()
}

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

    private var memoryMb: Output? = null

    /**
     * @param value `(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.
     */
    @JvmName("fcljmuysbrlntmvd")
    public suspend fun cpu(`value`: Output) {
        this.cpu = value
    }

    /**
     * @param value `(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.
     */
    @JvmName("ogmintcyttcrknld")
    public suspend fun memoryMb(`value`: Output) {
        this.memoryMb = value
    }

    /**
     * @param value `(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.
     */
    @JvmName("ayoakahoawaavmkt")
    public suspend fun cpu(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cpu = mapped
    }

    /**
     * @param value `(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.
     */
    @JvmName("arjrlxqvcobwpcre")
    public suspend fun memoryMb(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.memoryMb = mapped
    }

    internal fun build(): QuoteSpecificationLimitRegionLimitArgs =
        QuoteSpecificationLimitRegionLimitArgs(
            cpu = cpu,
            memoryMb = memoryMb,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy