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

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

package com.pulumi.gcp.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.InstanceTemplateSchedulingOnInstanceStopActionArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property discardLocalSsd Whether to discard local SSDs attached to the VM while terminating using `max_run_duration`. Only supports `true` at this point.
 */
public data class InstanceTemplateSchedulingOnInstanceStopActionArgs(
    public val discardLocalSsd: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.InstanceTemplateSchedulingOnInstanceStopActionArgs =
        com.pulumi.gcp.compute.inputs.InstanceTemplateSchedulingOnInstanceStopActionArgs.builder()
            .discardLocalSsd(discardLocalSsd?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceTemplateSchedulingOnInstanceStopActionArgs].
 */
@PulumiTagMarker
public class InstanceTemplateSchedulingOnInstanceStopActionArgsBuilder internal constructor() {
    private var discardLocalSsd: Output? = null

    /**
     * @param value Whether to discard local SSDs attached to the VM while terminating using `max_run_duration`. Only supports `true` at this point.
     */
    @JvmName("dlikgyfquqwvdqdl")
    public suspend fun discardLocalSsd(`value`: Output) {
        this.discardLocalSsd = value
    }

    /**
     * @param value Whether to discard local SSDs attached to the VM while terminating using `max_run_duration`. Only supports `true` at this point.
     */
    @JvmName("qqgvjunlkwqglwcr")
    public suspend fun discardLocalSsd(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.discardLocalSsd = mapped
    }

    internal fun build(): InstanceTemplateSchedulingOnInstanceStopActionArgs =
        InstanceTemplateSchedulingOnInstanceStopActionArgs(
            discardLocalSsd = discardLocalSsd,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy