com.pulumi.kubernetes.autoscaling.v2.kotlin.inputs.HPAScalingPolicyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-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.
The newest version!
@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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.autoscaling.v2.inputs.HPAScalingPolicyArgs.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 HPAScalingPolicyArgs(
public val periodSeconds: Output,
public val type: Output,
public val `value`: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.autoscaling.v2.inputs.HPAScalingPolicyArgs =
com.pulumi.kubernetes.autoscaling.v2.inputs.HPAScalingPolicyArgs.builder()
.periodSeconds(periodSeconds.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 }))
.`value`(`value`.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [HPAScalingPolicyArgs].
*/
@PulumiTagMarker
public class HPAScalingPolicyArgsBuilder 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("poxutanweocogloe")
public suspend fun periodSeconds(`value`: Output) {
this.periodSeconds = value
}
/**
* @param value type is used to specify the scaling policy.
*/
@JvmName("fexrxxikiuomdihy")
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("ytgkpoowccjtgkyj")
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("dvufowovxmasfemw")
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("fukqflrqbgqwwsch")
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("jlxgrbjymcgnyrbc")
public suspend fun `value`(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): HPAScalingPolicyArgs = HPAScalingPolicyArgs(
periodSeconds = periodSeconds ?: throw PulumiNullFieldException("periodSeconds"),
type = type ?: throw PulumiNullFieldException("type"),
`value` = `value` ?: throw PulumiNullFieldException("value"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy