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

com.pulumi.azure.siterecovery.kotlin.inputs.ReplicationRecoveryPlanBootRecoveryGroupArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.siterecovery.kotlin.inputs

import com.pulumi.azure.siterecovery.inputs.ReplicationRecoveryPlanBootRecoveryGroupArgs.builder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property postActions one or more `action` block as defined below. which will be executed after the group recovery.
 * @property preActions one or more `action` block as defined below. which will be executed before the group recovery.
 * @property replicatedProtectedItems One or more protected VM IDs. It must not be specified when `type` is `Shutdown`.
 */
public data class ReplicationRecoveryPlanBootRecoveryGroupArgs(
    public val postActions: Output>? =
        null,
    public val preActions: Output>? =
        null,
    public val replicatedProtectedItems: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.siterecovery.inputs.ReplicationRecoveryPlanBootRecoveryGroupArgs =
        com.pulumi.azure.siterecovery.inputs.ReplicationRecoveryPlanBootRecoveryGroupArgs.builder()
            .postActions(
                postActions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .preActions(
                preActions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .replicatedProtectedItems(
                replicatedProtectedItems?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

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

    private var preActions: Output>? =
        null

    private var replicatedProtectedItems: Output>? = null

    /**
     * @param value one or more `action` block as defined below. which will be executed after the group recovery.
     */
    @JvmName("qawndtewjuskaogm")
    public suspend fun postActions(`value`: Output>) {
        this.postActions = value
    }

    @JvmName("oiiyhegraumbrets")
    public suspend fun postActions(vararg values: Output) {
        this.postActions = Output.all(values.asList())
    }

    /**
     * @param values one or more `action` block as defined below. which will be executed after the group recovery.
     */
    @JvmName("cpgelnfubjpgwjfp")
    public suspend fun postActions(values: List>) {
        this.postActions = Output.all(values)
    }

    /**
     * @param value one or more `action` block as defined below. which will be executed before the group recovery.
     */
    @JvmName("vqexxnmphwofyojh")
    public suspend fun preActions(`value`: Output>) {
        this.preActions = value
    }

    @JvmName("ieiwqtojhexuxdtg")
    public suspend fun preActions(vararg values: Output) {
        this.preActions = Output.all(values.asList())
    }

    /**
     * @param values one or more `action` block as defined below. which will be executed before the group recovery.
     */
    @JvmName("mrogjnqlbpkxphyw")
    public suspend fun preActions(values: List>) {
        this.preActions = Output.all(values)
    }

    /**
     * @param value One or more protected VM IDs. It must not be specified when `type` is `Shutdown`.
     */
    @JvmName("raennnshrlrrrqee")
    public suspend fun replicatedProtectedItems(`value`: Output>) {
        this.replicatedProtectedItems = value
    }

    @JvmName("trmbmeoiviaoaitd")
    public suspend fun replicatedProtectedItems(vararg values: Output) {
        this.replicatedProtectedItems = Output.all(values.asList())
    }

    /**
     * @param values One or more protected VM IDs. It must not be specified when `type` is `Shutdown`.
     */
    @JvmName("xkiakujqjiqnrevn")
    public suspend fun replicatedProtectedItems(values: List>) {
        this.replicatedProtectedItems = Output.all(values)
    }

    /**
     * @param value one or more `action` block as defined below. which will be executed after the group recovery.
     */
    @JvmName("gvhpierinsitjojh")
    public suspend fun postActions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.postActions = mapped
    }

    /**
     * @param argument one or more `action` block as defined below. which will be executed after the group recovery.
     */
    @JvmName("jnqxhtkwmastlpiq")
    public suspend fun postActions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ReplicationRecoveryPlanBootRecoveryGroupPostActionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.postActions = mapped
    }

    /**
     * @param argument one or more `action` block as defined below. which will be executed after the group recovery.
     */
    @JvmName("nwhxoyjnwcxkgmgt")
    public suspend fun postActions(vararg argument: suspend ReplicationRecoveryPlanBootRecoveryGroupPostActionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ReplicationRecoveryPlanBootRecoveryGroupPostActionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.postActions = mapped
    }

    /**
     * @param argument one or more `action` block as defined below. which will be executed after the group recovery.
     */
    @JvmName("gmcjnrfgweehvmso")
    public suspend fun postActions(argument: suspend ReplicationRecoveryPlanBootRecoveryGroupPostActionArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ReplicationRecoveryPlanBootRecoveryGroupPostActionArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.postActions = mapped
    }

    /**
     * @param values one or more `action` block as defined below. which will be executed after the group recovery.
     */
    @JvmName("ogpoaecjdsmpaycs")
    public suspend fun postActions(vararg values: ReplicationRecoveryPlanBootRecoveryGroupPostActionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.postActions = mapped
    }

    /**
     * @param value one or more `action` block as defined below. which will be executed before the group recovery.
     */
    @JvmName("slmnglsicqpleeix")
    public suspend fun preActions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preActions = mapped
    }

    /**
     * @param argument one or more `action` block as defined below. which will be executed before the group recovery.
     */
    @JvmName("inwqdxbolvuhywvo")
    public suspend fun preActions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ReplicationRecoveryPlanBootRecoveryGroupPreActionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.preActions = mapped
    }

    /**
     * @param argument one or more `action` block as defined below. which will be executed before the group recovery.
     */
    @JvmName("fabevnmedmciytqr")
    public suspend fun preActions(vararg argument: suspend ReplicationRecoveryPlanBootRecoveryGroupPreActionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ReplicationRecoveryPlanBootRecoveryGroupPreActionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.preActions = mapped
    }

    /**
     * @param argument one or more `action` block as defined below. which will be executed before the group recovery.
     */
    @JvmName("kokwpucjqvqxcfar")
    public suspend fun preActions(argument: suspend ReplicationRecoveryPlanBootRecoveryGroupPreActionArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ReplicationRecoveryPlanBootRecoveryGroupPreActionArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.preActions = mapped
    }

    /**
     * @param values one or more `action` block as defined below. which will be executed before the group recovery.
     */
    @JvmName("uqwvrrdbnrxqmodk")
    public suspend fun preActions(vararg values: ReplicationRecoveryPlanBootRecoveryGroupPreActionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.preActions = mapped
    }

    /**
     * @param value One or more protected VM IDs. It must not be specified when `type` is `Shutdown`.
     */
    @JvmName("hhrfvgyqdqkaixbr")
    public suspend fun replicatedProtectedItems(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.replicatedProtectedItems = mapped
    }

    /**
     * @param values One or more protected VM IDs. It must not be specified when `type` is `Shutdown`.
     */
    @JvmName("ytpocqaujqvjqauf")
    public suspend fun replicatedProtectedItems(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.replicatedProtectedItems = mapped
    }

    internal fun build(): ReplicationRecoveryPlanBootRecoveryGroupArgs =
        ReplicationRecoveryPlanBootRecoveryGroupArgs(
            postActions = postActions,
            preActions = preActions,
            replicatedProtectedItems = replicatedProtectedItems,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy