com.pulumi.kubernetes.autoscaling.v2.kotlin.inputs.HPAScalingPolicyPatchArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.autoscaling.v2.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.autoscaling.v2.inputs.HPAScalingPolicyPatchArgs.builder
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* HPAScalingPolicy is a single policy which must hold true for a specified past interval.
* @property periodSeconds periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).
* @property type type is used to specify the scaling policy.
* @property value value contains the amount of change which is permitted by the policy. It must be greater than zero
*/
public data class HPAScalingPolicyPatchArgs(
public val periodSeconds: Output? = null,
public val type: Output? = null,
public val `value`: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.autoscaling.v2.inputs.HPAScalingPolicyPatchArgs =
com.pulumi.kubernetes.autoscaling.v2.inputs.HPAScalingPolicyPatchArgs.builder()
.periodSeconds(periodSeconds?.applyValue({ args0 -> args0 }))
.type(type?.applyValue({ args0 -> args0 }))
.`value`(`value`?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [HPAScalingPolicyPatchArgs].
*/
@PulumiTagMarker
public class HPAScalingPolicyPatchArgsBuilder internal constructor() {
private var periodSeconds: Output? = null
private var type: Output? = null
private var `value`: Output? = null
/**
* @param value periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).
*/
@JvmName("opbmtxfmwmsiyyyu")
public suspend fun periodSeconds(`value`: Output) {
this.periodSeconds = value
}
/**
* @param value type is used to specify the scaling policy.
*/
@JvmName("nagsscmihogdhssq")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value value contains the amount of change which is permitted by the policy. It must be greater than zero
*/
@JvmName("sbvsgtftdiiahage")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).
*/
@JvmName("xywgdkenesehfkyr")
public suspend fun periodSeconds(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.periodSeconds = mapped
}
/**
* @param value type is used to specify the scaling policy.
*/
@JvmName("mnyjmmrgnesvrdur")
public suspend fun type(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value value contains the amount of change which is permitted by the policy. It must be greater than zero
*/
@JvmName("humwxeyioaobndly")
public suspend fun `value`(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): HPAScalingPolicyPatchArgs = HPAScalingPolicyPatchArgs(
periodSeconds = periodSeconds,
type = type,
`value` = `value`,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy