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

com.pulumi.azure.dataprotection.kotlin.inputs.BackupPolicyKubernetesClusterDefaultRetentionRuleArgs.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.

There is a newer version: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.dataprotection.kotlin.inputs

import com.pulumi.azure.dataprotection.inputs.BackupPolicyKubernetesClusterDefaultRetentionRuleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property lifeCycles A `life_cycle` block as defined below. Changing this forces a new resource to be created.
 */
public data class BackupPolicyKubernetesClusterDefaultRetentionRuleArgs(
    public val lifeCycles:
    Output>,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.dataprotection.inputs.BackupPolicyKubernetesClusterDefaultRetentionRuleArgs =
        com.pulumi.azure.dataprotection.inputs.BackupPolicyKubernetesClusterDefaultRetentionRuleArgs.builder()
            .lifeCycles(
                lifeCycles.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [BackupPolicyKubernetesClusterDefaultRetentionRuleArgs].
 */
@PulumiTagMarker
public class BackupPolicyKubernetesClusterDefaultRetentionRuleArgsBuilder internal constructor() {
    private var lifeCycles:
        Output>? = null

    /**
     * @param value A `life_cycle` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("vbgdowomoivfqhje")
    public suspend
    fun lifeCycles(`value`: Output>) {
        this.lifeCycles = value
    }

    @JvmName("gjjsqhvjtwkbmuhb")
    public suspend fun lifeCycles(
        vararg
        values: Output,
    ) {
        this.lifeCycles = Output.all(values.asList())
    }

    /**
     * @param values A `life_cycle` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("kaauolnxfnhxonvt")
    public suspend
    fun lifeCycles(values: List>) {
        this.lifeCycles = Output.all(values)
    }

    /**
     * @param value A `life_cycle` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("dlllblhjfsnidbsc")
    public suspend
    fun lifeCycles(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.lifeCycles = mapped
    }

    /**
     * @param argument A `life_cycle` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("xcdenpktridjmosp")
    public suspend
    fun lifeCycles(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BackupPolicyKubernetesClusterDefaultRetentionRuleLifeCycleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.lifeCycles = mapped
    }

    /**
     * @param argument A `life_cycle` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("dlpkwveaydtmyxbi")
    public suspend fun lifeCycles(
        vararg
        argument: suspend BackupPolicyKubernetesClusterDefaultRetentionRuleLifeCycleArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            BackupPolicyKubernetesClusterDefaultRetentionRuleLifeCycleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.lifeCycles = mapped
    }

    /**
     * @param argument A `life_cycle` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("bpfjrqdhvhodcpch")
    public suspend
    fun lifeCycles(argument: suspend BackupPolicyKubernetesClusterDefaultRetentionRuleLifeCycleArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                BackupPolicyKubernetesClusterDefaultRetentionRuleLifeCycleArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.lifeCycles = mapped
    }

    /**
     * @param values A `life_cycle` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("nsxncivgccnfsdvf")
    public suspend fun lifeCycles(
        vararg
        values: BackupPolicyKubernetesClusterDefaultRetentionRuleLifeCycleArgs,
    ) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.lifeCycles = mapped
    }

    internal fun build(): BackupPolicyKubernetesClusterDefaultRetentionRuleArgs =
        BackupPolicyKubernetesClusterDefaultRetentionRuleArgs(
            lifeCycles = lifeCycles ?: throw PulumiNullFieldException("lifeCycles"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy