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

com.pulumi.gcp.monitoring.kotlin.inputs.SloRequestBasedSliDistributionCutArgs.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.monitoring.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.monitoring.inputs.SloRequestBasedSliDistributionCutArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property distributionFilter A TimeSeries [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
 * aggregating values to quantify the good service provided.
 * Must have ValueType = DISTRIBUTION and
 * MetricKind = DELTA or MetricKind = CUMULATIVE.
 * @property range Range of numerical values. The computed good_service
 * will be the count of values x in the Distribution such
 * that range.min <= x <= range.max. inclusive of min and
 * max. Open ranges can be defined by setting
 * just one of min or max.
 * Structure is documented below.
 */
public data class SloRequestBasedSliDistributionCutArgs(
    public val distributionFilter: Output,
    public val range: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.monitoring.inputs.SloRequestBasedSliDistributionCutArgs =
        com.pulumi.gcp.monitoring.inputs.SloRequestBasedSliDistributionCutArgs.builder()
            .distributionFilter(distributionFilter.applyValue({ args0 -> args0 }))
            .range(range.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [SloRequestBasedSliDistributionCutArgs].
 */
@PulumiTagMarker
public class SloRequestBasedSliDistributionCutArgsBuilder internal constructor() {
    private var distributionFilter: Output? = null

    private var range: Output? = null

    /**
     * @param value A TimeSeries [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
     * aggregating values to quantify the good service provided.
     * Must have ValueType = DISTRIBUTION and
     * MetricKind = DELTA or MetricKind = CUMULATIVE.
     */
    @JvmName("vjkkekntegcbhxkv")
    public suspend fun distributionFilter(`value`: Output) {
        this.distributionFilter = value
    }

    /**
     * @param value Range of numerical values. The computed good_service
     * will be the count of values x in the Distribution such
     * that range.min <= x <= range.max. inclusive of min and
     * max. Open ranges can be defined by setting
     * just one of min or max.
     * Structure is documented below.
     */
    @JvmName("psfpjfxuqtkbfgow")
    public suspend fun range(`value`: Output) {
        this.range = value
    }

    /**
     * @param value A TimeSeries [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
     * aggregating values to quantify the good service provided.
     * Must have ValueType = DISTRIBUTION and
     * MetricKind = DELTA or MetricKind = CUMULATIVE.
     */
    @JvmName("tytylbfyjfppvuay")
    public suspend fun distributionFilter(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.distributionFilter = mapped
    }

    /**
     * @param value Range of numerical values. The computed good_service
     * will be the count of values x in the Distribution such
     * that range.min <= x <= range.max. inclusive of min and
     * max. Open ranges can be defined by setting
     * just one of min or max.
     * Structure is documented below.
     */
    @JvmName("hoywqjdbcppmxhoq")
    public suspend fun range(`value`: SloRequestBasedSliDistributionCutRangeArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.range = mapped
    }

    /**
     * @param argument Range of numerical values. The computed good_service
     * will be the count of values x in the Distribution such
     * that range.min <= x <= range.max. inclusive of min and
     * max. Open ranges can be defined by setting
     * just one of min or max.
     * Structure is documented below.
     */
    @JvmName("xlycwdfhfvveeprj")
    public suspend fun range(argument: suspend SloRequestBasedSliDistributionCutRangeArgsBuilder.() -> Unit) {
        val toBeMapped = SloRequestBasedSliDistributionCutRangeArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.range = mapped
    }

    internal fun build(): SloRequestBasedSliDistributionCutArgs =
        SloRequestBasedSliDistributionCutArgs(
            distributionFilter = distributionFilter ?: throw PulumiNullFieldException("distributionFilter"),
            range = range ?: throw PulumiNullFieldException("range"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy