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

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

/**
 *
 * @property notificationChannelNames The notification channels that these settings apply to. Each of these
 * correspond to the name field in one of the NotificationChannel objects
 * referenced in the notification_channels field of this AlertPolicy. The format is
 * `projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]`
 * @property renotifyInterval The frequency at which to send reminder notifications for open incidents.
 */
public data class AlertPolicyAlertStrategyNotificationChannelStrategyArgs(
    public val notificationChannelNames: Output>? = null,
    public val renotifyInterval: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.monitoring.inputs.AlertPolicyAlertStrategyNotificationChannelStrategyArgs =
        com.pulumi.gcp.monitoring.inputs.AlertPolicyAlertStrategyNotificationChannelStrategyArgs.builder()
            .notificationChannelNames(
                notificationChannelNames?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .renotifyInterval(renotifyInterval?.applyValue({ args0 -> args0 })).build()
}

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

    private var renotifyInterval: Output? = null

    /**
     * @param value The notification channels that these settings apply to. Each of these
     * correspond to the name field in one of the NotificationChannel objects
     * referenced in the notification_channels field of this AlertPolicy. The format is
     * `projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]`
     */
    @JvmName("maklwyhhtramrnaf")
    public suspend fun notificationChannelNames(`value`: Output>) {
        this.notificationChannelNames = value
    }

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

    /**
     * @param values The notification channels that these settings apply to. Each of these
     * correspond to the name field in one of the NotificationChannel objects
     * referenced in the notification_channels field of this AlertPolicy. The format is
     * `projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]`
     */
    @JvmName("ertjacfrwnehghqf")
    public suspend fun notificationChannelNames(values: List>) {
        this.notificationChannelNames = Output.all(values)
    }

    /**
     * @param value The frequency at which to send reminder notifications for open incidents.
     */
    @JvmName("jhddfajnvhsqctma")
    public suspend fun renotifyInterval(`value`: Output) {
        this.renotifyInterval = value
    }

    /**
     * @param value The notification channels that these settings apply to. Each of these
     * correspond to the name field in one of the NotificationChannel objects
     * referenced in the notification_channels field of this AlertPolicy. The format is
     * `projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]`
     */
    @JvmName("ivnswmkbdjpcjelx")
    public suspend fun notificationChannelNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notificationChannelNames = mapped
    }

    /**
     * @param values The notification channels that these settings apply to. Each of these
     * correspond to the name field in one of the NotificationChannel objects
     * referenced in the notification_channels field of this AlertPolicy. The format is
     * `projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]`
     */
    @JvmName("wdjbxmtxhcytimja")
    public suspend fun notificationChannelNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.notificationChannelNames = mapped
    }

    /**
     * @param value The frequency at which to send reminder notifications for open incidents.
     */
    @JvmName("uvrbgvtubqngiwod")
    public suspend fun renotifyInterval(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.renotifyInterval = mapped
    }

    internal fun build(): AlertPolicyAlertStrategyNotificationChannelStrategyArgs =
        AlertPolicyAlertStrategyNotificationChannelStrategyArgs(
            notificationChannelNames = notificationChannelNames,
            renotifyInterval = renotifyInterval,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy