All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.inputs.HPAScalingPolicyArgs.kt Maven / Gradle / Ivy

Go to download

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.v2beta2.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.v2beta2.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.v2beta2.inputs.HPAScalingPolicyArgs =
        com.pulumi.kubernetes.autoscaling.v2beta2.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("vntlgvuqorblrxnt")
    public suspend fun periodSeconds(`value`: Output) {
        this.periodSeconds = value
    }

    /**
     * @param value Type is used to specify the scaling policy.
     */
    @JvmName("toriejlegdmybsqd")
    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("pynppnwdkbcksxai")
    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("lxocrikxojrpgbyl")
    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("uturxkbhiyyrjoln")
    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("upvmsxxdnovpnpit")
    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