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

com.pulumi.kubernetes.extensions.v1beta1.kotlin.inputs.IDRangeArgs.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.extensions.v1beta1.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.extensions.v1beta1.inputs.IDRangeArgs.builder
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * IDRange provides a min/max of an allowed range of IDs. Deprecated: use IDRange from policy API Group instead.
 * @property max max is the end of the range, inclusive.
 * @property min min is the start of the range, inclusive.
 */
public data class IDRangeArgs(
    public val max: Output,
    public val min: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.extensions.v1beta1.inputs.IDRangeArgs =
        com.pulumi.kubernetes.extensions.v1beta1.inputs.IDRangeArgs.builder()
            .max(max.applyValue({ args0 -> args0 }))
            .min(min.applyValue({ args0 -> args0 })).build()
}

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

    private var min: Output? = null

    /**
     * @param value max is the end of the range, inclusive.
     */
    @JvmName("hmvjttmuebtvabon")
    public suspend fun max(`value`: Output) {
        this.max = value
    }

    /**
     * @param value min is the start of the range, inclusive.
     */
    @JvmName("nuyodsucalcbabfo")
    public suspend fun min(`value`: Output) {
        this.min = value
    }

    /**
     * @param value max is the end of the range, inclusive.
     */
    @JvmName("tcflkvotgnqwnahk")
    public suspend fun max(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.max = mapped
    }

    /**
     * @param value min is the start of the range, inclusive.
     */
    @JvmName("ympijafofwpryyqv")
    public suspend fun min(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.min = mapped
    }

    internal fun build(): IDRangeArgs = IDRangeArgs(
        max = max ?: throw PulumiNullFieldException("max"),
        min = min ?: throw PulumiNullFieldException("min"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy