com.pulumi.kubernetes.apps.v1.kotlin.inputs.DeploymentStrategyPatchArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-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.kubernetes.apps.v1.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.kotlin.applySuspend
import com.pulumi.kubernetes.apps.v1.inputs.DeploymentStrategyPatchArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* DeploymentStrategy describes how to replace existing pods with new ones.
* @property rollingUpdate Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.
* @property type Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate.
*/
public data class DeploymentStrategyPatchArgs(
public val rollingUpdate: Output? = null,
public val type: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.apps.v1.inputs.DeploymentStrategyPatchArgs =
com.pulumi.kubernetes.apps.v1.inputs.DeploymentStrategyPatchArgs.builder()
.rollingUpdate(rollingUpdate?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.type(type?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DeploymentStrategyPatchArgs].
*/
@PulumiTagMarker
public class DeploymentStrategyPatchArgsBuilder internal constructor() {
private var rollingUpdate: Output? = null
private var type: Output? = null
/**
* @param value Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.
*/
@JvmName("lrdlkmruvoaqbfka")
public suspend fun rollingUpdate(`value`: Output) {
this.rollingUpdate = value
}
/**
* @param value Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate.
*/
@JvmName("dhxkjynlbffndqun")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.
*/
@JvmName("mpssfgelhbyevbgl")
public suspend fun rollingUpdate(`value`: RollingUpdateDeploymentPatchArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.rollingUpdate = mapped
}
/**
* @param argument Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.
*/
@JvmName("yxtewfpmfovhrdau")
public suspend fun rollingUpdate(argument: suspend RollingUpdateDeploymentPatchArgsBuilder.() -> Unit) {
val toBeMapped = RollingUpdateDeploymentPatchArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.rollingUpdate = mapped
}
/**
* @param value Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate.
*/
@JvmName("bsgodjmrabxrstjp")
public suspend fun type(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): DeploymentStrategyPatchArgs = DeploymentStrategyPatchArgs(
rollingUpdate = rollingUpdate,
type = type,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy