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

com.pulumi.gcp.compute.kotlin.inputs.InstanceFromMachineImageGuestAcceleratorArgs.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.10.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.InstanceFromMachineImageGuestAcceleratorArgs.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 exposed to this instance. E.g. nvidia-tesla-k80.
 */
public data class InstanceFromMachineImageGuestAcceleratorArgs(
    public val count: Output,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.InstanceFromMachineImageGuestAcceleratorArgs = com.pulumi.gcp.compute.inputs.InstanceFromMachineImageGuestAcceleratorArgs.builder()
        .count(count.applyValue({ args0 -> args0 }))
        .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceFromMachineImageGuestAcceleratorArgs].
 */
@PulumiTagMarker
public class InstanceFromMachineImageGuestAcceleratorArgsBuilder 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("djbcqfsbmauadpci")
    public suspend fun count(`value`: Output) {
        this.count = value
    }

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

    /**
     * @param value The number of the guest accelerator cards exposed to this instance.
     */
    @JvmName("ecevwuujwlurwcsf")
    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 exposed to this instance. E.g. nvidia-tesla-k80.
     */
    @JvmName("qblmkvqchasccrhh")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy