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

com.pulumi.aws.apigateway.kotlin.inputs.UsagePlanThrottleSettingsArgs.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.apigateway.kotlin.inputs

import com.pulumi.aws.apigateway.inputs.UsagePlanThrottleSettingsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property burstLimit
 * @property rateLimit
 */
public data class UsagePlanThrottleSettingsArgs(
    public val burstLimit: Output? = null,
    public val rateLimit: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.apigateway.inputs.UsagePlanThrottleSettingsArgs =
        com.pulumi.aws.apigateway.inputs.UsagePlanThrottleSettingsArgs.builder()
            .burstLimit(burstLimit?.applyValue({ args0 -> args0 }))
            .rateLimit(rateLimit?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [UsagePlanThrottleSettingsArgs].
 */
@PulumiTagMarker
public class UsagePlanThrottleSettingsArgsBuilder internal constructor() {
    private var burstLimit: Output? = null

    private var rateLimit: Output? = null

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

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

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

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

    internal fun build(): UsagePlanThrottleSettingsArgs = UsagePlanThrottleSettingsArgs(
        burstLimit = burstLimit,
        rateLimit = rateLimit,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy