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

com.pulumi.gcp.monitoring.kotlin.inputs.SloBasicSliArgs.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.12.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.SloBasicSliArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property availability Availability based SLI, dervied from count of requests made to this service that return successfully.
 * Structure is documented below.
 * @property latency Parameters for a latency threshold SLI.
 * Structure is documented below.
 * @property locations An optional set of locations to which this SLI is relevant.
 * Telemetry from other locations will not be used to calculate
 * performance for this SLI. If omitted, this SLI applies to all
 * locations in which the Service has activity. For service types
 * that don't support breaking down by location, setting this
 * field will result in an error.
 * @property methods An optional set of RPCs to which this SLI is relevant.
 * Telemetry from other methods will not be used to calculate
 * performance for this SLI. If omitted, this SLI applies to all
 * the Service's methods. For service types that don't support
 * breaking down by method, setting this field will result in an
 * error.
 * @property versions The set of API versions to which this SLI is relevant.
 * Telemetry from other API versions will not be used to
 * calculate performance for this SLI. If omitted,
 * this SLI applies to all API versions. For service types
 * that don't support breaking down by version, setting this
 * field will result in an error.
 */
public data class SloBasicSliArgs(
    public val availability: Output? = null,
    public val latency: Output? = null,
    public val locations: Output>? = null,
    public val methods: Output>? = null,
    public val versions: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.monitoring.inputs.SloBasicSliArgs =
        com.pulumi.gcp.monitoring.inputs.SloBasicSliArgs.builder()
            .availability(availability?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .latency(latency?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .locations(locations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .methods(methods?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .versions(versions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [SloBasicSliArgs].
 */
@PulumiTagMarker
public class SloBasicSliArgsBuilder internal constructor() {
    private var availability: Output? = null

    private var latency: Output? = null

    private var locations: Output>? = null

    private var methods: Output>? = null

    private var versions: Output>? = null

    /**
     * @param value Availability based SLI, dervied from count of requests made to this service that return successfully.
     * Structure is documented below.
     */
    @JvmName("mnyobhaxsabicfnt")
    public suspend fun availability(`value`: Output) {
        this.availability = value
    }

    /**
     * @param value Parameters for a latency threshold SLI.
     * Structure is documented below.
     */
    @JvmName("pedxyxnwahecgvgh")
    public suspend fun latency(`value`: Output) {
        this.latency = value
    }

    /**
     * @param value An optional set of locations to which this SLI is relevant.
     * Telemetry from other locations will not be used to calculate
     * performance for this SLI. If omitted, this SLI applies to all
     * locations in which the Service has activity. For service types
     * that don't support breaking down by location, setting this
     * field will result in an error.
     */
    @JvmName("ckulfejcaftsisjm")
    public suspend fun locations(`value`: Output>) {
        this.locations = value
    }

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

    /**
     * @param values An optional set of locations to which this SLI is relevant.
     * Telemetry from other locations will not be used to calculate
     * performance for this SLI. If omitted, this SLI applies to all
     * locations in which the Service has activity. For service types
     * that don't support breaking down by location, setting this
     * field will result in an error.
     */
    @JvmName("uqjtvgbrntpdekel")
    public suspend fun locations(values: List>) {
        this.locations = Output.all(values)
    }

    /**
     * @param value An optional set of RPCs to which this SLI is relevant.
     * Telemetry from other methods will not be used to calculate
     * performance for this SLI. If omitted, this SLI applies to all
     * the Service's methods. For service types that don't support
     * breaking down by method, setting this field will result in an
     * error.
     */
    @JvmName("fiwbjfqkyjqoieve")
    public suspend fun methods(`value`: Output>) {
        this.methods = value
    }

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

    /**
     * @param values An optional set of RPCs to which this SLI is relevant.
     * Telemetry from other methods will not be used to calculate
     * performance for this SLI. If omitted, this SLI applies to all
     * the Service's methods. For service types that don't support
     * breaking down by method, setting this field will result in an
     * error.
     */
    @JvmName("kdaybbqqoeksostf")
    public suspend fun methods(values: List>) {
        this.methods = Output.all(values)
    }

    /**
     * @param value The set of API versions to which this SLI is relevant.
     * Telemetry from other API versions will not be used to
     * calculate performance for this SLI. If omitted,
     * this SLI applies to all API versions. For service types
     * that don't support breaking down by version, setting this
     * field will result in an error.
     */
    @JvmName("jcqniowrsdkluvpa")
    public suspend fun versions(`value`: Output>) {
        this.versions = value
    }

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

    /**
     * @param values The set of API versions to which this SLI is relevant.
     * Telemetry from other API versions will not be used to
     * calculate performance for this SLI. If omitted,
     * this SLI applies to all API versions. For service types
     * that don't support breaking down by version, setting this
     * field will result in an error.
     */
    @JvmName("bdqfiixjheqebfyb")
    public suspend fun versions(values: List>) {
        this.versions = Output.all(values)
    }

    /**
     * @param value Availability based SLI, dervied from count of requests made to this service that return successfully.
     * Structure is documented below.
     */
    @JvmName("krmwhdpwpjjdxmyq")
    public suspend fun availability(`value`: SloBasicSliAvailabilityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.availability = mapped
    }

    /**
     * @param argument Availability based SLI, dervied from count of requests made to this service that return successfully.
     * Structure is documented below.
     */
    @JvmName("tnosjnvbkgkdbctx")
    public suspend fun availability(argument: suspend SloBasicSliAvailabilityArgsBuilder.() -> Unit) {
        val toBeMapped = SloBasicSliAvailabilityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.availability = mapped
    }

    /**
     * @param value Parameters for a latency threshold SLI.
     * Structure is documented below.
     */
    @JvmName("hfspxcdlymdyyene")
    public suspend fun latency(`value`: SloBasicSliLatencyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.latency = mapped
    }

    /**
     * @param argument Parameters for a latency threshold SLI.
     * Structure is documented below.
     */
    @JvmName("xgmsfhidavhgvmht")
    public suspend fun latency(argument: suspend SloBasicSliLatencyArgsBuilder.() -> Unit) {
        val toBeMapped = SloBasicSliLatencyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.latency = mapped
    }

    /**
     * @param value An optional set of locations to which this SLI is relevant.
     * Telemetry from other locations will not be used to calculate
     * performance for this SLI. If omitted, this SLI applies to all
     * locations in which the Service has activity. For service types
     * that don't support breaking down by location, setting this
     * field will result in an error.
     */
    @JvmName("utblecuuwcfkytmp")
    public suspend fun locations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.locations = mapped
    }

    /**
     * @param values An optional set of locations to which this SLI is relevant.
     * Telemetry from other locations will not be used to calculate
     * performance for this SLI. If omitted, this SLI applies to all
     * locations in which the Service has activity. For service types
     * that don't support breaking down by location, setting this
     * field will result in an error.
     */
    @JvmName("vfbpvithfcriiqnq")
    public suspend fun locations(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.locations = mapped
    }

    /**
     * @param value An optional set of RPCs to which this SLI is relevant.
     * Telemetry from other methods will not be used to calculate
     * performance for this SLI. If omitted, this SLI applies to all
     * the Service's methods. For service types that don't support
     * breaking down by method, setting this field will result in an
     * error.
     */
    @JvmName("flyjkvrgkewibcfk")
    public suspend fun methods(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.methods = mapped
    }

    /**
     * @param values An optional set of RPCs to which this SLI is relevant.
     * Telemetry from other methods will not be used to calculate
     * performance for this SLI. If omitted, this SLI applies to all
     * the Service's methods. For service types that don't support
     * breaking down by method, setting this field will result in an
     * error.
     */
    @JvmName("nfpklmkcppoabxqm")
    public suspend fun methods(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.methods = mapped
    }

    /**
     * @param value The set of API versions to which this SLI is relevant.
     * Telemetry from other API versions will not be used to
     * calculate performance for this SLI. If omitted,
     * this SLI applies to all API versions. For service types
     * that don't support breaking down by version, setting this
     * field will result in an error.
     */
    @JvmName("ibthtnlydnwopavc")
    public suspend fun versions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.versions = mapped
    }

    /**
     * @param values The set of API versions to which this SLI is relevant.
     * Telemetry from other API versions will not be used to
     * calculate performance for this SLI. If omitted,
     * this SLI applies to all API versions. For service types
     * that don't support breaking down by version, setting this
     * field will result in an error.
     */
    @JvmName("cawitkffugenfdqw")
    public suspend fun versions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.versions = mapped
    }

    internal fun build(): SloBasicSliArgs = SloBasicSliArgs(
        availability = availability,
        latency = latency,
        locations = locations,
        methods = methods,
        versions = versions,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy