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

com.pulumi.gcp.notebooks.kotlin.inputs.RuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigArgs.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.10.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.RuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
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 Accelerator model. For valid values, see
 * `https://cloud.google.com/vertex-ai/docs/workbench/reference/
 * rest/v1/projects.locations.runtimes#AcceleratorType`
 */
public data class RuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigArgs(
    public val coreCount: Output? = null,
    public val type: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigArgs =
        com.pulumi.gcp.notebooks.inputs.RuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigArgs.builder()
            .coreCount(coreCount?.applyValue({ args0 -> args0 }))
            .type(type?.applyValue({ args0 -> args0 })).build()
}

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

    private var type: Output? = null

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

    /**
     * @param value Accelerator model. For valid values, see
     * `https://cloud.google.com/vertex-ai/docs/workbench/reference/
     * rest/v1/projects.locations.runtimes#AcceleratorType`
     */
    @JvmName("tlvitxqtvxacfifb")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

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

    /**
     * @param value Accelerator model. For valid values, see
     * `https://cloud.google.com/vertex-ai/docs/workbench/reference/
     * rest/v1/projects.locations.runtimes#AcceleratorType`
     */
    @JvmName("lxfapcejaitshpnl")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): RuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigArgs =
        RuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigArgs(
            coreCount = coreCount,
            type = type,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy