com.pulumi.gcp.compute.kotlin.inputs.InstanceFromTemplateAdvancedMachineFeaturesArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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.InstanceFromTemplateAdvancedMachineFeaturesArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property enableNestedVirtualization Whether to enable nested virtualization or not.
* @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.
* @property visibleCoreCount The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance\'s nominal CPU count and the underlying platform\'s SMT width.
*/
public data class InstanceFromTemplateAdvancedMachineFeaturesArgs(
public val enableNestedVirtualization: Output? = null,
public val threadsPerCore: Output? = null,
public val visibleCoreCount: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.InstanceFromTemplateAdvancedMachineFeaturesArgs =
com.pulumi.gcp.compute.inputs.InstanceFromTemplateAdvancedMachineFeaturesArgs.builder()
.enableNestedVirtualization(enableNestedVirtualization?.applyValue({ args0 -> args0 }))
.threadsPerCore(threadsPerCore?.applyValue({ args0 -> args0 }))
.visibleCoreCount(visibleCoreCount?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [InstanceFromTemplateAdvancedMachineFeaturesArgs].
*/
@PulumiTagMarker
public class InstanceFromTemplateAdvancedMachineFeaturesArgsBuilder internal constructor() {
private var enableNestedVirtualization: Output? = null
private var threadsPerCore: Output? = null
private var visibleCoreCount: Output? = null
/**
* @param value Whether to enable nested virtualization or not.
*/
@JvmName("bofnvqhbywjkicct")
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("fepibbdogjfgovbi")
public suspend fun threadsPerCore(`value`: Output) {
this.threadsPerCore = value
}
/**
* @param value The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance\'s nominal CPU count and the underlying platform\'s SMT width.
*/
@JvmName("rscwsvkbprdyqtdw")
public suspend fun visibleCoreCount(`value`: Output) {
this.visibleCoreCount = value
}
/**
* @param value Whether to enable nested virtualization or not.
*/
@JvmName("mkqjndabyxqollmo")
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("mmbeycglyaysoauy")
public suspend fun threadsPerCore(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.threadsPerCore = mapped
}
/**
* @param value The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance\'s nominal CPU count and the underlying platform\'s SMT width.
*/
@JvmName("gqigcosoueqtkonx")
public suspend fun visibleCoreCount(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.visibleCoreCount = mapped
}
internal fun build(): InstanceFromTemplateAdvancedMachineFeaturesArgs =
InstanceFromTemplateAdvancedMachineFeaturesArgs(
enableNestedVirtualization = enableNestedVirtualization,
threadsPerCore = threadsPerCore,
visibleCoreCount = visibleCoreCount,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy