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

com.pulumi.googlenative.integrations.v1alpha.kotlin.inputs.GoogleCloudIntegrationsV1alphaSuccessPolicyArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.integrations.v1alpha.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.integrations.v1alpha.inputs.GoogleCloudIntegrationsV1alphaSuccessPolicyArgs.builder
import com.pulumi.googlenative.integrations.v1alpha.kotlin.enums.GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Policy that dictates the behavior for the task after it completes successfully.
 * @property finalState State to which the execution snapshot status will be set if the task succeeds.
 */
public data class GoogleCloudIntegrationsV1alphaSuccessPolicyArgs(
    public val finalState: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.integrations.v1alpha.inputs.GoogleCloudIntegrationsV1alphaSuccessPolicyArgs =
        com.pulumi.googlenative.integrations.v1alpha.inputs.GoogleCloudIntegrationsV1alphaSuccessPolicyArgs.builder()
            .finalState(finalState?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [GoogleCloudIntegrationsV1alphaSuccessPolicyArgs].
 */
@PulumiTagMarker
public class GoogleCloudIntegrationsV1alphaSuccessPolicyArgsBuilder internal constructor() {
    private var finalState: Output? = null

    /**
     * @param value State to which the execution snapshot status will be set if the task succeeds.
     */
    @JvmName("vcbrjdguqqthxvpm")
    public suspend fun finalState(`value`: Output) {
        this.finalState = value
    }

    /**
     * @param value State to which the execution snapshot status will be set if the task succeeds.
     */
    @JvmName("aewlakmucnudjwsv")
    public suspend fun finalState(`value`: GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.finalState = mapped
    }

    internal fun build(): GoogleCloudIntegrationsV1alphaSuccessPolicyArgs =
        GoogleCloudIntegrationsV1alphaSuccessPolicyArgs(
            finalState = finalState,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy