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

com.pulumi.gcp.notebooks.kotlin.inputs.InstanceAcceleratorConfigArgs.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.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.notebooks.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.notebooks.inputs.InstanceAcceleratorConfigArgs.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 coreCount Count of cores of this accelerator.
 * @property type Type of this accelerator.
 * Possible values are: `ACCELERATOR_TYPE_UNSPECIFIED`, `NVIDIA_TESLA_K80`, `NVIDIA_TESLA_P100`, `NVIDIA_TESLA_V100`, `NVIDIA_TESLA_P4`, `NVIDIA_TESLA_T4`, `NVIDIA_TESLA_T4_VWS`, `NVIDIA_TESLA_P100_VWS`, `NVIDIA_TESLA_P4_VWS`, `NVIDIA_TESLA_A100`, `TPU_V2`, `TPU_V3`.
 */
public data class InstanceAcceleratorConfigArgs(
    public val coreCount: Output,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.notebooks.inputs.InstanceAcceleratorConfigArgs =
        com.pulumi.gcp.notebooks.inputs.InstanceAcceleratorConfigArgs.builder()
            .coreCount(coreCount.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceAcceleratorConfigArgs].
 */
@PulumiTagMarker
public class InstanceAcceleratorConfigArgsBuilder internal constructor() {
    private var coreCount: Output? = null

    private var type: Output? = null

    /**
     * @param value Count of cores of this accelerator.
     */
    @JvmName("lqdwqjsysjbblcjq")
    public suspend fun coreCount(`value`: Output) {
        this.coreCount = value
    }

    /**
     * @param value Type of this accelerator.
     * Possible values are: `ACCELERATOR_TYPE_UNSPECIFIED`, `NVIDIA_TESLA_K80`, `NVIDIA_TESLA_P100`, `NVIDIA_TESLA_V100`, `NVIDIA_TESLA_P4`, `NVIDIA_TESLA_T4`, `NVIDIA_TESLA_T4_VWS`, `NVIDIA_TESLA_P100_VWS`, `NVIDIA_TESLA_P4_VWS`, `NVIDIA_TESLA_A100`, `TPU_V2`, `TPU_V3`.
     */
    @JvmName("xrgptwlbcqfkejbn")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Count of cores of this accelerator.
     */
    @JvmName("eebgyvrdrapinuom")
    public suspend fun coreCount(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.coreCount = mapped
    }

    /**
     * @param value Type of this accelerator.
     * Possible values are: `ACCELERATOR_TYPE_UNSPECIFIED`, `NVIDIA_TESLA_K80`, `NVIDIA_TESLA_P100`, `NVIDIA_TESLA_V100`, `NVIDIA_TESLA_P4`, `NVIDIA_TESLA_T4`, `NVIDIA_TESLA_T4_VWS`, `NVIDIA_TESLA_P100_VWS`, `NVIDIA_TESLA_P4_VWS`, `NVIDIA_TESLA_A100`, `TPU_V2`, `TPU_V3`.
     */
    @JvmName("ejiygnvdpfwtpxpo")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): InstanceAcceleratorConfigArgs = InstanceAcceleratorConfigArgs(
        coreCount = coreCount ?: throw PulumiNullFieldException("coreCount"),
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy