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

com.pulumi.azure.compute.kotlin.inputs.OrchestratedVirtualMachineScaleSetTerminationNotificationArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.compute.kotlin.inputs

import com.pulumi.azure.compute.inputs.OrchestratedVirtualMachineScaleSetTerminationNotificationArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property enabled Should the termination notification be enabled on this Virtual Machine Scale Set? Possible values `true` or `false`.
 * @property timeout Length of time (in minutes, between `5` and `15`) a notification to be sent to the VM on the instance metadata server till the VM gets deleted. The time duration should be specified in `ISO 8601` format. Defaults to `PT5M`.
 */
public data class OrchestratedVirtualMachineScaleSetTerminationNotificationArgs(
    public val enabled: Output,
    public val timeout: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.compute.inputs.OrchestratedVirtualMachineScaleSetTerminationNotificationArgs =
        com.pulumi.azure.compute.inputs.OrchestratedVirtualMachineScaleSetTerminationNotificationArgs.builder()
            .enabled(enabled.applyValue({ args0 -> args0 }))
            .timeout(timeout?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [OrchestratedVirtualMachineScaleSetTerminationNotificationArgs].
 */
@PulumiTagMarker
public class OrchestratedVirtualMachineScaleSetTerminationNotificationArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var timeout: Output? = null

    /**
     * @param value Should the termination notification be enabled on this Virtual Machine Scale Set? Possible values `true` or `false`.
     */
    @JvmName("raidmgemoheunulh")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Length of time (in minutes, between `5` and `15`) a notification to be sent to the VM on the instance metadata server till the VM gets deleted. The time duration should be specified in `ISO 8601` format. Defaults to `PT5M`.
     */
    @JvmName("mgmfmkairqancqes")
    public suspend fun timeout(`value`: Output) {
        this.timeout = value
    }

    /**
     * @param value Should the termination notification be enabled on this Virtual Machine Scale Set? Possible values `true` or `false`.
     */
    @JvmName("hnisevcefluolkos")
    public suspend fun enabled(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value Length of time (in minutes, between `5` and `15`) a notification to be sent to the VM on the instance metadata server till the VM gets deleted. The time duration should be specified in `ISO 8601` format. Defaults to `PT5M`.
     */
    @JvmName("ryapwdsbhkdeblsg")
    public suspend fun timeout(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeout = mapped
    }

    internal fun build(): OrchestratedVirtualMachineScaleSetTerminationNotificationArgs =
        OrchestratedVirtualMachineScaleSetTerminationNotificationArgs(
            enabled = enabled ?: throw PulumiNullFieldException("enabled"),
            timeout = timeout,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy