com.pulumi.gcp.compute.kotlin.inputs.ReservationSpecificReservationInstancePropertiesGuestAcceleratorArgs.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.ReservationSpecificReservationInstancePropertiesGuestAcceleratorArgs.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 acceleratorCount The number of the guest accelerator cards exposed to
* this instance.
* @property acceleratorType The full or partial URL of the accelerator type to
* attach to this instance. For example:
* `projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100`
* If you are creating an instance template, specify only the accelerator name.
*/
public data class ReservationSpecificReservationInstancePropertiesGuestAcceleratorArgs(
public val acceleratorCount: Output,
public val acceleratorType: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.ReservationSpecificReservationInstancePropertiesGuestAcceleratorArgs =
com.pulumi.gcp.compute.inputs.ReservationSpecificReservationInstancePropertiesGuestAcceleratorArgs.builder()
.acceleratorCount(acceleratorCount.applyValue({ args0 -> args0 }))
.acceleratorType(acceleratorType.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ReservationSpecificReservationInstancePropertiesGuestAcceleratorArgs].
*/
@PulumiTagMarker
public class ReservationSpecificReservationInstancePropertiesGuestAcceleratorArgsBuilder internal constructor() {
private var acceleratorCount: Output? = null
private var acceleratorType: Output? = null
/**
* @param value The number of the guest accelerator cards exposed to
* this instance.
*/
@JvmName("knvwhckkckamascd")
public suspend fun acceleratorCount(`value`: Output) {
this.acceleratorCount = value
}
/**
* @param value The full or partial URL of the accelerator type to
* attach to this instance. For example:
* `projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100`
* If you are creating an instance template, specify only the accelerator name.
*/
@JvmName("msdshjeobtfwxtai")
public suspend fun acceleratorType(`value`: Output) {
this.acceleratorType = value
}
/**
* @param value The number of the guest accelerator cards exposed to
* this instance.
*/
@JvmName("jymyjipepvrstkfu")
public suspend fun acceleratorCount(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.acceleratorCount = mapped
}
/**
* @param value The full or partial URL of the accelerator type to
* attach to this instance. For example:
* `projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100`
* If you are creating an instance template, specify only the accelerator name.
*/
@JvmName("nstagbipihayycym")
public suspend fun acceleratorType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.acceleratorType = mapped
}
internal fun build(): ReservationSpecificReservationInstancePropertiesGuestAcceleratorArgs =
ReservationSpecificReservationInstancePropertiesGuestAcceleratorArgs(
acceleratorCount = acceleratorCount ?: throw PulumiNullFieldException("acceleratorCount"),
acceleratorType = acceleratorType ?: throw PulumiNullFieldException("acceleratorType"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy