
com.pulumi.azure.monitoring.kotlin.inputs.AutoscaleSettingProfileRuleScaleActionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.monitoring.kotlin.inputs
import com.pulumi.azure.monitoring.inputs.AutoscaleSettingProfileRuleScaleActionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property cooldown The amount of time to wait since the last scaling action before this action occurs. Must be between 1 minute and 1 week and formatted as a ISO 8601 string.
* @property direction The scale direction. Possible values are `Increase` and `Decrease`.
* @property type The type of action that should occur. Possible values are `ChangeCount`, `ExactCount`, `PercentChangeCount` and `ServiceAllowedNextValue`.
* @property value The number of instances involved in the scaling action.
*/
public data class AutoscaleSettingProfileRuleScaleActionArgs(
public val cooldown: Output,
public val direction: Output,
public val type: Output,
public val `value`: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.monitoring.inputs.AutoscaleSettingProfileRuleScaleActionArgs =
com.pulumi.azure.monitoring.inputs.AutoscaleSettingProfileRuleScaleActionArgs.builder()
.cooldown(cooldown.applyValue({ args0 -> args0 }))
.direction(direction.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 }))
.`value`(`value`.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AutoscaleSettingProfileRuleScaleActionArgs].
*/
@PulumiTagMarker
public class AutoscaleSettingProfileRuleScaleActionArgsBuilder internal constructor() {
private var cooldown: Output? = null
private var direction: Output? = null
private var type: Output? = null
private var `value`: Output? = null
/**
* @param value The amount of time to wait since the last scaling action before this action occurs. Must be between 1 minute and 1 week and formatted as a ISO 8601 string.
*/
@JvmName("inoiagabmitjmmwi")
public suspend fun cooldown(`value`: Output) {
this.cooldown = value
}
/**
* @param value The scale direction. Possible values are `Increase` and `Decrease`.
*/
@JvmName("jctgbmhlblolmvvv")
public suspend fun direction(`value`: Output) {
this.direction = value
}
/**
* @param value The type of action that should occur. Possible values are `ChangeCount`, `ExactCount`, `PercentChangeCount` and `ServiceAllowedNextValue`.
*/
@JvmName("rewgyawqhqiyixlv")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value The number of instances involved in the scaling action.
*/
@JvmName("vedsegiyflhkremi")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value The amount of time to wait since the last scaling action before this action occurs. Must be between 1 minute and 1 week and formatted as a ISO 8601 string.
*/
@JvmName("jcftcwfjvofwlrcm")
public suspend fun cooldown(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.cooldown = mapped
}
/**
* @param value The scale direction. Possible values are `Increase` and `Decrease`.
*/
@JvmName("rhorfrolafpdajgp")
public suspend fun direction(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.direction = mapped
}
/**
* @param value The type of action that should occur. Possible values are `ChangeCount`, `ExactCount`, `PercentChangeCount` and `ServiceAllowedNextValue`.
*/
@JvmName("ovjviaqowaxlaxrn")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value The number of instances involved in the scaling action.
*/
@JvmName("nlqpmvtuxmdmousc")
public suspend fun `value`(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): AutoscaleSettingProfileRuleScaleActionArgs =
AutoscaleSettingProfileRuleScaleActionArgs(
cooldown = cooldown ?: throw PulumiNullFieldException("cooldown"),
direction = direction ?: throw PulumiNullFieldException("direction"),
type = type ?: throw PulumiNullFieldException("type"),
`value` = `value` ?: throw PulumiNullFieldException("value"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy