
com.pulumi.azurenative.containerservice.kotlin.inputs.ManagedClusterAutoUpgradeProfileArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.containerservice.kotlin.inputs
import com.pulumi.azurenative.containerservice.inputs.ManagedClusterAutoUpgradeProfileArgs.builder
import com.pulumi.azurenative.containerservice.kotlin.enums.UpgradeChannel
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Auto upgrade profile for a managed cluster.
* @property upgradeChannel For more information see [setting the AKS cluster auto-upgrade channel](https://docs.microsoft.com/azure/aks/upgrade-cluster#set-auto-upgrade-channel).
*/
public data class ManagedClusterAutoUpgradeProfileArgs(
public val upgradeChannel: Output>? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.containerservice.inputs.ManagedClusterAutoUpgradeProfileArgs =
com.pulumi.azurenative.containerservice.inputs.ManagedClusterAutoUpgradeProfileArgs.builder()
.upgradeChannel(
upgradeChannel?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [ManagedClusterAutoUpgradeProfileArgs].
*/
@PulumiTagMarker
public class ManagedClusterAutoUpgradeProfileArgsBuilder internal constructor() {
private var upgradeChannel: Output>? = null
/**
* @param value For more information see [setting the AKS cluster auto-upgrade channel](https://docs.microsoft.com/azure/aks/upgrade-cluster#set-auto-upgrade-channel).
*/
@JvmName("mmieqrvicgvcxkfg")
public suspend fun upgradeChannel(`value`: Output>) {
this.upgradeChannel = value
}
/**
* @param value For more information see [setting the AKS cluster auto-upgrade channel](https://docs.microsoft.com/azure/aks/upgrade-cluster#set-auto-upgrade-channel).
*/
@JvmName("irtqdnopokpklfvh")
public suspend fun upgradeChannel(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.upgradeChannel = mapped
}
/**
* @param value For more information see [setting the AKS cluster auto-upgrade channel](https://docs.microsoft.com/azure/aks/upgrade-cluster#set-auto-upgrade-channel).
*/
@JvmName("iefoiunqcidkjwwn")
public fun upgradeChannel(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.upgradeChannel = mapped
}
/**
* @param value For more information see [setting the AKS cluster auto-upgrade channel](https://docs.microsoft.com/azure/aks/upgrade-cluster#set-auto-upgrade-channel).
*/
@JvmName("mjkiengwdgxcrikd")
public fun upgradeChannel(`value`: UpgradeChannel) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.upgradeChannel = mapped
}
internal fun build(): ManagedClusterAutoUpgradeProfileArgs = ManagedClusterAutoUpgradeProfileArgs(
upgradeChannel = upgradeChannel,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy