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

com.pulumi.azurenative.compute.kotlin.inputs.ResourceRangeArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.compute.kotlin.inputs

import com.pulumi.azurenative.compute.inputs.ResourceRangeArgs.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

/**
 * Describes the resource range.
 * @property max The maximum number of the resource.
 * @property min The minimum number of the resource.
 */
public data class ResourceRangeArgs(
    public val max: Output? = null,
    public val min: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.compute.inputs.ResourceRangeArgs =
        com.pulumi.azurenative.compute.inputs.ResourceRangeArgs.builder()
            .max(max?.applyValue({ args0 -> args0 }))
            .min(min?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ResourceRangeArgs].
 */
@PulumiTagMarker
public class ResourceRangeArgsBuilder internal constructor() {
    private var max: Output? = null

    private var min: Output? = null

    /**
     * @param value The maximum number of the resource.
     */
    @JvmName("tqlfebseudxsiifg")
    public suspend fun max(`value`: Output) {
        this.max = value
    }

    /**
     * @param value The minimum number of the resource.
     */
    @JvmName("mpsxrvpstjlcmgws")
    public suspend fun min(`value`: Output) {
        this.min = value
    }

    /**
     * @param value The maximum number of the resource.
     */
    @JvmName("eejjxvbpldyevtil")
    public suspend fun max(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.max = mapped
    }

    /**
     * @param value The minimum number of the resource.
     */
    @JvmName("qknkdyuslnvwadka")
    public suspend fun min(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.min = mapped
    }

    internal fun build(): ResourceRangeArgs = ResourceRangeArgs(
        max = max,
        min = min,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy