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

com.pulumi.googlenative.logging.v2.kotlin.inputs.LinearArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.logging.v2.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.logging.v2.inputs.LinearArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * 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.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): offset + (width * i).Lower bound (1 <= i < N): offset + (width * (i - 1)).
 * @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 LinearArgs(
    public val numFiniteBuckets: Output? = null,
    public val offset: Output? = null,
    public val width: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.logging.v2.inputs.LinearArgs =
        com.pulumi.googlenative.logging.v2.inputs.LinearArgs.builder()
            .numFiniteBuckets(numFiniteBuckets?.applyValue({ args0 -> args0 }))
            .offset(offset?.applyValue({ args0 -> args0 }))
            .width(width?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LinearArgs].
 */
@PulumiTagMarker
public class LinearArgsBuilder 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("fvgvxgajfwvqqkqb")
    public suspend fun numFiniteBuckets(`value`: Output) {
        this.numFiniteBuckets = value
    }

    /**
     * @param value Lower bound of the first bucket.
     */
    @JvmName("kwwvanjcfiolqerr")
    public suspend fun offset(`value`: Output) {
        this.offset = value
    }

    /**
     * @param value Must be greater than 0.
     */
    @JvmName("lpiucrxbafloecpm")
    public suspend fun width(`value`: Output) {
        this.width = value
    }

    /**
     * @param value Must be greater than 0.
     */
    @JvmName("dfelsdwsdxfmowil")
    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("slmcbamgwkqstave")
    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("dtbbokafhtsharlj")
    public suspend fun width(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.width = mapped
    }

    internal fun build(): LinearArgs = LinearArgs(
        numFiniteBuckets = numFiniteBuckets,
        offset = offset,
        width = width,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy