com.pulumi.gcp.gkehub.kotlin.inputs.FeatureSpecClusterupgradeGkeUpgradeOverrideArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.gkehub.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkehub.inputs.FeatureSpecClusterupgradeGkeUpgradeOverrideArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property postConditions Post conditions to override for the specified upgrade.
* Structure is documented below.
* @property upgrade Which upgrade to override.
* Structure is documented below.
*/
public data class FeatureSpecClusterupgradeGkeUpgradeOverrideArgs(
public val postConditions: Output,
public val upgrade: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.gkehub.inputs.FeatureSpecClusterupgradeGkeUpgradeOverrideArgs =
com.pulumi.gcp.gkehub.inputs.FeatureSpecClusterupgradeGkeUpgradeOverrideArgs.builder()
.postConditions(postConditions.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.upgrade(upgrade.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [FeatureSpecClusterupgradeGkeUpgradeOverrideArgs].
*/
@PulumiTagMarker
public class FeatureSpecClusterupgradeGkeUpgradeOverrideArgsBuilder internal constructor() {
private var postConditions: Output? =
null
private var upgrade: Output? = null
/**
* @param value Post conditions to override for the specified upgrade.
* Structure is documented below.
*/
@JvmName("eelimdvnjqjcqkcm")
public suspend fun postConditions(`value`: Output) {
this.postConditions = value
}
/**
* @param value Which upgrade to override.
* Structure is documented below.
*/
@JvmName("lovmshvlxlusxlem")
public suspend fun upgrade(`value`: Output) {
this.upgrade = value
}
/**
* @param value Post conditions to override for the specified upgrade.
* Structure is documented below.
*/
@JvmName("bwjlxeshhuwcccxu")
public suspend fun postConditions(`value`: FeatureSpecClusterupgradeGkeUpgradeOverridePostConditionsArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.postConditions = mapped
}
/**
* @param argument Post conditions to override for the specified upgrade.
* Structure is documented below.
*/
@JvmName("tetuwfhckhubshin")
public suspend fun postConditions(argument: suspend FeatureSpecClusterupgradeGkeUpgradeOverridePostConditionsArgsBuilder.() -> Unit) {
val toBeMapped =
FeatureSpecClusterupgradeGkeUpgradeOverridePostConditionsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.postConditions = mapped
}
/**
* @param value Which upgrade to override.
* Structure is documented below.
*/
@JvmName("hkhtdojshcgyvxqw")
public suspend fun upgrade(`value`: FeatureSpecClusterupgradeGkeUpgradeOverrideUpgradeArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.upgrade = mapped
}
/**
* @param argument Which upgrade to override.
* Structure is documented below.
*/
@JvmName("nxmfqpphesxxeeku")
public suspend fun upgrade(argument: suspend FeatureSpecClusterupgradeGkeUpgradeOverrideUpgradeArgsBuilder.() -> Unit) {
val toBeMapped = FeatureSpecClusterupgradeGkeUpgradeOverrideUpgradeArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.upgrade = mapped
}
internal fun build(): FeatureSpecClusterupgradeGkeUpgradeOverrideArgs =
FeatureSpecClusterupgradeGkeUpgradeOverrideArgs(
postConditions = postConditions ?: throw PulumiNullFieldException("postConditions"),
upgrade = upgrade ?: throw PulumiNullFieldException("upgrade"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy