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

com.pulumi.gcp.logging.kotlin.inputs.MetricBucketOptionsExplicitBucketsArgs.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.MetricBucketOptionsExplicitBucketsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property bounds The values must be monotonically increasing.
 */
public data class MetricBucketOptionsExplicitBucketsArgs(
    public val bounds: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.logging.inputs.MetricBucketOptionsExplicitBucketsArgs =
        com.pulumi.gcp.logging.inputs.MetricBucketOptionsExplicitBucketsArgs.builder()
            .bounds(bounds.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [MetricBucketOptionsExplicitBucketsArgs].
 */
@PulumiTagMarker
public class MetricBucketOptionsExplicitBucketsArgsBuilder internal constructor() {
    private var bounds: Output>? = null

    /**
     * @param value The values must be monotonically increasing.
     */
    @JvmName("qpavyahqscdrayek")
    public suspend fun bounds(`value`: Output>) {
        this.bounds = value
    }

    @JvmName("wnpvopjanmnuxebs")
    public suspend fun bounds(vararg values: Output) {
        this.bounds = Output.all(values.asList())
    }

    /**
     * @param values The values must be monotonically increasing.
     */
    @JvmName("scuevyaypkumsbur")
    public suspend fun bounds(values: List>) {
        this.bounds = Output.all(values)
    }

    /**
     * @param value The values must be monotonically increasing.
     */
    @JvmName("tgfoakxoltrcdmlk")
    public suspend fun bounds(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bounds = mapped
    }

    /**
     * @param values The values must be monotonically increasing.
     */
    @JvmName("gspeiaghinsjdmqq")
    public suspend fun bounds(vararg values: Double) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bounds = mapped
    }

    internal fun build(): MetricBucketOptionsExplicitBucketsArgs =
        MetricBucketOptionsExplicitBucketsArgs(
            bounds = bounds ?: throw PulumiNullFieldException("bounds"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy