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

com.pulumi.gcp.container.kotlin.inputs.ClusterNodePoolNodeConfigAdvancedMachineFeaturesArgs.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.ClusterNodePoolNodeConfigAdvancedMachineFeaturesArgs.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 Defines whether the instance should have nested virtualization enabled. Defaults to false.
 * @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 ClusterNodePoolNodeConfigAdvancedMachineFeaturesArgs(
    public val enableNestedVirtualization: Output? = null,
    public val threadsPerCore: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.ClusterNodePoolNodeConfigAdvancedMachineFeaturesArgs =
        com.pulumi.gcp.container.inputs.ClusterNodePoolNodeConfigAdvancedMachineFeaturesArgs.builder()
            .enableNestedVirtualization(enableNestedVirtualization?.applyValue({ args0 -> args0 }))
            .threadsPerCore(threadsPerCore.applyValue({ args0 -> args0 })).build()
}

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

    private var threadsPerCore: Output? = null

    /**
     * @param value Defines whether the instance should have nested virtualization enabled. Defaults to false.
     */
    @JvmName("xhntlnrbmnfyafwc")
    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("oktgsytkcgtepmyt")
    public suspend fun threadsPerCore(`value`: Output) {
        this.threadsPerCore = value
    }

    /**
     * @param value Defines whether the instance should have nested virtualization enabled. Defaults to false.
     */
    @JvmName("auchcyrxtkngxiwu")
    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("mxelomdofrrhdxsd")
    public suspend fun threadsPerCore(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.threadsPerCore = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy