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

com.pulumi.azurenative.providerhub.kotlin.inputs.ThrottlingMetricArgs.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.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.providerhub.kotlin.inputs

import com.pulumi.azurenative.providerhub.inputs.ThrottlingMetricArgs.builder
import com.pulumi.azurenative.providerhub.kotlin.enums.ThrottlingMetricType
import com.pulumi.core.Either
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 kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property interval
 * @property limit
 * @property type
 */
public data class ThrottlingMetricArgs(
    public val interval: Output? = null,
    public val limit: Output,
    public val type: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.providerhub.inputs.ThrottlingMetricArgs =
        com.pulumi.azurenative.providerhub.inputs.ThrottlingMetricArgs.builder()
            .interval(interval?.applyValue({ args0 -> args0 }))
            .limit(limit.applyValue({ args0 -> args0 }))
            .type(
                type.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ThrottlingMetricArgs].
 */
@PulumiTagMarker
public class ThrottlingMetricArgsBuilder internal constructor() {
    private var interval: Output? = null

    private var limit: Output? = null

    private var type: Output>? = null

    /**
     * @param value
     */
    @JvmName("ufkccrxipdgjbyaw")
    public suspend fun interval(`value`: Output) {
        this.interval = value
    }

    /**
     * @param value
     */
    @JvmName("ajkcguunobbqvbdr")
    public suspend fun limit(`value`: Output) {
        this.limit = value
    }

    /**
     * @param value
     */
    @JvmName("enoxtsiqxipacbuy")
    public suspend fun type(`value`: Output>) {
        this.type = value
    }

    /**
     * @param value
     */
    @JvmName("atjfgluptcxhfrwq")
    public suspend fun interval(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.interval = mapped
    }

    /**
     * @param value
     */
    @JvmName("ivvgdifendxcrfmu")
    public suspend fun limit(`value`: Double) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.limit = mapped
    }

    /**
     * @param value
     */
    @JvmName("ypkcfnlelkmjxnwm")
    public suspend fun type(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value
     */
    @JvmName("erurfiifltmjlgke")
    public fun type(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value
     */
    @JvmName("nwprrxkfywglyqvo")
    public fun type(`value`: ThrottlingMetricType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): ThrottlingMetricArgs = ThrottlingMetricArgs(
        interval = interval,
        limit = limit ?: throw PulumiNullFieldException("limit"),
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy