![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.gcp.logging.kotlin.inputs.MetricBucketOptionsLinearBucketsArgs.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.MetricBucketOptionsLinearBucketsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property numFiniteBuckets Must be greater than 0.
* @property offset Lower bound of the first bucket.
* @property width Must be greater than 0.
*/
public data class MetricBucketOptionsLinearBucketsArgs(
public val numFiniteBuckets: Output,
public val offset: Output,
public val width: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.logging.inputs.MetricBucketOptionsLinearBucketsArgs =
com.pulumi.gcp.logging.inputs.MetricBucketOptionsLinearBucketsArgs.builder()
.numFiniteBuckets(numFiniteBuckets.applyValue({ args0 -> args0 }))
.offset(offset.applyValue({ args0 -> args0 }))
.width(width.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [MetricBucketOptionsLinearBucketsArgs].
*/
@PulumiTagMarker
public class MetricBucketOptionsLinearBucketsArgsBuilder internal constructor() {
private var numFiniteBuckets: Output? = null
private var offset: Output? = null
private var width: Output? = null
/**
* @param value Must be greater than 0.
*/
@JvmName("loauulpaetnrmrdy")
public suspend fun numFiniteBuckets(`value`: Output) {
this.numFiniteBuckets = value
}
/**
* @param value Lower bound of the first bucket.
*/
@JvmName("acxkfoxhyofhhqjr")
public suspend fun offset(`value`: Output) {
this.offset = value
}
/**
* @param value Must be greater than 0.
*/
@JvmName("wcgwacrsevkgowxn")
public suspend fun width(`value`: Output) {
this.width = value
}
/**
* @param value Must be greater than 0.
*/
@JvmName("hnufsekeixixuvhb")
public suspend fun numFiniteBuckets(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.numFiniteBuckets = mapped
}
/**
* @param value Lower bound of the first bucket.
*/
@JvmName("idrjqgkxjpfvvyte")
public suspend fun offset(`value`: Double) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.offset = mapped
}
/**
* @param value Must be greater than 0.
*/
@JvmName("mcjchrtmxlcijskw")
public suspend fun width(`value`: Double) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.width = mapped
}
internal fun build(): MetricBucketOptionsLinearBucketsArgs = MetricBucketOptionsLinearBucketsArgs(
numFiniteBuckets = numFiniteBuckets ?: throw PulumiNullFieldException("numFiniteBuckets"),
offset = offset ?: throw PulumiNullFieldException("offset"),
width = width ?: throw PulumiNullFieldException("width"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy