com.pulumi.gcp.logging.kotlin.inputs.MetricBucketOptionsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.logging.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.logging.inputs.MetricBucketOptionsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property explicitBuckets Specifies a set of buckets with arbitrary widths.
* Structure is documented below.
* @property exponentialBuckets Specifies an exponential sequence of buckets that have a width that is proportional to the value of
* the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.
* Structure is documented below.
* @property linearBuckets Specifies a linear sequence of buckets that all have the same width (except overflow and underflow).
* Each bucket represents a constant absolute uncertainty on the specific value in the bucket.
* Structure is documented below.
*/
public data class MetricBucketOptionsArgs(
public val explicitBuckets: Output? = null,
public val exponentialBuckets: Output? = null,
public val linearBuckets: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.logging.inputs.MetricBucketOptionsArgs =
com.pulumi.gcp.logging.inputs.MetricBucketOptionsArgs.builder()
.explicitBuckets(explicitBuckets?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.exponentialBuckets(
exponentialBuckets?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.linearBuckets(linearBuckets?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [MetricBucketOptionsArgs].
*/
@PulumiTagMarker
public class MetricBucketOptionsArgsBuilder internal constructor() {
private var explicitBuckets: Output? = null
private var exponentialBuckets: Output? = null
private var linearBuckets: Output? = null
/**
* @param value Specifies a set of buckets with arbitrary widths.
* Structure is documented below.
*/
@JvmName("uwqjcmxctamivijy")
public suspend fun explicitBuckets(`value`: Output) {
this.explicitBuckets = value
}
/**
* @param value Specifies an exponential sequence of buckets that have a width that is proportional to the value of
* the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.
* Structure is documented below.
*/
@JvmName("gcpcidpltfbpdyua")
public suspend fun exponentialBuckets(`value`: Output) {
this.exponentialBuckets = value
}
/**
* @param value Specifies a linear sequence of buckets that all have the same width (except overflow and underflow).
* Each bucket represents a constant absolute uncertainty on the specific value in the bucket.
* Structure is documented below.
*/
@JvmName("dntlfunxbmknsnwe")
public suspend fun linearBuckets(`value`: Output) {
this.linearBuckets = value
}
/**
* @param value Specifies a set of buckets with arbitrary widths.
* Structure is documented below.
*/
@JvmName("iswrlqvcpnhkmyui")
public suspend fun explicitBuckets(`value`: MetricBucketOptionsExplicitBucketsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.explicitBuckets = mapped
}
/**
* @param argument Specifies a set of buckets with arbitrary widths.
* Structure is documented below.
*/
@JvmName("stmijlevqalqycew")
public suspend fun explicitBuckets(argument: suspend MetricBucketOptionsExplicitBucketsArgsBuilder.() -> Unit) {
val toBeMapped = MetricBucketOptionsExplicitBucketsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.explicitBuckets = mapped
}
/**
* @param value Specifies an exponential sequence of buckets that have a width that is proportional to the value of
* the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.
* Structure is documented below.
*/
@JvmName("bycetskrwxsjhpsa")
public suspend fun exponentialBuckets(`value`: MetricBucketOptionsExponentialBucketsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.exponentialBuckets = mapped
}
/**
* @param argument Specifies an exponential sequence of buckets that have a width that is proportional to the value of
* the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.
* Structure is documented below.
*/
@JvmName("mpavgguccdyyflon")
public suspend fun exponentialBuckets(argument: suspend MetricBucketOptionsExponentialBucketsArgsBuilder.() -> Unit) {
val toBeMapped = MetricBucketOptionsExponentialBucketsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.exponentialBuckets = mapped
}
/**
* @param value Specifies a linear sequence of buckets that all have the same width (except overflow and underflow).
* Each bucket represents a constant absolute uncertainty on the specific value in the bucket.
* Structure is documented below.
*/
@JvmName("hfeluognvruxbnsb")
public suspend fun linearBuckets(`value`: MetricBucketOptionsLinearBucketsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.linearBuckets = mapped
}
/**
* @param argument Specifies a linear sequence of buckets that all have the same width (except overflow and underflow).
* Each bucket represents a constant absolute uncertainty on the specific value in the bucket.
* Structure is documented below.
*/
@JvmName("hravdtqujsghftrb")
public suspend fun linearBuckets(argument: suspend MetricBucketOptionsLinearBucketsArgsBuilder.() -> Unit) {
val toBeMapped = MetricBucketOptionsLinearBucketsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.linearBuckets = mapped
}
internal fun build(): MetricBucketOptionsArgs = MetricBucketOptionsArgs(
explicitBuckets = explicitBuckets,
exponentialBuckets = exponentialBuckets,
linearBuckets = linearBuckets,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy