![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.ec2.kotlin.inputs.CpuOptionsPropertiesArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ec2.kotlin.inputs
import com.pulumi.awsnative.ec2.inputs.CpuOptionsPropertiesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The CPU options for the instance.
* @property coreCount The number of CPU cores for the instance.
* @property threadsPerCore The number of threads per CPU core.
*/
public data class CpuOptionsPropertiesArgs(
public val coreCount: Output? = null,
public val threadsPerCore: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ec2.inputs.CpuOptionsPropertiesArgs =
com.pulumi.awsnative.ec2.inputs.CpuOptionsPropertiesArgs.builder()
.coreCount(coreCount?.applyValue({ args0 -> args0 }))
.threadsPerCore(threadsPerCore?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [CpuOptionsPropertiesArgs].
*/
@PulumiTagMarker
public class CpuOptionsPropertiesArgsBuilder internal constructor() {
private var coreCount: Output? = null
private var threadsPerCore: Output? = null
/**
* @param value The number of CPU cores for the instance.
*/
@JvmName("vwqbtrescbhuklhf")
public suspend fun coreCount(`value`: Output) {
this.coreCount = value
}
/**
* @param value The number of threads per CPU core.
*/
@JvmName("ajafhmlivndvageq")
public suspend fun threadsPerCore(`value`: Output) {
this.threadsPerCore = value
}
/**
* @param value The number of CPU cores for the instance.
*/
@JvmName("xnajadidrdpvrsmi")
public suspend fun coreCount(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.coreCount = mapped
}
/**
* @param value The number of threads per CPU core.
*/
@JvmName("yymdlajsqdujwinf")
public suspend fun threadsPerCore(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.threadsPerCore = mapped
}
internal fun build(): CpuOptionsPropertiesArgs = CpuOptionsPropertiesArgs(
coreCount = coreCount,
threadsPerCore = threadsPerCore,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy