com.pulumi.gcp.compute.kotlin.inputs.InstanceGuestAcceleratorArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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.InstanceGuestAcceleratorArgs.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 InstanceGuestAcceleratorArgs(
public val count: Output,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.InstanceGuestAcceleratorArgs =
com.pulumi.gcp.compute.inputs.InstanceGuestAcceleratorArgs.builder()
.count(count.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [InstanceGuestAcceleratorArgs].
*/
@PulumiTagMarker
public class InstanceGuestAcceleratorArgsBuilder 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("xihyffjgmymkynog")
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("iwktrswhasmgvpvv")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value The number of the guest accelerator cards exposed to this instance.
*/
@JvmName("ndpdiaqfgsxvcujw")
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("ttfrddhdlesymhmr")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): InstanceGuestAcceleratorArgs = InstanceGuestAcceleratorArgs(
count = count ?: throw PulumiNullFieldException("count"),
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy