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

com.pulumi.azure.compute.kotlin.outputs.OrchestratedVirtualMachineScaleSetPriorityMix.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.compute.kotlin.outputs

import kotlin.Int
import kotlin.Suppress

/**
 *
 * @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 OrchestratedVirtualMachineScaleSetPriorityMix(
    public val baseRegularCount: Int? = null,
    public val regularPercentageAboveBase: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.compute.outputs.OrchestratedVirtualMachineScaleSetPriorityMix): OrchestratedVirtualMachineScaleSetPriorityMix =
            OrchestratedVirtualMachineScaleSetPriorityMix(
                baseRegularCount = javaType.baseRegularCount().map({ args0 -> args0 }).orElse(null),
                regularPercentageAboveBase = javaType.regularPercentageAboveBase().map({ args0 ->
                    args0
                }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy