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

com.pulumi.azure.compute.kotlin.inputs.OrchestratedVirtualMachineScaleSetPriorityMixArgs.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: 6.21.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.compute.kotlin.inputs

import com.pulumi.azure.compute.inputs.OrchestratedVirtualMachineScaleSetPriorityMixArgs.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

/**
 *
 * @property baseRegularCount Specifies the base number of VMs of `Regular` priority that will be created before any VMs of priority `Spot` are created. Possible values are integers between `0` and `1000`. Defaults to `0`.
 * @property regularPercentageAboveBase Specifies the desired percentage of VM instances that are of `Regular` priority after the base count has been reached. Possible values are integers between `0` and `100`. Defaults to `0`.
 */
public data class OrchestratedVirtualMachineScaleSetPriorityMixArgs(
    public val baseRegularCount: Output? = null,
    public val regularPercentageAboveBase: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.compute.inputs.OrchestratedVirtualMachineScaleSetPriorityMixArgs =
        com.pulumi.azure.compute.inputs.OrchestratedVirtualMachineScaleSetPriorityMixArgs.builder()
            .baseRegularCount(baseRegularCount?.applyValue({ args0 -> args0 }))
            .regularPercentageAboveBase(regularPercentageAboveBase?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [OrchestratedVirtualMachineScaleSetPriorityMixArgs].
 */
@PulumiTagMarker
public class OrchestratedVirtualMachineScaleSetPriorityMixArgsBuilder internal constructor() {
    private var baseRegularCount: Output? = null

    private var regularPercentageAboveBase: Output? = null

    /**
     * @param value Specifies the base number of VMs of `Regular` priority that will be created before any VMs of priority `Spot` are created. Possible values are integers between `0` and `1000`. Defaults to `0`.
     */
    @JvmName("mamrnfhmjjagwxtj")
    public suspend fun baseRegularCount(`value`: Output) {
        this.baseRegularCount = value
    }

    /**
     * @param value Specifies the desired percentage of VM instances that are of `Regular` priority after the base count has been reached. Possible values are integers between `0` and `100`. Defaults to `0`.
     */
    @JvmName("ihewuydfmcuipqru")
    public suspend fun regularPercentageAboveBase(`value`: Output) {
        this.regularPercentageAboveBase = value
    }

    /**
     * @param value Specifies the base number of VMs of `Regular` priority that will be created before any VMs of priority `Spot` are created. Possible values are integers between `0` and `1000`. Defaults to `0`.
     */
    @JvmName("tdhhmhpcuhbpshct")
    public suspend fun baseRegularCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.baseRegularCount = mapped
    }

    /**
     * @param value Specifies the desired percentage of VM instances that are of `Regular` priority after the base count has been reached. Possible values are integers between `0` and `100`. Defaults to `0`.
     */
    @JvmName("fyuctsdomurisphe")
    public suspend fun regularPercentageAboveBase(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.regularPercentageAboveBase = mapped
    }

    internal fun build(): OrchestratedVirtualMachineScaleSetPriorityMixArgs =
        OrchestratedVirtualMachineScaleSetPriorityMixArgs(
            baseRegularCount = baseRegularCount,
            regularPercentageAboveBase = regularPercentageAboveBase,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy