com.pulumi.gcp.migrationcenter.kotlin.inputs.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgs.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.migrationcenter.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property commitmentPlan Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.
* Possible values:
* COMMITMENT_PLAN_UNSPECIFIED
* ON_DEMAND
* COMMITMENT_1_YEAR
* COMMITMENT_3_YEAR
* @property cpuOvercommitRatio CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive.
* @property hostMaintenancePolicy Sole Tenancy nodes maintenance policy.
* Possible values:
* HOST_MAINTENANCE_POLICY_UNSPECIFIED
* HOST_MAINTENANCE_POLICY_DEFAULT
* HOST_MAINTENANCE_POLICY_RESTART_IN_PLACE
* HOST_MAINTENANCE_POLICY_MIGRATE_WITHIN_NODE_GROUP
* @property nodeTypes A list of sole tenant node types. An empty list means that all possible node types will be considered.
* Structure is documented below.
*/
public data class PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgs(
public val commitmentPlan: Output? = null,
public val cpuOvercommitRatio: Output? = null,
public val hostMaintenancePolicy: Output? = null,
public val nodeTypes: Output>? =
null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgs =
com.pulumi.gcp.migrationcenter.inputs.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgs.builder()
.commitmentPlan(commitmentPlan?.applyValue({ args0 -> args0 }))
.cpuOvercommitRatio(cpuOvercommitRatio?.applyValue({ args0 -> args0 }))
.hostMaintenancePolicy(hostMaintenancePolicy?.applyValue({ args0 -> args0 }))
.nodeTypes(
nodeTypes?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgs].
*/
@PulumiTagMarker
public class PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgsBuilder internal constructor() {
private var commitmentPlan: Output? = null
private var cpuOvercommitRatio: Output? = null
private var hostMaintenancePolicy: Output? = null
private var nodeTypes:
Output>? = null
/**
* @param value Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.
* Possible values:
* COMMITMENT_PLAN_UNSPECIFIED
* ON_DEMAND
* COMMITMENT_1_YEAR
* COMMITMENT_3_YEAR
*/
@JvmName("ukikycllbvhbaqcs")
public suspend fun commitmentPlan(`value`: Output) {
this.commitmentPlan = value
}
/**
* @param value CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive.
*/
@JvmName("gydxdqrowyohksqq")
public suspend fun cpuOvercommitRatio(`value`: Output) {
this.cpuOvercommitRatio = value
}
/**
* @param value Sole Tenancy nodes maintenance policy.
* Possible values:
* HOST_MAINTENANCE_POLICY_UNSPECIFIED
* HOST_MAINTENANCE_POLICY_DEFAULT
* HOST_MAINTENANCE_POLICY_RESTART_IN_PLACE
* HOST_MAINTENANCE_POLICY_MIGRATE_WITHIN_NODE_GROUP
*/
@JvmName("wdansbfnkmqtyvpe")
public suspend fun hostMaintenancePolicy(`value`: Output) {
this.hostMaintenancePolicy = value
}
/**
* @param value A list of sole tenant node types. An empty list means that all possible node types will be considered.
* Structure is documented below.
*/
@JvmName("pmddanedbfxtkuwn")
public suspend fun nodeTypes(`value`: Output>) {
this.nodeTypes = value
}
@JvmName("gtolhjacnxnuwhrs")
public suspend fun nodeTypes(vararg values: Output) {
this.nodeTypes = Output.all(values.asList())
}
/**
* @param values A list of sole tenant node types. An empty list means that all possible node types will be considered.
* Structure is documented below.
*/
@JvmName("ntiycfehjrnmxsmx")
public suspend fun nodeTypes(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy