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

com.pulumi.azure.siterecovery.kotlin.inputs.ReplicationRecoveryPlanFailoverRecoveryGroupArgs.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.ReplicationRecoveryPlanFailoverRecoveryGroupArgs.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.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.
 */
public data class ReplicationRecoveryPlanFailoverRecoveryGroupArgs(
    public val postActions: Output>? =
        null,
    public val preActions: Output>? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.siterecovery.inputs.ReplicationRecoveryPlanFailoverRecoveryGroupArgs =
        com.pulumi.azure.siterecovery.inputs.ReplicationRecoveryPlanFailoverRecoveryGroupArgs.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()
                        })
                    })
                }),
            ).build()
}

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

    private var preActions: Output>? =
        null

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

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

    @JvmName("uthkwybisltqobot")
    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("ismqwcbvumfyfjqw")
    public suspend fun preActions(values: List>) {
        this.preActions = Output.all(values)
    }

    /**
     * @param value one or more `action` block as defined below. which will be executed after the group recovery.
     */
    @JvmName("srccbbotpgaofmxb")
    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("xmttaganilptogap")
    public suspend fun postActions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ReplicationRecoveryPlanFailoverRecoveryGroupPostActionArgsBuilder().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("ypivmhoioiuagcks")
    public suspend fun postActions(vararg argument: suspend ReplicationRecoveryPlanFailoverRecoveryGroupPostActionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ReplicationRecoveryPlanFailoverRecoveryGroupPostActionArgsBuilder().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("yymumgcvgnwuqvfn")
    public suspend fun postActions(argument: suspend ReplicationRecoveryPlanFailoverRecoveryGroupPostActionArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ReplicationRecoveryPlanFailoverRecoveryGroupPostActionArgsBuilder().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("hufbmiskiwlkefnd")
    public suspend fun postActions(vararg values: ReplicationRecoveryPlanFailoverRecoveryGroupPostActionArgs) {
        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("cglrdqhxtnwjpwlo")
    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("fthskqwyliefcyis")
    public suspend fun preActions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ReplicationRecoveryPlanFailoverRecoveryGroupPreActionArgsBuilder().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("plsblaufmofjiprc")
    public suspend fun preActions(vararg argument: suspend ReplicationRecoveryPlanFailoverRecoveryGroupPreActionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ReplicationRecoveryPlanFailoverRecoveryGroupPreActionArgsBuilder().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("uydyyvjfboicnfou")
    public suspend fun preActions(argument: suspend ReplicationRecoveryPlanFailoverRecoveryGroupPreActionArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ReplicationRecoveryPlanFailoverRecoveryGroupPreActionArgsBuilder().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("kksavuykgxivnyha")
    public suspend fun preActions(vararg values: ReplicationRecoveryPlanFailoverRecoveryGroupPreActionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.preActions = mapped
    }

    internal fun build(): ReplicationRecoveryPlanFailoverRecoveryGroupArgs =
        ReplicationRecoveryPlanFailoverRecoveryGroupArgs(
            postActions = postActions,
            preActions = preActions,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy