com.pulumi.gcp.sql.kotlin.inputs.DatabaseInstanceSettingsAdvancedMachineFeaturesArgs.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.sql.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsAdvancedMachineFeaturesArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property threadsPerCore The number of threads per core. The value of this flag can be 1 or 2. To disable SMT, set this flag to 1. Only available in Cloud SQL for SQL Server instances. See [smt](https://cloud.google.com/sql/docs/sqlserver/create-instance#smt-create-instance) for more details.
*/
public data class DatabaseInstanceSettingsAdvancedMachineFeaturesArgs(
public val threadsPerCore: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsAdvancedMachineFeaturesArgs =
com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsAdvancedMachineFeaturesArgs.builder()
.threadsPerCore(threadsPerCore?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DatabaseInstanceSettingsAdvancedMachineFeaturesArgs].
*/
@PulumiTagMarker
public class DatabaseInstanceSettingsAdvancedMachineFeaturesArgsBuilder internal constructor() {
private var threadsPerCore: Output? = null
/**
* @param value The number of threads per core. The value of this flag can be 1 or 2. To disable SMT, set this flag to 1. Only available in Cloud SQL for SQL Server instances. See [smt](https://cloud.google.com/sql/docs/sqlserver/create-instance#smt-create-instance) for more details.
*/
@JvmName("ajbcttdfkmmwqihj")
public suspend fun threadsPerCore(`value`: Output) {
this.threadsPerCore = value
}
/**
* @param value The number of threads per core. The value of this flag can be 1 or 2. To disable SMT, set this flag to 1. Only available in Cloud SQL for SQL Server instances. See [smt](https://cloud.google.com/sql/docs/sqlserver/create-instance#smt-create-instance) for more details.
*/
@JvmName("oemmganaeyiybjcq")
public suspend fun threadsPerCore(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.threadsPerCore = mapped
}
internal fun build(): DatabaseInstanceSettingsAdvancedMachineFeaturesArgs =
DatabaseInstanceSettingsAdvancedMachineFeaturesArgs(
threadsPerCore = threadsPerCore,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy