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

com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.inputs.HPAScalingPolicyPatchArgs.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.

There is a newer version: 4.18.2.0
Show 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.PulumiTagMarker
import com.pulumi.kubernetes.autoscaling.v2beta2.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.v2beta2.inputs.HPAScalingPolicyPatchArgs = com.pulumi.kubernetes.autoscaling.v2beta2.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("qbmlotgbeeighqur")
    public suspend fun periodSeconds(`value`: Output) {
        this.periodSeconds = value
    }

    /**
     * @param value Type is used to specify the scaling policy.
     */
    @JvmName("kcrjwwplwbpdywal")
    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("luxracpridojabev")
    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("vgybvtrplhhepoqm")
    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("omjccanylfddnbnn")
    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("oalfdwrwfaxhsowt")
    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