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

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

/**
 *
 * @property fabricLocation The fabric location of runbook or script. Possible values are `Primary` and `Recovery`. It must not be specified when `type` is `ManualActionDetails`.
 * > **NOTE:** This is required when `type` is set to `AutomationRunbookActionDetails` or `ScriptActionDetails`.
 * @property failOverDirections Directions of fail over. Possible values are `PrimaryToRecovery` and `RecoveryToPrimary`
 * @property failOverTypes Types of fail over. Possible values are `TestFailover`, `PlannedFailover` and `UnplannedFailover`
 * @property manualActionInstruction Instructions of manual action.
 * > **NOTE:** This property is required when `type` is set to `ManualActionDetails`.
 * @property name The name of the Replication Plan. The name can contain only letters, numbers, and hyphens. It should start with a letter and end with a letter or a number. Can be a maximum of 63 characters. Changing this forces a new resource to be created.
 * @property runbookId Id of runbook.
 * > **NOTE:** This property is required when `type` is set to `AutomationRunbookActionDetails`.
 * @property scriptPath Path of action script.
 * > **NOTE:** This property is required when `type` is set to `ScriptActionDetails`.
 * @property type
 */
public data class ReplicationRecoveryPlanBootRecoveryGroupPreActionArgs(
    public val fabricLocation: Output? = null,
    public val failOverDirections: Output>,
    public val failOverTypes: Output>,
    public val manualActionInstruction: Output? = null,
    public val name: Output,
    public val runbookId: Output? = null,
    public val scriptPath: Output? = null,
    public val type: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.siterecovery.inputs.ReplicationRecoveryPlanBootRecoveryGroupPreActionArgs =
        com.pulumi.azure.siterecovery.inputs.ReplicationRecoveryPlanBootRecoveryGroupPreActionArgs.builder()
            .fabricLocation(fabricLocation?.applyValue({ args0 -> args0 }))
            .failOverDirections(failOverDirections.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .failOverTypes(failOverTypes.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .manualActionInstruction(manualActionInstruction?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .runbookId(runbookId?.applyValue({ args0 -> args0 }))
            .scriptPath(scriptPath?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ReplicationRecoveryPlanBootRecoveryGroupPreActionArgs].
 */
@PulumiTagMarker
public class ReplicationRecoveryPlanBootRecoveryGroupPreActionArgsBuilder internal constructor() {
    private var fabricLocation: Output? = null

    private var failOverDirections: Output>? = null

    private var failOverTypes: Output>? = null

    private var manualActionInstruction: Output? = null

    private var name: Output? = null

    private var runbookId: Output? = null

    private var scriptPath: Output? = null

    private var type: Output? = null

    /**
     * @param value The fabric location of runbook or script. Possible values are `Primary` and `Recovery`. It must not be specified when `type` is `ManualActionDetails`.
     * > **NOTE:** This is required when `type` is set to `AutomationRunbookActionDetails` or `ScriptActionDetails`.
     */
    @JvmName("lhsejtkashrmltgo")
    public suspend fun fabricLocation(`value`: Output) {
        this.fabricLocation = value
    }

    /**
     * @param value Directions of fail over. Possible values are `PrimaryToRecovery` and `RecoveryToPrimary`
     */
    @JvmName("dgtheysjbaxpjtuc")
    public suspend fun failOverDirections(`value`: Output>) {
        this.failOverDirections = value
    }

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

    /**
     * @param values Directions of fail over. Possible values are `PrimaryToRecovery` and `RecoveryToPrimary`
     */
    @JvmName("canweucoeeawdncl")
    public suspend fun failOverDirections(values: List>) {
        this.failOverDirections = Output.all(values)
    }

    /**
     * @param value Types of fail over. Possible values are `TestFailover`, `PlannedFailover` and `UnplannedFailover`
     */
    @JvmName("nctbhoekswrmwheo")
    public suspend fun failOverTypes(`value`: Output>) {
        this.failOverTypes = value
    }

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

    /**
     * @param values Types of fail over. Possible values are `TestFailover`, `PlannedFailover` and `UnplannedFailover`
     */
    @JvmName("wuvtiyxkxxfqrtai")
    public suspend fun failOverTypes(values: List>) {
        this.failOverTypes = Output.all(values)
    }

    /**
     * @param value Instructions of manual action.
     * > **NOTE:** This property is required when `type` is set to `ManualActionDetails`.
     */
    @JvmName("vuvgdolvqhdlpekl")
    public suspend fun manualActionInstruction(`value`: Output) {
        this.manualActionInstruction = value
    }

    /**
     * @param value The name of the Replication Plan. The name can contain only letters, numbers, and hyphens. It should start with a letter and end with a letter or a number. Can be a maximum of 63 characters. Changing this forces a new resource to be created.
     */
    @JvmName("ibjuttttuhtxfhrx")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Id of runbook.
     * > **NOTE:** This property is required when `type` is set to `AutomationRunbookActionDetails`.
     */
    @JvmName("kmgqepqaieogdyaq")
    public suspend fun runbookId(`value`: Output) {
        this.runbookId = value
    }

    /**
     * @param value Path of action script.
     * > **NOTE:** This property is required when `type` is set to `ScriptActionDetails`.
     */
    @JvmName("tifeqqybfedxmbty")
    public suspend fun scriptPath(`value`: Output) {
        this.scriptPath = value
    }

    /**
     * @param value
     */
    @JvmName("hrlxekbslwtvmjfs")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The fabric location of runbook or script. Possible values are `Primary` and `Recovery`. It must not be specified when `type` is `ManualActionDetails`.
     * > **NOTE:** This is required when `type` is set to `AutomationRunbookActionDetails` or `ScriptActionDetails`.
     */
    @JvmName("flrpmepoliyrcbnl")
    public suspend fun fabricLocation(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fabricLocation = mapped
    }

    /**
     * @param value Directions of fail over. Possible values are `PrimaryToRecovery` and `RecoveryToPrimary`
     */
    @JvmName("unphthcaeitixflk")
    public suspend fun failOverDirections(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.failOverDirections = mapped
    }

    /**
     * @param values Directions of fail over. Possible values are `PrimaryToRecovery` and `RecoveryToPrimary`
     */
    @JvmName("hlsobumnkidtfrqa")
    public suspend fun failOverDirections(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.failOverDirections = mapped
    }

    /**
     * @param value Types of fail over. Possible values are `TestFailover`, `PlannedFailover` and `UnplannedFailover`
     */
    @JvmName("jarwkknaqlckrenn")
    public suspend fun failOverTypes(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.failOverTypes = mapped
    }

    /**
     * @param values Types of fail over. Possible values are `TestFailover`, `PlannedFailover` and `UnplannedFailover`
     */
    @JvmName("rudlcfgnwqvergii")
    public suspend fun failOverTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.failOverTypes = mapped
    }

    /**
     * @param value Instructions of manual action.
     * > **NOTE:** This property is required when `type` is set to `ManualActionDetails`.
     */
    @JvmName("cskusimreiulfqmt")
    public suspend fun manualActionInstruction(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.manualActionInstruction = mapped
    }

    /**
     * @param value The name of the Replication Plan. The name can contain only letters, numbers, and hyphens. It should start with a letter and end with a letter or a number. Can be a maximum of 63 characters. Changing this forces a new resource to be created.
     */
    @JvmName("gjbjijhahunaknmi")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Id of runbook.
     * > **NOTE:** This property is required when `type` is set to `AutomationRunbookActionDetails`.
     */
    @JvmName("hjlrbsfynrsukkmf")
    public suspend fun runbookId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.runbookId = mapped
    }

    /**
     * @param value Path of action script.
     * > **NOTE:** This property is required when `type` is set to `ScriptActionDetails`.
     */
    @JvmName("gxvjgbeonmvkjfiw")
    public suspend fun scriptPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scriptPath = mapped
    }

    /**
     * @param value
     */
    @JvmName("cniagkdgghtxqpqv")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): ReplicationRecoveryPlanBootRecoveryGroupPreActionArgs =
        ReplicationRecoveryPlanBootRecoveryGroupPreActionArgs(
            fabricLocation = fabricLocation,
            failOverDirections = failOverDirections ?: throw PulumiNullFieldException("failOverDirections"),
            failOverTypes = failOverTypes ?: throw PulumiNullFieldException("failOverTypes"),
            manualActionInstruction = manualActionInstruction,
            name = name ?: throw PulumiNullFieldException("name"),
            runbookId = runbookId,
            scriptPath = scriptPath,
            type = type ?: throw PulumiNullFieldException("type"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy