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

com.pulumi.azurenative.compute.kotlin.inputs.RecommendedMachineConfigurationArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.compute.kotlin.inputs

import com.pulumi.azurenative.compute.inputs.RecommendedMachineConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
 * @property memory Describes the resource range.
 * @property vCPUs Describes the resource range.
 */
public data class RecommendedMachineConfigurationArgs(
    public val memory: Output? = null,
    public val vCPUs: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.compute.inputs.RecommendedMachineConfigurationArgs =
        com.pulumi.azurenative.compute.inputs.RecommendedMachineConfigurationArgs.builder()
            .memory(memory?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .vCPUs(vCPUs?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [RecommendedMachineConfigurationArgs].
 */
@PulumiTagMarker
public class RecommendedMachineConfigurationArgsBuilder internal constructor() {
    private var memory: Output? = null

    private var vCPUs: Output? = null

    /**
     * @param value Describes the resource range.
     */
    @JvmName("vktlvinirignxabt")
    public suspend fun memory(`value`: Output) {
        this.memory = value
    }

    /**
     * @param value Describes the resource range.
     */
    @JvmName("qykvydxtvlhcsgvl")
    public suspend fun vCPUs(`value`: Output) {
        this.vCPUs = value
    }

    /**
     * @param value Describes the resource range.
     */
    @JvmName("occcgyrgyulrxpvy")
    public suspend fun memory(`value`: ResourceRangeArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.memory = mapped
    }

    /**
     * @param argument Describes the resource range.
     */
    @JvmName("klgggcrihdoipfcm")
    public suspend fun memory(argument: suspend ResourceRangeArgsBuilder.() -> Unit) {
        val toBeMapped = ResourceRangeArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.memory = mapped
    }

    /**
     * @param value Describes the resource range.
     */
    @JvmName("gpqstypixurxmjsi")
    public suspend fun vCPUs(`value`: ResourceRangeArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vCPUs = mapped
    }

    /**
     * @param argument Describes the resource range.
     */
    @JvmName("cvjtgqaawleexgdc")
    public suspend fun vCPUs(argument: suspend ResourceRangeArgsBuilder.() -> Unit) {
        val toBeMapped = ResourceRangeArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.vCPUs = mapped
    }

    internal fun build(): RecommendedMachineConfigurationArgs = RecommendedMachineConfigurationArgs(
        memory = memory,
        vCPUs = vCPUs,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy