com.pulumi.gcp.tpu.kotlin.inputs.V2VmAcceleratorConfigArgs.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.tpu.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.tpu.inputs.V2VmAcceleratorConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property topology Topology of TPU in chips.
* @property type Type of TPU.
* Possible values are: `V2`, `V3`, `V4`.
*/
public data class V2VmAcceleratorConfigArgs(
public val topology: Output,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.tpu.inputs.V2VmAcceleratorConfigArgs =
com.pulumi.gcp.tpu.inputs.V2VmAcceleratorConfigArgs.builder()
.topology(topology.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [V2VmAcceleratorConfigArgs].
*/
@PulumiTagMarker
public class V2VmAcceleratorConfigArgsBuilder internal constructor() {
private var topology: Output? = null
private var type: Output? = null
/**
* @param value Topology of TPU in chips.
*/
@JvmName("yumwsnhvybbxfjet")
public suspend fun topology(`value`: Output) {
this.topology = value
}
/**
* @param value Type of TPU.
* Possible values are: `V2`, `V3`, `V4`.
*/
@JvmName("stosdghcrnkqndgu")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Topology of TPU in chips.
*/
@JvmName("mjimrqashnonvemn")
public suspend fun topology(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.topology = mapped
}
/**
* @param value Type of TPU.
* Possible values are: `V2`, `V3`, `V4`.
*/
@JvmName("ysmrjbuvkvepwwoh")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): V2VmAcceleratorConfigArgs = V2VmAcceleratorConfigArgs(
topology = topology ?: throw PulumiNullFieldException("topology"),
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy