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

com.pulumi.azurenative.containerinstance.kotlin.inputs.GpuResourceArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.containerinstance.kotlin.inputs

import com.pulumi.azurenative.containerinstance.inputs.GpuResourceArgs.builder
import com.pulumi.azurenative.containerinstance.kotlin.enums.GpuSku
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The GPU resource.
 * @property count The count of the GPU resource.
 * @property sku The SKU of the GPU resource.
 */
public data class GpuResourceArgs(
    public val count: Output,
    public val sku: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.containerinstance.inputs.GpuResourceArgs =
        com.pulumi.azurenative.containerinstance.inputs.GpuResourceArgs.builder()
            .count(count.applyValue({ args0 -> args0 }))
            .sku(
                sku.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [GpuResourceArgs].
 */
@PulumiTagMarker
public class GpuResourceArgsBuilder internal constructor() {
    private var count: Output? = null

    private var sku: Output>? = null

    /**
     * @param value The count of the GPU resource.
     */
    @JvmName("qeyyntwbgnkorfxw")
    public suspend fun count(`value`: Output) {
        this.count = value
    }

    /**
     * @param value The SKU of the GPU resource.
     */
    @JvmName("ipsumtwlnsrycgph")
    public suspend fun sku(`value`: Output>) {
        this.sku = value
    }

    /**
     * @param value The count of the GPU resource.
     */
    @JvmName("rffeuskhxqophpvm")
    public suspend fun count(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.count = mapped
    }

    /**
     * @param value The SKU of the GPU resource.
     */
    @JvmName("oytfvklhgrmivppa")
    public suspend fun sku(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sku = mapped
    }

    /**
     * @param value The SKU of the GPU resource.
     */
    @JvmName("socfnffqwerucjhh")
    public fun sku(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sku = mapped
    }

    /**
     * @param value The SKU of the GPU resource.
     */
    @JvmName("pxqhvkhgaywoepgx")
    public fun sku(`value`: GpuSku) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sku = mapped
    }

    internal fun build(): GpuResourceArgs = GpuResourceArgs(
        count = count ?: throw PulumiNullFieldException("count"),
        sku = sku ?: throw PulumiNullFieldException("sku"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy