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

com.pulumi.gcp.monitoring.kotlin.inputs.GenericServiceBasicServiceArgs.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.13.1.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.GenericServiceBasicServiceArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property serviceLabels Labels that specify the resource that emits the monitoring data
 * which is used for SLO reporting of this `Service`.
 * @property serviceType The type of service that this basic service defines, e.g.
 * APP_ENGINE service type
 */
public data class GenericServiceBasicServiceArgs(
    public val serviceLabels: Output>? = null,
    public val serviceType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.monitoring.inputs.GenericServiceBasicServiceArgs =
        com.pulumi.gcp.monitoring.inputs.GenericServiceBasicServiceArgs.builder()
            .serviceLabels(
                serviceLabels?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .serviceType(serviceType?.applyValue({ args0 -> args0 })).build()
}

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

    private var serviceType: Output? = null

    /**
     * @param value Labels that specify the resource that emits the monitoring data
     * which is used for SLO reporting of this `Service`.
     */
    @JvmName("krhddrymfjaqrkkm")
    public suspend fun serviceLabels(`value`: Output>) {
        this.serviceLabels = value
    }

    /**
     * @param value The type of service that this basic service defines, e.g.
     * APP_ENGINE service type
     */
    @JvmName("ulaaqivdnottklck")
    public suspend fun serviceType(`value`: Output) {
        this.serviceType = value
    }

    /**
     * @param value Labels that specify the resource that emits the monitoring data
     * which is used for SLO reporting of this `Service`.
     */
    @JvmName("dlhcnljdcqslxtjr")
    public suspend fun serviceLabels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceLabels = mapped
    }

    /**
     * @param values Labels that specify the resource that emits the monitoring data
     * which is used for SLO reporting of this `Service`.
     */
    @JvmName("ntlwwwwdmukwdsbp")
    public fun serviceLabels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serviceLabels = mapped
    }

    /**
     * @param value The type of service that this basic service defines, e.g.
     * APP_ENGINE service type
     */
    @JvmName("wnthrffoeylvvsep")
    public suspend fun serviceType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceType = mapped
    }

    internal fun build(): GenericServiceBasicServiceArgs = GenericServiceBasicServiceArgs(
        serviceLabels = serviceLabels,
        serviceType = serviceType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy