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

com.pulumi.aws.appautoscaling.kotlin.inputs.ScheduledActionScalableTargetActionArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.appautoscaling.kotlin.inputs

import com.pulumi.aws.appautoscaling.inputs.ScheduledActionScalableTargetActionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property maxCapacity Maximum capacity. At least one of `max_capacity` or `min_capacity` must be set.
 * @property minCapacity Minimum capacity. At least one of `min_capacity` or `max_capacity` must be set.
 */
public data class ScheduledActionScalableTargetActionArgs(
    public val maxCapacity: Output? = null,
    public val minCapacity: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.appautoscaling.inputs.ScheduledActionScalableTargetActionArgs =
        com.pulumi.aws.appautoscaling.inputs.ScheduledActionScalableTargetActionArgs.builder()
            .maxCapacity(maxCapacity?.applyValue({ args0 -> args0 }))
            .minCapacity(minCapacity?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ScheduledActionScalableTargetActionArgs].
 */
@PulumiTagMarker
public class ScheduledActionScalableTargetActionArgsBuilder internal constructor() {
    private var maxCapacity: Output? = null

    private var minCapacity: Output? = null

    /**
     * @param value Maximum capacity. At least one of `max_capacity` or `min_capacity` must be set.
     */
    @JvmName("rwkopbifilyeoaks")
    public suspend fun maxCapacity(`value`: Output) {
        this.maxCapacity = value
    }

    /**
     * @param value Minimum capacity. At least one of `min_capacity` or `max_capacity` must be set.
     */
    @JvmName("xavsncymmwrjpmoc")
    public suspend fun minCapacity(`value`: Output) {
        this.minCapacity = value
    }

    /**
     * @param value Maximum capacity. At least one of `max_capacity` or `min_capacity` must be set.
     */
    @JvmName("fsqoxurhigrpbttu")
    public suspend fun maxCapacity(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxCapacity = mapped
    }

    /**
     * @param value Minimum capacity. At least one of `min_capacity` or `max_capacity` must be set.
     */
    @JvmName("ikkubymvaxiomgkp")
    public suspend fun minCapacity(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minCapacity = mapped
    }

    internal fun build(): ScheduledActionScalableTargetActionArgs =
        ScheduledActionScalableTargetActionArgs(
            maxCapacity = maxCapacity,
            minCapacity = minCapacity,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy