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

com.pulumi.gcp.tpu.kotlin.inputs.V2QueuedResourceTpuNodeSpecNodeArgs.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.13.1.0
Show newest version
@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.V2QueuedResourceTpuNodeSpecNodeArgs.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 acceleratorType TPU accelerator type for the TPU. If not specified, this defaults to 'v2-8'.
 * @property description Text description of the TPU.
 * @property runtimeVersion Runtime version for the TPU.
 */
public data class V2QueuedResourceTpuNodeSpecNodeArgs(
    public val acceleratorType: Output? = null,
    public val description: Output? = null,
    public val runtimeVersion: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.tpu.inputs.V2QueuedResourceTpuNodeSpecNodeArgs =
        com.pulumi.gcp.tpu.inputs.V2QueuedResourceTpuNodeSpecNodeArgs.builder()
            .acceleratorType(acceleratorType?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .runtimeVersion(runtimeVersion.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [V2QueuedResourceTpuNodeSpecNodeArgs].
 */
@PulumiTagMarker
public class V2QueuedResourceTpuNodeSpecNodeArgsBuilder internal constructor() {
    private var acceleratorType: Output? = null

    private var description: Output? = null

    private var runtimeVersion: Output? = null

    /**
     * @param value TPU accelerator type for the TPU. If not specified, this defaults to 'v2-8'.
     */
    @JvmName("pddvtdelecxpguqg")
    public suspend fun acceleratorType(`value`: Output) {
        this.acceleratorType = value
    }

    /**
     * @param value Text description of the TPU.
     */
    @JvmName("hsgosporhnnmayht")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Runtime version for the TPU.
     */
    @JvmName("mvfhhrgwvvtbfaua")
    public suspend fun runtimeVersion(`value`: Output) {
        this.runtimeVersion = value
    }

    /**
     * @param value TPU accelerator type for the TPU. If not specified, this defaults to 'v2-8'.
     */
    @JvmName("slmdrqgecjdcurgw")
    public suspend fun acceleratorType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.acceleratorType = mapped
    }

    /**
     * @param value Text description of the TPU.
     */
    @JvmName("mjjrxvpvmgylffsq")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Runtime version for the TPU.
     */
    @JvmName("skimphoxqjajnwef")
    public suspend fun runtimeVersion(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.runtimeVersion = mapped
    }

    internal fun build(): V2QueuedResourceTpuNodeSpecNodeArgs = V2QueuedResourceTpuNodeSpecNodeArgs(
        acceleratorType = acceleratorType,
        description = description,
        runtimeVersion = runtimeVersion ?: throw PulumiNullFieldException("runtimeVersion"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy