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

com.pulumi.awsnative.gamelift.kotlin.inputs.ContainerGroupDefinitionMemoryLimitsArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.gamelift.kotlin.inputs

import com.pulumi.awsnative.gamelift.inputs.ContainerGroupDefinitionMemoryLimitsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Specifies how much memory is available to the container.
 * @property hardLimit The hard limit of memory to reserve for the container.
 * @property softLimit The amount of memory that is reserved for the container.
 */
public data class ContainerGroupDefinitionMemoryLimitsArgs(
    public val hardLimit: Output? = null,
    public val softLimit: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.gamelift.inputs.ContainerGroupDefinitionMemoryLimitsArgs =
        com.pulumi.awsnative.gamelift.inputs.ContainerGroupDefinitionMemoryLimitsArgs.builder()
            .hardLimit(hardLimit?.applyValue({ args0 -> args0 }))
            .softLimit(softLimit?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ContainerGroupDefinitionMemoryLimitsArgs].
 */
@PulumiTagMarker
public class ContainerGroupDefinitionMemoryLimitsArgsBuilder internal constructor() {
    private var hardLimit: Output? = null

    private var softLimit: Output? = null

    /**
     * @param value The hard limit of memory to reserve for the container.
     */
    @JvmName("qllwxjncifflmhqk")
    public suspend fun hardLimit(`value`: Output) {
        this.hardLimit = value
    }

    /**
     * @param value The amount of memory that is reserved for the container.
     */
    @JvmName("rceukplxjwfdwnhc")
    public suspend fun softLimit(`value`: Output) {
        this.softLimit = value
    }

    /**
     * @param value The hard limit of memory to reserve for the container.
     */
    @JvmName("bjxflctgrduifjic")
    public suspend fun hardLimit(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hardLimit = mapped
    }

    /**
     * @param value The amount of memory that is reserved for the container.
     */
    @JvmName("sscrixsclhxbapbg")
    public suspend fun softLimit(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.softLimit = mapped
    }

    internal fun build(): ContainerGroupDefinitionMemoryLimitsArgs =
        ContainerGroupDefinitionMemoryLimitsArgs(
            hardLimit = hardLimit,
            softLimit = softLimit,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy