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

com.pulumi.kubernetes.apps.v1.kotlin.inputs.DaemonSetUpdateStrategyPatchArgs.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.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.DaemonSetUpdateStrategyPatchArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.
 * @property rollingUpdate Rolling update config params. Present only if type = "RollingUpdate".
 * @property type Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate.
 */
public data class DaemonSetUpdateStrategyPatchArgs(
    public val rollingUpdate: Output? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.apps.v1.inputs.DaemonSetUpdateStrategyPatchArgs =
        com.pulumi.kubernetes.apps.v1.inputs.DaemonSetUpdateStrategyPatchArgs.builder()
            .rollingUpdate(rollingUpdate?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .type(type?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DaemonSetUpdateStrategyPatchArgs].
 */
@PulumiTagMarker
public class DaemonSetUpdateStrategyPatchArgsBuilder internal constructor() {
    private var rollingUpdate: Output? = null

    private var type: Output? = null

    /**
     * @param value Rolling update config params. Present only if type = "RollingUpdate".
     */
    @JvmName("pnkkncgmrsxoutkk")
    public suspend fun rollingUpdate(`value`: Output) {
        this.rollingUpdate = value
    }

    /**
     * @param value Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate.
     */
    @JvmName("oyqkxuqasryvshqm")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Rolling update config params. Present only if type = "RollingUpdate".
     */
    @JvmName("licjcfdxxolgxtvy")
    public suspend fun rollingUpdate(`value`: RollingUpdateDaemonSetPatchArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rollingUpdate = mapped
    }

    /**
     * @param argument Rolling update config params. Present only if type = "RollingUpdate".
     */
    @JvmName("gosygwljtqlxdpft")
    public suspend fun rollingUpdate(argument: suspend RollingUpdateDaemonSetPatchArgsBuilder.() -> Unit) {
        val toBeMapped = RollingUpdateDaemonSetPatchArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.rollingUpdate = mapped
    }

    /**
     * @param value Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate.
     */
    @JvmName("vkdwcbixltajnvuy")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): DaemonSetUpdateStrategyPatchArgs = DaemonSetUpdateStrategyPatchArgs(
        rollingUpdate = rollingUpdate,
        type = type,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy