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.14.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("jikdatvwkvsrming")
    public suspend
    fun postActions(`value`: Output>) {
        this.postActions = value
    }

    @JvmName("qmdijjxqkswqhoaf")
    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("dtdtaxufwvqosbhb")
    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("clsresjaniytbppt")
    public suspend
    fun preActions(`value`: Output>) {
        this.preActions = value
    }

    @JvmName("qlvuyuvxcasvyikq")
    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("jjwsmhlpwfurabwu")
    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("tpodrmixgmkgkbbf")
    public suspend fun replicatedProtectedItems(`value`: Output>) {
        this.replicatedProtectedItems = value
    }

    @JvmName("qgetfypbmrwxoxde")
    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("holgoytpihygfxpa")
    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("ueurtrlsnrlwbcde")
    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("ctbddbedhxlxyinr")
    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("bnklyuvyvylxpuhg")
    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("wfcvtprenaojxdat")
    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("lxspinwbakxcuiyl")
    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("klgpgvbagbnpdvdj")
    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("damtebesagiyesnb")
    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("pivccnldfqytuaal")
    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("uuhqijakfptusxic")
    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("bdwvcxxaombwwuae")
    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("nfmdllvgcpihqctf")
    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("ollbfcultwawelbi")
    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