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

com.pulumi.aws.ec2.kotlin.inputs.LaunchTemplateInstanceRequirementsMemoryGibPerVcpuArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.ec2.kotlin.inputs

import com.pulumi.aws.ec2.inputs.LaunchTemplateInstanceRequirementsMemoryGibPerVcpuArgs.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

/**
 *
 * @property max Maximum. May be a decimal number, e.g. `0.5`.
 * @property min Minimum. May be a decimal number, e.g. `0.5`.
 */
public data class LaunchTemplateInstanceRequirementsMemoryGibPerVcpuArgs(
    public val max: Output? = null,
    public val min: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.ec2.inputs.LaunchTemplateInstanceRequirementsMemoryGibPerVcpuArgs =
        com.pulumi.aws.ec2.inputs.LaunchTemplateInstanceRequirementsMemoryGibPerVcpuArgs.builder()
            .max(max?.applyValue({ args0 -> args0 }))
            .min(min?.applyValue({ args0 -> args0 })).build()
}

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

    private var min: Output? = null

    /**
     * @param value Maximum. May be a decimal number, e.g. `0.5`.
     */
    @JvmName("htorahwcxpcljpjc")
    public suspend fun max(`value`: Output) {
        this.max = value
    }

    /**
     * @param value Minimum. May be a decimal number, e.g. `0.5`.
     */
    @JvmName("gsxqdvsumeojwkpm")
    public suspend fun min(`value`: Output) {
        this.min = value
    }

    /**
     * @param value Maximum. May be a decimal number, e.g. `0.5`.
     */
    @JvmName("xhlxcoxpkiskykyt")
    public suspend fun max(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.max = mapped
    }

    /**
     * @param value Minimum. May be a decimal number, e.g. `0.5`.
     */
    @JvmName("jqomwlvgfsfymrsy")
    public suspend fun min(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.min = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy