com.pulumi.aws.apigateway.kotlin.inputs.UsagePlanThrottleSettingsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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