
com.pulumi.gcp.tpu.kotlin.inputs.V2VmAcceleratorConfigArgs.kt Maven / Gradle / Ivy
@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. Please select one of the allowed types: https://cloud.google.com/tpu/docs/reference/rest/v2/AcceleratorConfig#Type
*/
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("qplyuhgxbgmyfpdc")
public suspend fun topology(`value`: Output) {
this.topology = value
}
/**
* @param value Type of TPU. Please select one of the allowed types: https://cloud.google.com/tpu/docs/reference/rest/v2/AcceleratorConfig#Type
*/
@JvmName("hejletoapsmitfdi")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Topology of TPU in chips.
*/
@JvmName("xrvltmodgvalgobv")
public suspend fun topology(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.topology = mapped
}
/**
* @param value Type of TPU. Please select one of the allowed types: https://cloud.google.com/tpu/docs/reference/rest/v2/AcceleratorConfig#Type
*/
@JvmName("vaekpqmeybymhwws")
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