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

com.pulumi.azure.devtest.kotlin.outputs.GlobalVMShutdownScheduleNotificationSettings.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.devtest.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 GlobalVMShutdownScheduleNotificationSettings(
    public val email: String? = null,
    public val enabled: Boolean,
    public val timeInMinutes: Int? = null,
    public val webhookUrl: String? = null,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.devtest.outputs.GlobalVMShutdownScheduleNotificationSettings):
            GlobalVMShutdownScheduleNotificationSettings = GlobalVMShutdownScheduleNotificationSettings(
            email = javaType.email().map({ args0 -> args0 }).orElse(null),
            enabled = javaType.enabled(),
            timeInMinutes = javaType.timeInMinutes().map({ args0 -> args0 }).orElse(null),
            webhookUrl = javaType.webhookUrl().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy