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

com.pulumi.azure.devtest.kotlin.inputs.GlobalVMShutdownScheduleNotificationSettingsArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.devtest.kotlin.inputs

import com.pulumi.azure.devtest.inputs.GlobalVMShutdownScheduleNotificationSettingsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property email E-mail address to which the notification will be sent.
 * @property enabled Whether to enable pre-shutdown notifications. Possible values are `true` and `false`.
 * @property timeInMinutes Time in minutes between 15 and 120 before a shutdown event at which a notification will be sent. Defaults to `30`.
 * @property webhookUrl The webhook URL to which the notification will be sent.
 */
public data class GlobalVMShutdownScheduleNotificationSettingsArgs(
    public val email: Output? = null,
    public val enabled: Output,
    public val timeInMinutes: Output? = null,
    public val webhookUrl: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.devtest.inputs.GlobalVMShutdownScheduleNotificationSettingsArgs =
        com.pulumi.azure.devtest.inputs.GlobalVMShutdownScheduleNotificationSettingsArgs.builder()
            .email(email?.applyValue({ args0 -> args0 }))
            .enabled(enabled.applyValue({ args0 -> args0 }))
            .timeInMinutes(timeInMinutes?.applyValue({ args0 -> args0 }))
            .webhookUrl(webhookUrl?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GlobalVMShutdownScheduleNotificationSettingsArgs].
 */
@PulumiTagMarker
public class GlobalVMShutdownScheduleNotificationSettingsArgsBuilder internal constructor() {
    private var email: Output? = null

    private var enabled: Output? = null

    private var timeInMinutes: Output? = null

    private var webhookUrl: Output? = null

    /**
     * @param value E-mail address to which the notification will be sent.
     */
    @JvmName("sgjsjtdllojecoft")
    public suspend fun email(`value`: Output) {
        this.email = value
    }

    /**
     * @param value Whether to enable pre-shutdown notifications. Possible values are `true` and `false`.
     */
    @JvmName("korlysuntynacdwx")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Time in minutes between 15 and 120 before a shutdown event at which a notification will be sent. Defaults to `30`.
     */
    @JvmName("yoryldhjpcckpbth")
    public suspend fun timeInMinutes(`value`: Output) {
        this.timeInMinutes = value
    }

    /**
     * @param value The webhook URL to which the notification will be sent.
     */
    @JvmName("rsckryntrobildyg")
    public suspend fun webhookUrl(`value`: Output) {
        this.webhookUrl = value
    }

    /**
     * @param value E-mail address to which the notification will be sent.
     */
    @JvmName("sfagdxchgnyxamxt")
    public suspend fun email(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.email = mapped
    }

    /**
     * @param value Whether to enable pre-shutdown notifications. Possible values are `true` and `false`.
     */
    @JvmName("qqgxdmlfgssvbnvi")
    public suspend fun enabled(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value Time in minutes between 15 and 120 before a shutdown event at which a notification will be sent. Defaults to `30`.
     */
    @JvmName("tausmligprsndwxr")
    public suspend fun timeInMinutes(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeInMinutes = mapped
    }

    /**
     * @param value The webhook URL to which the notification will be sent.
     */
    @JvmName("twshlrwkyojtocmo")
    public suspend fun webhookUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.webhookUrl = mapped
    }

    internal fun build(): GlobalVMShutdownScheduleNotificationSettingsArgs =
        GlobalVMShutdownScheduleNotificationSettingsArgs(
            email = email,
            enabled = enabled ?: throw PulumiNullFieldException("enabled"),
            timeInMinutes = timeInMinutes,
            webhookUrl = webhookUrl,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy