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

com.pulumi.gcp.migrationcenter.kotlin.inputs.PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgs.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.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>) {
        this.nodeTypes = Output.all(values)
    }

    /**
     * @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("woiilveegtbfbqbn")
    public suspend fun commitmentPlan(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.commitmentPlan = mapped
    }

    /**
     * @param value CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive.
     */
    @JvmName("vwiylvbtivautuxk")
    public suspend fun cpuOvercommitRatio(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cpuOvercommitRatio = mapped
    }

    /**
     * @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("akmhmbfgjpbbwgna")
    public suspend fun hostMaintenancePolicy(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hostMaintenancePolicy = mapped
    }

    /**
     * @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("xlcbhchtyctqyumu")
    public suspend fun nodeTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeTypes = mapped
    }

    /**
     * @param argument A list of sole tenant node types. An empty list means that all possible node types will be considered.
     * Structure is documented below.
     */
    @JvmName("hmtdxxnmqatlbqkc")
    public suspend fun nodeTypes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesNodeTypeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.nodeTypes = mapped
    }

    /**
     * @param argument A list of sole tenant node types. An empty list means that all possible node types will be considered.
     * Structure is documented below.
     */
    @JvmName("woeebmojtykcjswa")
    public suspend fun nodeTypes(vararg argument: suspend PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesNodeTypeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesNodeTypeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.nodeTypes = mapped
    }

    /**
     * @param argument A list of sole tenant node types. An empty list means that all possible node types will be considered.
     * Structure is documented below.
     */
    @JvmName("hyoskfmylowcmlrc")
    public suspend fun nodeTypes(argument: suspend PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesNodeTypeArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesNodeTypeArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.nodeTypes = mapped
    }

    /**
     * @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("ibevcixbvwfjknld")
    public suspend fun nodeTypes(vararg values: PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesNodeTypeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nodeTypes = mapped
    }

    internal fun build(): PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgs =
        PreferenceSetVirtualMachinePreferencesSoleTenancyPreferencesArgs(
            commitmentPlan = commitmentPlan,
            cpuOvercommitRatio = cpuOvercommitRatio,
            hostMaintenancePolicy = hostMaintenancePolicy,
            nodeTypes = nodeTypes,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy