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

com.pulumi.gcp.logging.kotlin.inputs.MetricBucketOptionsExponentialBucketsArgs.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: 8.10.0.0
Show newest version
@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.MetricBucketOptionsExponentialBucketsArgs.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 growthFactor Must be greater than 1.
 * @property numFiniteBuckets Must be greater than 0.
 * @property scale Must be greater than 0.
 */
public data class MetricBucketOptionsExponentialBucketsArgs(
    public val growthFactor: Output,
    public val numFiniteBuckets: Output,
    public val scale: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.logging.inputs.MetricBucketOptionsExponentialBucketsArgs =
        com.pulumi.gcp.logging.inputs.MetricBucketOptionsExponentialBucketsArgs.builder()
            .growthFactor(growthFactor.applyValue({ args0 -> args0 }))
            .numFiniteBuckets(numFiniteBuckets.applyValue({ args0 -> args0 }))
            .scale(scale.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [MetricBucketOptionsExponentialBucketsArgs].
 */
@PulumiTagMarker
public class MetricBucketOptionsExponentialBucketsArgsBuilder internal constructor() {
    private var growthFactor: Output? = null

    private var numFiniteBuckets: Output? = null

    private var scale: Output? = null

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

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

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

    /**
     * @param value Must be greater than 1.
     */
    @JvmName("bbxhfqolvfceflfk")
    public suspend fun growthFactor(`value`: Double) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.growthFactor = mapped
    }

    /**
     * @param value Must be greater than 0.
     */
    @JvmName("pevaqdurmhkfvfmf")
    public suspend fun numFiniteBuckets(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.numFiniteBuckets = mapped
    }

    /**
     * @param value Must be greater than 0.
     */
    @JvmName("abrpxfexddkcuqbc")
    public suspend fun scale(`value`: Double) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scale = mapped
    }

    internal fun build(): MetricBucketOptionsExponentialBucketsArgs =
        MetricBucketOptionsExponentialBucketsArgs(
            growthFactor = growthFactor ?: throw PulumiNullFieldException("growthFactor"),
            numFiniteBuckets = numFiniteBuckets ?: throw PulumiNullFieldException("numFiniteBuckets"),
            scale = scale ?: throw PulumiNullFieldException("scale"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy