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

com.pulumi.gcp.container.kotlin.inputs.NodePoolNodeConfigAdvancedMachineFeaturesArgs.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.container.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.NodePoolNodeConfigAdvancedMachineFeaturesArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property enableNestedVirtualization Whether the node should have nested virtualization enabled.
 * @property threadsPerCore The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
 */
public data class NodePoolNodeConfigAdvancedMachineFeaturesArgs(
    public val enableNestedVirtualization: Output? = null,
    public val threadsPerCore: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.NodePoolNodeConfigAdvancedMachineFeaturesArgs =
        com.pulumi.gcp.container.inputs.NodePoolNodeConfigAdvancedMachineFeaturesArgs.builder()
            .enableNestedVirtualization(enableNestedVirtualization?.applyValue({ args0 -> args0 }))
            .threadsPerCore(threadsPerCore.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [NodePoolNodeConfigAdvancedMachineFeaturesArgs].
 */
@PulumiTagMarker
public class NodePoolNodeConfigAdvancedMachineFeaturesArgsBuilder internal constructor() {
    private var enableNestedVirtualization: Output? = null

    private var threadsPerCore: Output? = null

    /**
     * @param value Whether the node should have nested virtualization enabled.
     */
    @JvmName("pbtwgphjkkrlspkl")
    public suspend fun enableNestedVirtualization(`value`: Output) {
        this.enableNestedVirtualization = value
    }

    /**
     * @param value The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
     */
    @JvmName("uogvlxiupxfmmjsg")
    public suspend fun threadsPerCore(`value`: Output) {
        this.threadsPerCore = value
    }

    /**
     * @param value Whether the node should have nested virtualization enabled.
     */
    @JvmName("gionyinnjnvjygth")
    public suspend fun enableNestedVirtualization(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableNestedVirtualization = mapped
    }

    /**
     * @param value The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
     */
    @JvmName("ddxyjdsmanwighjh")
    public suspend fun threadsPerCore(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.threadsPerCore = mapped
    }

    internal fun build(): NodePoolNodeConfigAdvancedMachineFeaturesArgs =
        NodePoolNodeConfigAdvancedMachineFeaturesArgs(
            enableNestedVirtualization = enableNestedVirtualization,
            threadsPerCore = threadsPerCore ?: throw PulumiNullFieldException("threadsPerCore"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy