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

com.pulumi.kubernetes.apps.v1beta1.kotlin.inputs.RollbackConfigPatchArgs.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.kubernetes.apps.v1beta1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.apps.v1beta1.inputs.RollbackConfigPatchArgs.builder
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * DEPRECATED.
 * @property revision The revision to rollback to. If set to 0, rollback to the last revision.
 */
public data class RollbackConfigPatchArgs(
    public val revision: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.apps.v1beta1.inputs.RollbackConfigPatchArgs =
        com.pulumi.kubernetes.apps.v1beta1.inputs.RollbackConfigPatchArgs.builder()
            .revision(revision?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RollbackConfigPatchArgs].
 */
@PulumiTagMarker
public class RollbackConfigPatchArgsBuilder internal constructor() {
    private var revision: Output? = null

    /**
     * @param value The revision to rollback to. If set to 0, rollback to the last revision.
     */
    @JvmName("owaonawtxxydwhgr")
    public suspend fun revision(`value`: Output) {
        this.revision = value
    }

    /**
     * @param value The revision to rollback to. If set to 0, rollback to the last revision.
     */
    @JvmName("trhnxhgsujsxteyj")
    public suspend fun revision(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.revision = mapped
    }

    internal fun build(): RollbackConfigPatchArgs = RollbackConfigPatchArgs(
        revision = revision,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy