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

com.pulumi.gcp.compute.kotlin.inputs.NodeTemplateAcceleratorArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.NodeTemplateAcceleratorArgs.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 acceleratorCount The number of the guest accelerator cards exposed to this
 * node template.
 * @property acceleratorType Full or partial URL of the accelerator type resource to expose
 * to this node template.
 */
public data class NodeTemplateAcceleratorArgs(
    public val acceleratorCount: Output? = null,
    public val acceleratorType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.NodeTemplateAcceleratorArgs =
        com.pulumi.gcp.compute.inputs.NodeTemplateAcceleratorArgs.builder()
            .acceleratorCount(acceleratorCount?.applyValue({ args0 -> args0 }))
            .acceleratorType(acceleratorType?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [NodeTemplateAcceleratorArgs].
 */
@PulumiTagMarker
public class NodeTemplateAcceleratorArgsBuilder internal constructor() {
    private var acceleratorCount: Output? = null

    private var acceleratorType: Output? = null

    /**
     * @param value The number of the guest accelerator cards exposed to this
     * node template.
     */
    @JvmName("nwnwbnbejwjhrfhk")
    public suspend fun acceleratorCount(`value`: Output) {
        this.acceleratorCount = value
    }

    /**
     * @param value Full or partial URL of the accelerator type resource to expose
     * to this node template.
     */
    @JvmName("djwrwrbveyanohgs")
    public suspend fun acceleratorType(`value`: Output) {
        this.acceleratorType = value
    }

    /**
     * @param value The number of the guest accelerator cards exposed to this
     * node template.
     */
    @JvmName("nydqweiowtclgjdl")
    public suspend fun acceleratorCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.acceleratorCount = mapped
    }

    /**
     * @param value Full or partial URL of the accelerator type resource to expose
     * to this node template.
     */
    @JvmName("yhggfqklrlfkgboo")
    public suspend fun acceleratorType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.acceleratorType = mapped
    }

    internal fun build(): NodeTemplateAcceleratorArgs = NodeTemplateAcceleratorArgs(
        acceleratorCount = acceleratorCount,
        acceleratorType = acceleratorType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy