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

com.pulumi.awsnative.ec2.kotlin.inputs.LaunchTemplateMemoryMiBArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ec2.kotlin.inputs

import com.pulumi.awsnative.ec2.inputs.LaunchTemplateMemoryMiBArgs.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

/**
 * The minimum and maximum amount of memory, in MiB.
 * @property max The maximum amount of memory, in MiB. To specify no maximum limit, omit this parameter.
 * @property min The minimum amount of memory, in MiB. To specify no minimum limit, specify ``0``.
 */
public data class LaunchTemplateMemoryMiBArgs(
    public val max: Output? = null,
    public val min: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.inputs.LaunchTemplateMemoryMiBArgs =
        com.pulumi.awsnative.ec2.inputs.LaunchTemplateMemoryMiBArgs.builder()
            .max(max?.applyValue({ args0 -> args0 }))
            .min(min?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LaunchTemplateMemoryMiBArgs].
 */
@PulumiTagMarker
public class LaunchTemplateMemoryMiBArgsBuilder internal constructor() {
    private var max: Output? = null

    private var min: Output? = null

    /**
     * @param value The maximum amount of memory, in MiB. To specify no maximum limit, omit this parameter.
     */
    @JvmName("xaramyxcividnlrl")
    public suspend fun max(`value`: Output) {
        this.max = value
    }

    /**
     * @param value The minimum amount of memory, in MiB. To specify no minimum limit, specify ``0``.
     */
    @JvmName("qrvjewdxaycmgcwu")
    public suspend fun min(`value`: Output) {
        this.min = value
    }

    /**
     * @param value The maximum amount of memory, in MiB. To specify no maximum limit, omit this parameter.
     */
    @JvmName("wnafnrkyrxjsfmcb")
    public suspend fun max(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.max = mapped
    }

    /**
     * @param value The minimum amount of memory, in MiB. To specify no minimum limit, specify ``0``.
     */
    @JvmName("urkkngdvlclucdvu")
    public suspend fun min(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.min = mapped
    }

    internal fun build(): LaunchTemplateMemoryMiBArgs = LaunchTemplateMemoryMiBArgs(
        max = max,
        min = min,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy