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

com.pulumi.awsnative.backup.kotlin.BackupPlanArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.backup.kotlin

import com.pulumi.awsnative.backup.BackupPlanArgs.builder
import com.pulumi.awsnative.backup.kotlin.inputs.BackupPlanResourceTypeArgs
import com.pulumi.awsnative.backup.kotlin.inputs.BackupPlanResourceTypeArgsBuilder
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 kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::Backup::BackupPlan
 * @property backupPlan Uniquely identifies the backup plan to be associated with the selection of resources.
 * @property backupPlanTags The tags to assign to the backup plan.
 */
public data class BackupPlanArgs(
    public val backupPlan: Output? = null,
    public val backupPlanTags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.backup.BackupPlanArgs =
        com.pulumi.awsnative.backup.BackupPlanArgs.builder()
            .backupPlan(backupPlan?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .backupPlanTags(
                backupPlanTags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [BackupPlanArgs].
 */
@PulumiTagMarker
public class BackupPlanArgsBuilder internal constructor() {
    private var backupPlan: Output? = null

    private var backupPlanTags: Output>? = null

    /**
     * @param value Uniquely identifies the backup plan to be associated with the selection of resources.
     */
    @JvmName("kqgxnitcpbexsski")
    public suspend fun backupPlan(`value`: Output) {
        this.backupPlan = value
    }

    /**
     * @param value The tags to assign to the backup plan.
     */
    @JvmName("dyomocabfwaaolva")
    public suspend fun backupPlanTags(`value`: Output>) {
        this.backupPlanTags = value
    }

    /**
     * @param value Uniquely identifies the backup plan to be associated with the selection of resources.
     */
    @JvmName("ulhmuvdipkcmnkfr")
    public suspend fun backupPlan(`value`: BackupPlanResourceTypeArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backupPlan = mapped
    }

    /**
     * @param argument Uniquely identifies the backup plan to be associated with the selection of resources.
     */
    @JvmName("vbuafpwlgyjyhlya")
    public suspend fun backupPlan(argument: suspend BackupPlanResourceTypeArgsBuilder.() -> Unit) {
        val toBeMapped = BackupPlanResourceTypeArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.backupPlan = mapped
    }

    /**
     * @param value The tags to assign to the backup plan.
     */
    @JvmName("yqojnldgbenbuspm")
    public suspend fun backupPlanTags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backupPlanTags = mapped
    }

    /**
     * @param values The tags to assign to the backup plan.
     */
    @JvmName("xqienljckggxavdy")
    public fun backupPlanTags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.backupPlanTags = mapped
    }

    internal fun build(): BackupPlanArgs = BackupPlanArgs(
        backupPlan = backupPlan,
        backupPlanTags = backupPlanTags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy