![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineScaleSetScaleInArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.compute.kotlin.inputs
import com.pulumi.azure.compute.inputs.WindowsVirtualMachineScaleSetScaleInArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property forceDeletionEnabled Should the virtual machines chosen for removal be force deleted when the virtual machine scale set is being scaled-in? Possible values are `true` or `false`. Defaults to `false`.
* @property rule The scale-in policy rule that decides which virtual machines are chosen for removal when a Virtual Machine Scale Set is scaled in. Possible values for the scale-in policy rules are `Default`, `NewestVM` and `OldestVM`, defaults to `Default`. For more information about scale in policy, please [refer to this doc](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-scale-in-policy).
*/
public data class WindowsVirtualMachineScaleSetScaleInArgs(
public val forceDeletionEnabled: Output? = null,
public val rule: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.compute.inputs.WindowsVirtualMachineScaleSetScaleInArgs =
com.pulumi.azure.compute.inputs.WindowsVirtualMachineScaleSetScaleInArgs.builder()
.forceDeletionEnabled(forceDeletionEnabled?.applyValue({ args0 -> args0 }))
.rule(rule?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WindowsVirtualMachineScaleSetScaleInArgs].
*/
@PulumiTagMarker
public class WindowsVirtualMachineScaleSetScaleInArgsBuilder internal constructor() {
private var forceDeletionEnabled: Output? = null
private var rule: Output? = null
/**
* @param value Should the virtual machines chosen for removal be force deleted when the virtual machine scale set is being scaled-in? Possible values are `true` or `false`. Defaults to `false`.
*/
@JvmName("ondhqhtplmttvpai")
public suspend fun forceDeletionEnabled(`value`: Output) {
this.forceDeletionEnabled = value
}
/**
* @param value The scale-in policy rule that decides which virtual machines are chosen for removal when a Virtual Machine Scale Set is scaled in. Possible values for the scale-in policy rules are `Default`, `NewestVM` and `OldestVM`, defaults to `Default`. For more information about scale in policy, please [refer to this doc](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-scale-in-policy).
*/
@JvmName("qnwiucfgkyaivnxa")
public suspend fun rule(`value`: Output) {
this.rule = value
}
/**
* @param value Should the virtual machines chosen for removal be force deleted when the virtual machine scale set is being scaled-in? Possible values are `true` or `false`. Defaults to `false`.
*/
@JvmName("xxiksrofvundhusd")
public suspend fun forceDeletionEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.forceDeletionEnabled = mapped
}
/**
* @param value The scale-in policy rule that decides which virtual machines are chosen for removal when a Virtual Machine Scale Set is scaled in. Possible values for the scale-in policy rules are `Default`, `NewestVM` and `OldestVM`, defaults to `Default`. For more information about scale in policy, please [refer to this doc](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-scale-in-policy).
*/
@JvmName("sblcrrofstlqtbdn")
public suspend fun rule(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.rule = mapped
}
internal fun build(): WindowsVirtualMachineScaleSetScaleInArgs =
WindowsVirtualMachineScaleSetScaleInArgs(
forceDeletionEnabled = forceDeletionEnabled,
rule = rule,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy