com.pulumi.kubernetes.autoscaling.v2.kotlin.inputs.HPAScalingPolicyPatchArgs.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.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("cnojgvkpweistldq")
public suspend fun periodSeconds(`value`: Output) {
this.periodSeconds = value
}
/**
* @param value type is used to specify the scaling policy.
*/
@JvmName("bmhwiubhiuvhfvlo")
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("wjivqgyelkuirofd")
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("ehrvjdlsscmypebl")
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("fqaelxgpgyolejql")
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("syevnalopnfbfmgb")
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 - 2024 Weber Informatics LLC | Privacy Policy