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

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

package com.pulumi.gcp.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.RegionInstanceTemplateGuestAcceleratorArgs.builder
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

/**
 *
 * @property count The number of the guest accelerator cards exposed to this instance.
 * @property type The accelerator type resource to expose to this instance. E.g. `nvidia-tesla-k80`.
 */
public data class RegionInstanceTemplateGuestAcceleratorArgs(
    public val count: Output,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.RegionInstanceTemplateGuestAcceleratorArgs =
        com.pulumi.gcp.compute.inputs.RegionInstanceTemplateGuestAcceleratorArgs.builder()
            .count(count.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

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

    private var type: Output? = null

    /**
     * @param value The number of the guest accelerator cards exposed to this instance.
     */
    @JvmName("dgunigiwcsnpnhmn")
    public suspend fun count(`value`: Output) {
        this.count = value
    }

    /**
     * @param value The accelerator type resource to expose to this instance. E.g. `nvidia-tesla-k80`.
     */
    @JvmName("vdwiompnxaaxsloh")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The number of the guest accelerator cards exposed to this instance.
     */
    @JvmName("tpsrtlvflmdamkiv")
    public suspend fun count(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.count = mapped
    }

    /**
     * @param value The accelerator type resource to expose to this instance. E.g. `nvidia-tesla-k80`.
     */
    @JvmName("muklutrbfavsgrbb")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): RegionInstanceTemplateGuestAcceleratorArgs =
        RegionInstanceTemplateGuestAcceleratorArgs(
            count = count ?: throw PulumiNullFieldException("count"),
            type = type ?: throw PulumiNullFieldException("type"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy