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

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

/**
 * A collection of arguments for invoking getNotificationChannel.
 * @property displayName The display name for this notification channel.
 * @property labels Labels (corresponding to the
 * NotificationChannelDescriptor schema) to filter the notification channels by.
 * @property project The ID of the project in which the resource belongs.
 * If it is not provided, the provider project is used.
 * @property type The type of the notification channel.
 * - - -
 * Other optional fields include:
 * @property userLabels User-provided key-value labels to filter by.
 */
public data class GetNotificationChannelPlainArgs(
    public val displayName: String? = null,
    public val labels: Map? = null,
    public val project: String? = null,
    public val type: String? = null,
    public val userLabels: Map? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.monitoring.inputs.GetNotificationChannelPlainArgs =
        com.pulumi.gcp.monitoring.inputs.GetNotificationChannelPlainArgs.builder()
            .displayName(displayName?.let({ args0 -> args0 }))
            .labels(labels?.let({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .project(project?.let({ args0 -> args0 }))
            .type(type?.let({ args0 -> args0 }))
            .userLabels(
                userLabels?.let({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [GetNotificationChannelPlainArgs].
 */
@PulumiTagMarker
public class GetNotificationChannelPlainArgsBuilder internal constructor() {
    private var displayName: String? = null

    private var labels: Map? = null

    private var project: String? = null

    private var type: String? = null

    private var userLabels: Map? = null

    /**
     * @param value The display name for this notification channel.
     */
    @JvmName("etcehxlopnpufdqb")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.displayName = mapped
    }

    /**
     * @param value Labels (corresponding to the
     * NotificationChannelDescriptor schema) to filter the notification channels by.
     */
    @JvmName("iaithtvglbecehgk")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.labels = mapped
    }

    /**
     * @param values Labels (corresponding to the
     * NotificationChannelDescriptor schema) to filter the notification channels by.
     */
    @JvmName("oqijnuwyukbrwvxm")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.labels = mapped
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    @JvmName("tevpneefnodkddmx")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.project = mapped
    }

    /**
     * @param value The type of the notification channel.
     * - - -
     * Other optional fields include:
     */
    @JvmName("fdhqqqtvaprbthmp")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.type = mapped
    }

    /**
     * @param value User-provided key-value labels to filter by.
     */
    @JvmName("laeciubkuxpkcluu")
    public suspend fun userLabels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.userLabels = mapped
    }

    /**
     * @param values User-provided key-value labels to filter by.
     */
    @JvmName("kterwtvcqvqnxyee")
    public fun userLabels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.userLabels = mapped
    }

    internal fun build(): GetNotificationChannelPlainArgs = GetNotificationChannelPlainArgs(
        displayName = displayName,
        labels = labels,
        project = project,
        type = type,
        userLabels = userLabels,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy