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

com.pulumi.azure.kotlin.inputs.ProviderFeaturesVirtualMachineArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.kotlin.inputs

import com.pulumi.azure.inputs.ProviderFeaturesVirtualMachineArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property deleteOsDiskOnDeletion
 * @property detachImplicitDataDiskOnDeletion
 * @property gracefulShutdown
 * @property skipShutdownAndForceDelete
 */
public data class ProviderFeaturesVirtualMachineArgs(
    public val deleteOsDiskOnDeletion: Output? = null,
    public val detachImplicitDataDiskOnDeletion: Output? = null,
    public val gracefulShutdown: Output? = null,
    public val skipShutdownAndForceDelete: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.inputs.ProviderFeaturesVirtualMachineArgs =
        com.pulumi.azure.inputs.ProviderFeaturesVirtualMachineArgs.builder()
            .deleteOsDiskOnDeletion(deleteOsDiskOnDeletion?.applyValue({ args0 -> args0 }))
            .detachImplicitDataDiskOnDeletion(detachImplicitDataDiskOnDeletion?.applyValue({ args0 -> args0 }))
            .gracefulShutdown(gracefulShutdown?.applyValue({ args0 -> args0 }))
            .skipShutdownAndForceDelete(skipShutdownAndForceDelete?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ProviderFeaturesVirtualMachineArgs].
 */
@PulumiTagMarker
public class ProviderFeaturesVirtualMachineArgsBuilder internal constructor() {
    private var deleteOsDiskOnDeletion: Output? = null

    private var detachImplicitDataDiskOnDeletion: Output? = null

    private var gracefulShutdown: Output? = null

    private var skipShutdownAndForceDelete: Output? = null

    /**
     * @param value
     */
    @JvmName("dodbffqvxbkksqyc")
    public suspend fun deleteOsDiskOnDeletion(`value`: Output) {
        this.deleteOsDiskOnDeletion = value
    }

    /**
     * @param value
     */
    @JvmName("aedxilnqpxfuwdrl")
    public suspend fun detachImplicitDataDiskOnDeletion(`value`: Output) {
        this.detachImplicitDataDiskOnDeletion = value
    }

    /**
     * @param value
     */
    @JvmName("nsecqkcmrtorftny")
    public suspend fun gracefulShutdown(`value`: Output) {
        this.gracefulShutdown = value
    }

    /**
     * @param value
     */
    @JvmName("uhbnblhjejkxvaln")
    public suspend fun skipShutdownAndForceDelete(`value`: Output) {
        this.skipShutdownAndForceDelete = value
    }

    /**
     * @param value
     */
    @JvmName("brrgvvgfsibfowlv")
    public suspend fun deleteOsDiskOnDeletion(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deleteOsDiskOnDeletion = mapped
    }

    /**
     * @param value
     */
    @JvmName("ulsgfywbwevvxbrp")
    public suspend fun detachImplicitDataDiskOnDeletion(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.detachImplicitDataDiskOnDeletion = mapped
    }

    /**
     * @param value
     */
    @JvmName("jtkficcfjihkhpug")
    public suspend fun gracefulShutdown(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.gracefulShutdown = mapped
    }

    /**
     * @param value
     */
    @JvmName("enawnkvcspajuslw")
    public suspend fun skipShutdownAndForceDelete(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.skipShutdownAndForceDelete = mapped
    }

    internal fun build(): ProviderFeaturesVirtualMachineArgs = ProviderFeaturesVirtualMachineArgs(
        deleteOsDiskOnDeletion = deleteOsDiskOnDeletion,
        detachImplicitDataDiskOnDeletion = detachImplicitDataDiskOnDeletion,
        gracefulShutdown = gracefulShutdown,
        skipShutdownAndForceDelete = skipShutdownAndForceDelete,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy