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

com.pulumi.azurenative.migrate.kotlin.inputs.ResourceRequirementsArgs.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.migrate.kotlin.inputs

import com.pulumi.azurenative.migrate.inputs.ResourceRequirementsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Resource Requirements.
 * @property cpu Gets or sets the Cpu requirement.
 * @property memory Gets or sets the Memory requirement.
 */
public data class ResourceRequirementsArgs(
    public val cpu: Output? = null,
    public val memory: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.migrate.inputs.ResourceRequirementsArgs =
        com.pulumi.azurenative.migrate.inputs.ResourceRequirementsArgs.builder()
            .cpu(cpu?.applyValue({ args0 -> args0 }))
            .memory(memory?.applyValue({ args0 -> args0 })).build()
}

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

    private var memory: Output? = null

    /**
     * @param value Gets or sets the Cpu requirement.
     */
    @JvmName("htmetdrtljxftcok")
    public suspend fun cpu(`value`: Output) {
        this.cpu = value
    }

    /**
     * @param value Gets or sets the Memory requirement.
     */
    @JvmName("hqbxhxyplrwnevfv")
    public suspend fun memory(`value`: Output) {
        this.memory = value
    }

    /**
     * @param value Gets or sets the Cpu requirement.
     */
    @JvmName("xyddaeeegrbalcxl")
    public suspend fun cpu(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cpu = mapped
    }

    /**
     * @param value Gets or sets the Memory requirement.
     */
    @JvmName("njovyhinbfruvasf")
    public suspend fun memory(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.memory = mapped
    }

    internal fun build(): ResourceRequirementsArgs = ResourceRequirementsArgs(
        cpu = cpu,
        memory = memory,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy