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

com.pulumi.nomad.kotlin.inputs.QuoteSpecificationLimitArgs.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: 2.4.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.nomad.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.kotlin.applySuspend
import com.pulumi.nomad.inputs.QuoteSpecificationLimitArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property region `(string: )` - The region these limits should apply to.
 * @property regionLimit `(block: )` - The limits to enforce. This block
 * may only be specified once in the `limits` block. Its structure is
 * documented below.
 */
public data class QuoteSpecificationLimitArgs(
    public val region: Output,
    public val regionLimit: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.nomad.inputs.QuoteSpecificationLimitArgs =
        com.pulumi.nomad.inputs.QuoteSpecificationLimitArgs.builder()
            .region(region.applyValue({ args0 -> args0 }))
            .regionLimit(regionLimit.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [QuoteSpecificationLimitArgs].
 */
@PulumiTagMarker
public class QuoteSpecificationLimitArgsBuilder internal constructor() {
    private var region: Output? = null

    private var regionLimit: Output? = null

    /**
     * @param value `(string: )` - The region these limits should apply to.
     */
    @JvmName("audcegkwefwspigh")
    public suspend fun region(`value`: Output) {
        this.region = value
    }

    /**
     * @param value `(block: )` - The limits to enforce. This block
     * may only be specified once in the `limits` block. Its structure is
     * documented below.
     */
    @JvmName("gcuiwpfuxacpxtlg")
    public suspend fun regionLimit(`value`: Output) {
        this.regionLimit = value
    }

    /**
     * @param value `(string: )` - The region these limits should apply to.
     */
    @JvmName("knakrtekdrjnbdnk")
    public suspend fun region(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.region = mapped
    }

    /**
     * @param value `(block: )` - The limits to enforce. This block
     * may only be specified once in the `limits` block. Its structure is
     * documented below.
     */
    @JvmName("ugrhcgjnmpeelbqf")
    public suspend fun regionLimit(`value`: QuoteSpecificationLimitRegionLimitArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.regionLimit = mapped
    }

    /**
     * @param argument `(block: )` - The limits to enforce. This block
     * may only be specified once in the `limits` block. Its structure is
     * documented below.
     */
    @JvmName("oxflplxceklkrnhj")
    public suspend fun regionLimit(argument: suspend QuoteSpecificationLimitRegionLimitArgsBuilder.() -> Unit) {
        val toBeMapped = QuoteSpecificationLimitRegionLimitArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.regionLimit = mapped
    }

    internal fun build(): QuoteSpecificationLimitArgs = QuoteSpecificationLimitArgs(
        region = region ?: throw PulumiNullFieldException("region"),
        regionLimit = regionLimit ?: throw PulumiNullFieldException("regionLimit"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy